:root {
    --primary: #E63946; 
    --primary-hover: #D62828;
    --secondary: #1A1A1A; 
    --dark: #111111;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #FDFBF7; 
    --bg-white: #FFFFFF;
    /* Fondo delle pagine: un avorio appena percettibile. Serve a
       staccare le card, che restano bianche, dal piano su cui
       appoggiano. Prima card bianche su fondo bianco si reggevano
       solo su un bordo all'1,5% di differenza. */
    --bg-page: #F2ECE3;
    --border-color: #F0EDE6;
    --shadow-soft: 0 8px 25px rgba(0,0,0,0.04);
    --shadow-hover: 0 12px 35px rgba(0,0,0,0.08);

    /* Ombra delle card, su due livelli: uno stretto che disegna il punto
       di appoggio e uno largo e sfumato che solleva. Il colore non e nero
       ma un bruno chiarissimo: su un fondo caldo un ombra neutra sporca,
       una intonata al fondo sembra luce vera. */
    --ombra-card: 0 1px 2px rgba(84, 66, 44, 0.05),
                  0 6px 18px -6px rgba(84, 66, 44, 0.10);
    --ombra-card-alta: 0 2px 4px rgba(84, 66, 44, 0.06),
                       0 16px 30px -10px rgba(84, 66, 44, 0.16);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
 * Il pelo di scorrimento orizzontale.
 *
 * L'intestazione sporgeva di un pixel oltre lo schermo - arrotondamenti del
 * flex sui bordi del telefono - e un pixel basta a far ballare tutta la
 * pagina di lato quando la si tocca.
 *
 * `clip` e non `hidden`: `hidden` trasformerebbe la pagina in un
 * contenitore di scorrimento, e l'intestazione con `position: sticky`
 * smetterebbe di restare in cima. `clip` taglia e basta.
 */
html {
    overflow-x: clip;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
/* Le sezioni "chiare" prendono il fondo pagina, non il quasi-bianco:
   con --bg-light (#FDFBF7, all 1,5% dal bianco) l alternanza in home era
   invisibile. Si cambia qui e non il token, che serve anche ai bordi degli
   avatar, agli hover e allo scheletro di caricamento. */
.bg-light { background-color: var(--bg-page); }
.bg-white { background-color: var(--bg-white); }

/* Typography - Ridimensionato */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section {
    padding: 2rem 0;
}

.section-header {
    margin-bottom: 1.75rem;
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--dark);
}

/* Frase esplicativa sotto il titolo di sezione */
.section-intro {
    max-width: 620px;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.text-highlight { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary { background-color: var(--primary); color: var(--bg-white); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); }

.btn-outline { background-color: transparent; color: var(--secondary); border-color: #E2E2E2; }
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }

.btn-login { color: var(--text-muted); padding: 10px 16px; font-weight: 500; }
.btn-login:hover { color: var(--primary); }

.btn-shadow { box-shadow: 0 6px 15px rgba(230, 57, 70, 0.2); }
.btn-shadow:hover { box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3); }

/* Header */
.header {
    padding: 20px 0;
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
/* Lo spazio minimo fra marchio, menu e pulsanti: con il menu lungo di chi
   e' collegato, Chrome altrimenti li attacca (Firefox no). */
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 1.6rem; }
.header-content > .logo { flex-shrink: 0; }
.header-actions, .header-actions a, .header-actions button { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1320px) and (min-width: 993px) { .nav-links { gap: 1.1rem; } }
.logo-img { max-height: 95px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.nav-links { display: flex; gap: 1.45rem; }
.nav-links a { font-weight: 500; color: var(--secondary); transition: var(--transition); font-size: 0.95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.auth-buttons { display: flex; align-items: center; gap: 0.8rem; }
.mobile-menu-btn { display: none; font-size: 1.8rem; cursor: pointer; color: var(--secondary); user-select: none; }

/* Hero Section */
/* hero piu compatta: stesse proporzioni, meno ingombro */
.hero { padding: 2.75rem 0; overflow: hidden; }
.hero-layout { display: flex; align-items: center; justify-content: space-between; gap: 2.25rem; }
.hero-content { flex: 1; max-width: 500px; z-index: 2; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.9rem; letter-spacing: -1px; }
.hero p { font-size: 1.02rem; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 400; }
.hero-cta { display: flex; gap: 1rem; }
.hero-visual { flex: 1; position: relative; display: flex; justify-content: flex-end; }
.hero-image-wrapper { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); width: 100%; max-width: 400px; }
.hero-main-img { width: 100%; height: 400px; object-fit: cover; display: block; }
.hero-badge { position: absolute; bottom: -15px; left: -15px; width: 80px; height: 80px; background: var(--bg-white); border-radius: 50%; padding: 15px; box-shadow: var(--shadow-hover); display: flex; align-items: center; justify-content: center; }
.hero-badge img { width: 100%; height: auto; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Cards */
.card { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--ombra-card); transition: var(--transition); overflow: hidden; border: 1px solid var(--border-color); }
.card:hover { transform: translateY(-4px); box-shadow: var(--ombra-card-alta); }

/* Esperienze */
.card-experience { display: flex; flex-direction: column; }
.card-image-wrapper { height: 200px; width: 100%; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-experience:hover .card-img { transform: scale(1.03); }
.card-content { padding: 1.8rem; }
.card-content h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card-content p { color: var(--text-muted); font-size: 0.95rem; }

/* Events */
.card-event { display: flex; flex-direction: column; }
.event-image-wrapper { height: 180px; position: relative; overflow: hidden; }
.event-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-event:hover .event-img { transform: scale(1.03); }
.event-date { position: absolute; top: 15px; right: 15px; background: var(--bg-white); padding: 6px 12px; border-radius: 10px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.event-date .day { display: block; font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.event-date .month { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; color: var(--secondary); }
.event-info { padding: 1.8rem; }
.event-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.8rem; }
.card-event h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.event-location { color: var(--text-muted); font-size: 0.9rem; }

/* Come funziona */
.steps-container { position: relative; }
.step { padding: 1.5rem; }
.step-number {
    /* Il numero era al 3% di opacita: invisibile, ma si portava via
       quarantacinque pixel di altezza. O si legge, o non deve costare
       spazio. Ora e piu piccolo e abbastanza marcato da contare come
       segno grafico: la sequenza cerca-conosci-incontra e reale, quindi
       numerarla dice qualcosa di vero. */
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(230, 57, 70, 0.16);
    margin-bottom: -0.35rem;
    position: relative;
    z-index: 1;
}
.step h3 { font-size: 1.3rem; color: var(--dark); margin-bottom: 0.8rem; position: relative; z-index: 2; }
.step p { color: var(--text-muted); font-size: 0.95rem; position: relative; z-index: 2; }

/* Nuova Vetrina Community */
.vetrina-layout { display: flex; align-items: center; justify-content: space-between; gap: 4rem; }
.vetrina-text { flex: 1; max-width: 500px; }
.vetrina-highlight { font-weight: 500; color: var(--secondary); margin-top: 1rem; font-size: 1.05rem; }
.vetrina-visual { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.avatar-collage { position: relative; width: 400px; height: 300px; }
.avatar { position: absolute; border-radius: 50%; border: 4px solid var(--bg-light); box-shadow: var(--shadow-soft); object-fit: cover; }
.avatar-1 { width: 110px; height: 110px; top: 0; left: 10%; z-index: 2; }
.avatar-2 { width: 150px; height: 150px; top: 30%; left: 25%; z-index: 4; }
.avatar-3 { width: 100px; height: 100px; top: 10%; right: 15%; z-index: 2; }
.avatar-4 { width: 120px; height: 120px; bottom: 5%; left: 0; z-index: 3; }
.avatar-5 { width: 110px; height: 110px; bottom: 0; right: 25%; z-index: 3; }
.avatar-6 { width: 95px; height: 95px; top: 45%; right: 0; z-index: 1; }

/* CTA */
.cta-container { max-width: 700px; }
.cta-finale h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-finale p { font-size: 1.1rem; color: var(--text-muted); }

/* Footer */
.footer { background-color: var(--dark); color: var(--bg-white); padding: 4rem 0 1.5rem; }
.footer-content { display: flex; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { max-width: 350px; }
.footer-logo { max-height: 100px; width: auto; margin-left: -5px; }
.footer-mission { color: #A0AEC0; margin-top: 1rem; font-size: 0.95rem; line-height: 1.5; }
.footer-social { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .5rem 1rem;
                 border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #E2E8F0;
                 font-size: .9rem; font-weight: 600; transition: var(--transition); }
.footer-social:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.footer-social:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.footer-links-container { display: flex; gap: 4rem; flex-grow: 1; justify-content: flex-end; }
.footer-links h4 { color: var(--bg-white); margin-bottom: 1.2rem; font-size: 1.05rem; }
.footer-links ul li { margin-bottom: 0.6rem; }
.footer-links a { color: #A0AEC0; transition: var(--transition); font-size: 0.9rem; }
.footer-links a:hover { color: var(--bg-white); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); color: #718096; font-size: 0.85rem; }

/* Responsive Design */
@media (max-width: 992px) {
    /* Header Mobile Completo */
    .header-content { flex-wrap: nowrap; }
    .logo-img { max-height: 55px; } /* Più compatto per fare spazio */
    
    .nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-white); box-shadow: 0 10px 20px rgba(0,0,0,0.05); padding: 1rem 0; border-top: 1px solid var(--border-color); }
    .nav.active { display: block; }
    .nav-links { flex-direction: column; gap: 0; align-items: center; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 15px; font-size: 1.1rem; }
    
    .header-actions { gap: 0.8rem; }
    .auth-buttons { gap: 0.5rem; }
    .btn-login { padding: 8px 10px; font-size: 0.95rem; }
    .btn-compact { padding: 8px 16px; font-size: 0.9rem; }
    .mobile-menu-btn { display: block; margin-left: 0.5rem; }

    /* Resto del layout */
    .hero h1 { font-size: 2.2rem; }
    .hero-layout, .vetrina-layout { gap: 2rem; flex-direction: column; text-align: center; }
    .hero-visual { justify-content: center; }
    .hero-cta { justify-content: center; }
    .vetrina-visual { justify-content: center; width: 100%; margin-top: 2rem; }
    .avatar-collage { margin: 0 auto; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-brand { margin: 0 auto; }
    .footer-logo { margin-left: 0; max-height: 80px; }
    .footer-links-container { justify-content: center; gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .section { padding: 1.75rem 0; }
    .section-title { font-size: 1.8rem; }
    
    .hero { padding: 2rem 0; }
    .hero h1 { font-size: 1.95rem; }
    .hero-image-wrapper { height: 280px; }
    .hero-main-img { height: 100%; }
    
    .grid-3 { grid-template-columns: 1fr; }
    
    .avatar-collage { width: 100%; max-width: 320px; height: 250px; }
    .avatar-1 { width: 90px; height: 90px; }
    .avatar-2 { width: 120px; height: 120px; }
    .avatar-3 { width: 80px; height: 80px; }
    .avatar-4 { width: 90px; height: 90px; }
    .avatar-5 { width: 95px; height: 95px; }
    .avatar-6 { width: 75px; height: 75px; }
}

/* ============================================================
   Barra di navigazione e menu mobile
   Le classi .header-content, .nav, .nav-links, .header-actions,
   .auth-buttons e .mobile-menu-btn erano gia' previste piu' sopra:
   qui si aggiunge solo cio' che mancava per renderle utilizzabili.
   Nessuna regola ridichiara "display" sul pulsante o sul pannello,
   per non annullare le regole responsive gia' scritte a inizio file.
   ============================================================ */

.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }

.nav-links { align-items: center; }
.nav-badge {
    background: var(--primary); color: var(--bg-white); border-radius: 10px;
    padding: 1px 6px; font-size: 0.72rem; font-weight: 600; margin-left: 5px;
    vertical-align: middle; line-height: 1.5;
}

/* Testo destinato ai soli lettori di schermo: il numero da solo non dice
   di cosa sia il conteggio. */
.solo-lettori-schermo {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.btn-logout {
    background: none; border: 1px solid var(--border-color); border-radius: 20px;
    padding: 7px 14px; cursor: pointer; font-family: inherit; font-size: 0.9rem;
    font-weight: 500; color: var(--text-main); transition: var(--transition);
}
.btn-logout:hover { border-color: var(--primary); color: var(--primary); }

/* Il pulsante hamburger: tre barre che diventano una croce all'apertura.
   Lo stato lo porta aria-expanded, cosi' aspetto e accessibilita' non
   possono divergere. */
.mobile-menu-btn {
    background: none; border: 0; padding: 9px 6px; cursor: pointer;
    position: relative; line-height: 0;
}
.mobile-menu-btn .barra {
    display: block; width: 25px; height: 2px; border-radius: 2px;
    background: var(--secondary);
    transition: transform 0.25s ease, opacity 0.15s ease;
}
.mobile-menu-btn .barra + .barra { margin-top: 6px; }
.mobile-menu-btn[aria-expanded="true"] .barra:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] .barra:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] .barra:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Da telefono le voci col contatore sono dentro il pannello chiuso:
   il pallino avvisa che c'e' qualcosa da leggere. */
.mobile-menu-btn .pallino {
    position: absolute; top: 3px; right: 0; width: 9px; height: 9px;
    border-radius: 50%; background: var(--primary);
    box-shadow: 0 0 0 2px var(--bg-white);
}

/* Chi naviga da tastiera deve vedere dove si trova. */
.header a:focus-visible,
.header button:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-btn .barra { transition: none; }
}

@media (max-width: 992px) {
    /* Il pannello e' un elenco a tutta larghezza: le righe separate
       rendono evidente dove finisce una voce e inizia la successiva. */
    .nav-links li + li { border-top: 1px solid var(--border-color); }
    .nav-links a:hover { background: var(--bg-light); }
    .logo { font-size: 1.35rem; }
    /* Nella barra stretta resta "Esci": il nome utente e' gia' visibile
       nell'area personale. */
    .logout-nome { display: none; }
}

/* Nota sulle immagini generate, nel piede della home. */
.footer-nota-ia {
    font-size: .78rem; color: #6b7280; line-height: 1.5;
    margin: 10px auto 0; max-width: 70ch;
}

/* ============================================================
   Eventi in arrivo, in home.
   Le schede stanno una sopra l'altra e si alternano: la giostra
   tiene l'altezza della piu' alta, cosi' la pagina non sobbalza
   a ogni cambio.
   ============================================================ */
.home-eventi .he-giostra { position: relative; display: grid; }
/* I gruppi stanno uno sopra l altro e si alternano: la giostra tiene
   l altezza del piu alto, cosi la pagina non sobbalza al cambio. */
.he-gruppo {
    grid-area: 1 / 1;
    /* Senza questo una colonna non puo scendere sotto la larghezza minima
       del suo contenuto: l attributo width dell immagine fa esplodere la
       prima colonna e le altre due si schiacciano. */
    min-width: 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .5s ease;
}
.he-gruppo > * { min-width: 0; }
.he-gruppo.attivo { opacity: 1; visibility: visible; pointer-events: auto; }

.he-scheda {
    display: flex; flex-direction: column;
    background: var(--bg-white); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: var(--ombra-card);
    transition: box-shadow .25s ease, transform .25s ease;
}
.he-scheda:hover { box-shadow: var(--ombra-card-alta); transform: translateY(-3px); }
.he-scheda:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.he-media {
    position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
    background: linear-gradient(135deg, #B08FCB, #4B2A6B);
}
.he-media img { position: absolute; inset: 0; width: 100%; height: 100%;
                object-fit: cover; object-position: 50% 40%; }
.he-velo { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.3), rgba(0,0,0,0) 60%); }

.he-data {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 50px; padding: 6px 0 5px; border-radius: 9px;
    background: rgba(255,255,255,.95); color: #3A1F55; box-shadow: 0 3px 12px rgba(0,0,0,.25);
}
.he-giorno { font-size: 1.25rem; font-weight: 800; line-height: 1; }
.he-mese { font-size: .62rem; font-weight: 700; letter-spacing: .09em; margin-top: 2px; opacity: .8; }

.he-testo { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; min-width: 0; }
.he-tipo { align-self: flex-start; background: rgba(75,42,107,.1); color: #4B2A6B;
           font-size: .66rem; font-weight: 700; text-transform: uppercase;
           letter-spacing: .07em; padding: 4px 10px; border-radius: 20px; }
.he-titolo { font-size: 1rem; font-weight: 700; line-height: 1.25;
             color: var(--secondary); overflow-wrap: anywhere; }
.he-dove { font-size: .82rem; color: var(--text-muted); overflow-wrap: anywhere; }

.he-punti { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.he-punto { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
            background: rgba(75,42,107,.22); cursor: pointer; transition: all .2s ease; }
.he-punto.attivo { background: #4B2A6B; width: 24px; border-radius: 5px; }
.he-punto:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .he-scheda { transition: none; transform: none; }
}

@media (max-width: 640px) {
    .he-media { aspect-ratio: 2 / 1; }
    .he-titolo { font-size: 1.05rem; }
}

/* Sezioni contigue con lo stesso fondo: sommando i due margini si aprivano
   voragini bianche senza nemmeno un cambio di colore a giustificarle. */
.bg-light + .bg-light, .bg-white + .bg-white { padding-top: 0.25rem; }

/* ---------- Pulsante mostra password ----------
   Il guscio eredita la larghezza che la pagina dava al campo, cosi il
   pulsante puo essere posizionato senza rompere impaginazioni diverse. */
.pw-guscio { position: relative; display: block; width: 100%; }
.pw-guscio input { width: 100%; padding-right: 44px !important; }
.pw-occhio {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0;
    background: none; border: 0; border-radius: 7px; cursor: pointer;
    color: #9a938a; transition: color .15s ease, background .15s ease;
}
.pw-occhio:hover { color: var(--primary); background: rgba(0,0,0,.04); }
.pw-occhio svg { width: 19px; height: 19px; }
.pw-occhio:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }


/* ============================================================
   I loghi di chi ci ospita e chi ci sostiene
   ============================================================ */

.pt-fascia {
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 2.6rem; padding-bottom: 1.9rem;
}
.pt-fascia-titolo {
    text-align: center; color: #8b93a1; font-size: .74rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.1rem;
}
.pt-loghi {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 14px; margin: 0 0 .4rem;
}

/* La piastrella. Misura fissa: e' quello che rende ordinata una fila
   di loghi che fra loro non c'entrano niente. */
.pt-logo {
    display: flex; align-items: center; justify-content: center;
    width: 122px; height: 54px; padding: 7px 11px; box-sizing: border-box;
    background: #fff; border-radius: 9px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pt-logo:hover, .pt-logo:focus-visible {
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.28);
}
/* Per i loghi chiari, che su bianco sparirebbero. */
.pt-logo.scuro { background: #1c1f26; border: 1px solid #2f343d; }

.pt-logo img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    object-fit: contain; display: block;
}

/* Uno o due soli: piu' grandi e centrati, cosi' sembra una scelta e
   non una fila rimasta a meta'. */
.pt-fascia.pochi .pt-logo { width: 152px; height: 68px; padding: 9px 14px; }

@media (max-width: 600px) {
    .pt-logo { width: 104px; height: 48px; padding: 6px 9px; }
    .pt-fascia.pochi .pt-logo { width: 136px; height: 60px; }
    .pt-loghi { gap: 10px; }
}


/* ============================================================
   La lente: una fotografia a schermo intero
   ============================================================ */
.lente-sfondo {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(10, 11, 13, .92);
    display: flex; align-items: center; justify-content: center;
    padding: 24px; box-sizing: border-box; cursor: zoom-out;
}
.lente-sfondo[hidden] { display: none; }
.lente-foto {
    max-width: 100%; max-height: 100%; object-fit: contain;
    border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lente-x {
    position: absolute; top: 14px; right: 16px; width: 40px; height: 40px;
    border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff;
    font-size: 24px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lente-x:hover { background: rgba(255,255,255,.26); }

/* Quello che si puo' ingrandire lo dice al passaggio del mouse. */
[data-lente] { cursor: zoom-in; }
