/* ============================================================
   VARIABILI
   ============================================================ */
:root {
    --navy:      #0d1533;
    --blue:      #0019ff;
    --blue-icon: #1a3cff;
    --orange:    #ff7a00;
    --orange-d:  #e06800;
    --white:     #ffffff;
    --bg-sec:    #eef2ff;
    --text:      #0d1533;
    --text-mid:  #4b5a7a;
    --text-light:#6b7590;   /* 4.59:1 su bianco — il precedente #9aa3b8 era 2.53:1 */
    --border:    rgba(13,21,51,0.09);
    --shadow:    0 4px 24px rgba(13,21,51,0.08);
    --radius:    14px;
    --t:         0.22s ease;
    --max:       1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; overflow-x: hidden; }
body  { font-family: 'Inter', sans-serif; color: var(--text); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* TIPOGRAFIA */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--navy);
}
h1 { font-size: clamp(2.1rem, 3.8vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1rem; font-weight: 700; }
p  { font-size: 0.95rem; color: var(--text-mid); line-height: 1.75; }

.section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

/* ============================================================
   PULSANTI
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--t);
    white-space: nowrap;
    line-height: 1;
}
.btn-orange {
    background: var(--orange);
    /* testo scuro e non bianco: su #ff7a00 il bianco dava 2,61:1,
       sotto il minimo di 4,5:1. Così siamo a 6,86:1. */
    color: var(--navy);
}
.btn-orange:hover {
    background: var(--orange-d);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255,122,0,0.35);
}
.btn-navy {
    background: var(--navy);
    color: #fff;
}
.btn-navy:hover {
    background: #1a274a;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(13,21,51,0.28);
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 16px rgba(13,21,51,0.06);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav-brand img { height: 36px; width: auto; }
.nav-brand-text strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.nav-brand-text span {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    transition: color var(--t);
}
.nav-links a:hover { color: var(--blue); }
.nav-cta .btn { padding: 10px 22px; font-size: 0.85rem; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--t); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: 68px 0 0 0;
    background: #fff;
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t);
    border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-menu a    { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.mobile-menu .btn { color: #fff; font-size: 1rem; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
    background: #fff;
    padding: 88px 0 80px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 54% 46%;
    gap: 48px;
    align-items: center;
}
.hero-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 18px;
    display: block;
}
.hero-text h1 { margin-bottom: 32px; }
.hero-text h1 .highlight { color: var(--blue); }

.hero-photo {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero-blob {
    position: absolute;
    inset: 6% -6% -4% 12%;
    background: #f0ddc8;
    border-radius: 60% 55% 65% 50% / 55% 60% 45% 60%;
    z-index: 0;
}
.hero-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    object-fit: cover;
    object-position: top center;
    border-radius: 0 0 16px 16px;
    max-height: 500px;
}

/* ============================================================
   MI HANNO SCELTO — ticker
   ============================================================ */
#mi-hanno-scelto {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
}
.loghi-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 32px;
}
.ticker-wrap {
    position: relative;
    overflow: hidden;
    /* spazio riservato in anticipo: evita che la pagina sobbalzi
       quando i loghi finiscono di caricarsi */
    min-height: 80px;
}
.ticker-wrap::before,
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.ticker-wrap::before { left: 0;  background: linear-gradient(to right, #fff 0%, transparent 100%); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left,  #fff 0%, transparent 100%); }

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ticker 36s linear infinite;
    padding: 4px 0;
    will-change: transform;
}
/* La pausa al passaggio del mouse vale solo dove esiste un mouse:
   su touch il tap lascerebbe uno stato :hover permanente e il nastro
   resterebbe congelato. */
@media (hover: hover) {
    .ticker-track:hover { animation-play-state: paused; }
}

@keyframes ticker {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
/* Lo spazio fra i loghi è un margine, NON `gap`: così la larghezza di una
   serie è esattamente il 50% della traccia e l'animazione cicla senza scatti. */
/* Ogni logo occupa uno SLOT di larghezza fissa, col contenuto centrato:
   così lo spazio tra i loghi è uniforme, che il logo sia largo o stretto. */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 210px;
}
.logo-item img {
    height: 54px;
    width: auto;
    max-width: 125px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter var(--t), opacity var(--t);
    display: block;
}
.ticker-track:hover .logo-item img { filter: grayscale(0%); opacity: 0.9; }

@media (max-width: 720px) {
    .ticker-wrap { min-height: 62px; }
    .logo-item { width: 132px; }
    .logo-item img { height: 44px; max-width: 90px; }
    .ticker-wrap::before,
    .ticker-wrap::after { width: 56px; }
}

/* ============================================================
   COSA OFFRO
   ============================================================ */
#cosa-offro {
    background: var(--bg-sec);
    padding: 96px 0;
}
.offro-header { margin-bottom: 44px; }
.offro-header h2 { margin-top: 8px; max-width: 420px; }

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 44px;
}
.servizio-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform var(--t), box-shadow var(--t);
}
.servizio-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(13,21,51,0.12); }

.svc-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.svc-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.svc-body h3 { color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.svc-body p  { font-size: 0.85rem; line-height: 1.65; }

.offro-cta { }

/* ============================================================
   CHI SONO
   ============================================================ */
#chi-sono {
    background: #fff;
    padding: 96px 0;
}
.chisono-grid {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 64px;
    align-items: center;
}
.chisono-visual {
    background: linear-gradient(150deg, #0d1533 0%, #102070 100%);
    border-radius: 20px;
    padding: 44px 36px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.chisono-visual::before {
    content: '';
    position: absolute;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(0,178,255,0.15) 0%, transparent 70%);
    top: -60px; right: -40px;
    pointer-events: none;
}
.chart-svg { width: 100%; max-width: 240px; position: relative; z-index: 1; }

.chisono-text .section-label { margin-bottom: 12px; }
.chisono-text h2 { margin-bottom: 22px; line-height: 1.22; }
.chisono-text p  { margin-bottom: 12px; }

.firma {
    font-family: 'Dancing Script', cursive;
    font-size: 2.1rem;
    color: var(--navy);
    margin-top: 24px;
    line-height: 1;
    display: block;
}

/* ============================================================
   RECENSIONI
   ============================================================ */
#recensioni {
    background: var(--bg-sec);
    padding: 96px 0;
    overflow: hidden;
}
.rec-header { text-align: center; margin-bottom: 44px; }
.rec-header h2 { margin-top: 8px; }

/* slider recensioni */
.rec-ticker-wrap {
    position: relative;
    overflow: hidden;
    margin: 0 -32px;  /* sfora il container per prendere tutta la larghezza */
}
.rec-ticker-wrap::before,
.rec-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.rec-ticker-wrap::before { left: 0;  background: linear-gradient(to right, var(--bg-sec), transparent); }
.rec-ticker-wrap::after  { right: 0; background: linear-gradient(to left,  var(--bg-sec), transparent); }

/* Stessa logica del ticker loghi: margine sulle slide invece di `gap`
   e nessun padding orizzontale, altrimenti il -50% non torna. */
.rec-ticker-track {
    display: flex;
    width: max-content;
    animation: rec-scroll 36s linear infinite;
    padding: 8px 0;
    will-change: transform;
}
@media (hover: hover) {
    .rec-ticker-track:hover { animation-play-state: paused; }
}
/* Se un video è in riproduzione, il carosello si ferma (anche desktop) */
.rec-ticker-wrap:has(.video-wrap.attivo) .rec-ticker-track {
    animation-play-state: paused !important;
}

@keyframes rec-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

.rec-slide {
    flex-shrink: 0;
    margin-right: 20px;
    width: 300px;
}

.rec-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow);
    transition: transform var(--t);
}
.rec-card:hover { transform: translateY(-4px); }

.video-wrap {
    aspect-ratio: 9/16;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1533 0%, #1a3070 100%);
    background-size: cover;          /* la miniatura (inline) copre tutta la card */
    background-position: center;
    cursor: pointer;
    overflow: hidden;
}
/* velo scuro sulle miniatura: fa risaltare il pulsante play */
.video-wrap[data-embed]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13,21,51,0.28);
    transition: background var(--t);
    z-index: 0;
}
.video-wrap[data-embed]:hover::before { background: rgba(13,21,51,0.12); }
/* a video avviato: via velo e pulsante, resta l'iframe */
.video-wrap.attivo::before { display: none; }
.video-wrap.attivo .play-btn { display: none; }
.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* Finché il video non viene attivato con un tap, l'iframe non riceve
       eventi: altrimenti su mobile si mangia lo swipe del carosello,
       perché copre tutta la card e gestisce i gesti per conto suo. */
    pointer-events: none;
}
.video-wrap.attivo iframe { pointer-events: auto; }
.play-btn {
    width: 54px; height: 54px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all var(--t);
    position: relative; z-index: 1;
    flex-shrink: 0;
}
.play-btn::after {
    content: '';
    width: 0; height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #fff;
    margin-left: 4px;
}
.video-wrap:hover .play-btn { background: var(--blue); border-color: var(--blue); transform: scale(1.08); }

.rec-meta { padding: 14px 18px; background: var(--navy); }
.rec-meta strong { display: block; color: #fff; font-size: 0.86rem; font-weight: 700; }
.rec-meta span   { font-size: 0.76rem; color: rgba(255,255,255,0.4); }
/* frase di sintesi sotto il video: in grassetto ma discreta (una riga) */
.rec-sintesi {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    font-weight: 700;
    color: #7fb0ff;
    line-height: 1.4;
}

/* ============================================================
   CTA FINALE
   ============================================================ */
#cta-finale {
    background: linear-gradient(120deg, #0d1533 0%, #0c1e66 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
#cta-finale::before {
    content: '';
    position: absolute;
    width: 440px; height: 440px;
    background: radial-gradient(circle, rgba(0,100,255,0.12) 0%, transparent 65%);
    top: -150px; left: -60px;
    pointer-events: none;
}
.cta-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 52px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.cta-text h2   { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.cta-text p    { color: rgba(255,255,255,0.6); max-width: 460px; }
.cta-right     { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.cta-note {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    display: flex; align-items: center; gap: 5px;
}
.cta-note::before { content: '✓'; color: #00c8ff; font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: var(--navy);
    padding: 52px 0 26px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 20px;
}
/* width:auto + align-self impediscono al contenitore flex di stirare
   il logo a tutta larghezza (era questo a deformarlo). */
.footer-brand img    { height: 34px; width: auto; max-width: none; align-self: flex-start; object-fit: contain; margin-bottom: 14px; }
.footer-brand strong { display: block; color: rgba(255,255,255,0.9); font-family: 'Outfit', sans-serif; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.04em; }
.footer-brand span   { display: block; color: rgba(255,255,255,0.3); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }

/* LinkedIn */
.footer-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    font-weight: 500;
    transition: color var(--t);
}
.footer-linkedin:hover { color: #0a66c2; }
.footer-linkedin svg  { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.footer-contacts h3 { color: rgba(255,255,255,0.6); font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.footer-ci          { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-ci .ico     { font-size: 0.82rem; width: 16px; text-align: center; flex-shrink: 0; }
.footer-ci a,
.footer-ci span     { color: rgba(255,255,255,0.58); font-size: 0.84rem; transition: color var(--t); }
.footer-ci a:hover  { color: #00c8ff; }

/* Dati societari */
.footer-legal h3       { color: rgba(255,255,255,0.6); font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.footer-legal-row   { display: flex; gap: 6px; margin-bottom: 7px; line-height: 1.45; }
.footer-legal-row dt { color: rgba(255,255,255,0.32); font-size: 0.78rem; font-weight: 600; flex-shrink: 0; min-width: 72px; }
.footer-legal-row dd { color: rgba(255,255,255,0.58); font-size: 0.78rem; }

.footer-copy { text-align: center; color: rgba(255,255,255,0.22); font-size: 0.76rem; }

/* Responsive footer 3 colonne */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-legal { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-legal { grid-column: auto; }
}

/* ============================================================
   WHATSAPP FISSO
   ============================================================ */
#whatsapp-fixed {
    position: fixed;
    bottom: 26px; right: 26px; z-index: 2147483646;
    width: 52px; height: 52px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(37,211,102,0.42);
    transition: transform var(--t), box-shadow var(--t);
}
#whatsapp-fixed:hover { transform: scale(1.1); box-shadow: 0 8px 26px rgba(37,211,102,0.52); }
#whatsapp-fixed svg  { width: 26px; height: 26px; fill: #fff; }

/* ============================================================
   PAGINA CONTATTI
   ============================================================ */
.ct-hero { background: linear-gradient(120deg, var(--navy) 0%, #0f2560 100%); padding: 72px 0 60px; text-align: center; }
.ct-hero h1 { color: #fff; margin-bottom: 12px; }
.ct-hero p  { color: rgba(255,255,255,0.68); font-size: 1rem; }

.ct-body { background: var(--bg-sec); padding: 80px 0; }
.ct-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 52px; align-items: start; }
.ct-info h3 { color: var(--navy); margin-bottom: 20px; }

.ct-item { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 13px 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.ct-item .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-sec); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.ct-item .det strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 2px; }
.ct-item .det a,
.ct-item .det span   { color: var(--navy); font-weight: 600; font-size: 0.9rem; }

.wa-btn { display: flex; align-items: center; gap: 12px; background: #25d366; color: #fff !important; padding: 13px 22px; border-radius: 50px; font-weight: 700; margin-top: 22px; font-size: 0.92rem; justify-content: center; transition: all var(--t); }
.wa-btn:hover { background: #1aad52; transform: translateY(-2px); }
.wa-btn svg  { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }

.form-card { background: #fff; border-radius: 16px; padding: 36px 32px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-card h3 { color: var(--navy); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.fg input,
.fg textarea { width: 100%; padding: 11px 14px; border: 1.5px solid rgba(13,21,51,0.12); border-radius: 10px; font-size: 0.9rem; font-family: inherit; color: var(--text); background: #fff; outline: none; transition: border-color var(--t), box-shadow var(--t); }
.fg input:focus,
.fg textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,25,255,0.08); }
.fg textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; margin-top: 6px; font-size: 0.95rem; justify-content: center; }

.gdpr-checks { margin: 14px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.gdpr-check  { display: flex; align-items: flex-start; gap: 10px; font-size: 0.81rem; color: #555; line-height: 1.55; }
.gdpr-check input[type="checkbox"] { margin-top: 2px; width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }
.gdpr-check label { cursor: pointer; }
.gdpr-check a { color: var(--blue); font-weight: 600; text-decoration: underline; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 0.88rem; font-weight: 500; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ============================================================
   FADE-UP
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE TABLET ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .hero-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
    .chisono-grid { grid-template-columns: 1fr; gap: 40px; }
    .servizi-grid { grid-template-columns: 1fr 1fr; }
    .rec-slide    { width: 300px; }
    .cta-grid     { grid-template-columns: 1fr; text-align: center; }
    .cta-text p   { max-width: 100%; }
    .cta-right    { align-items: center; }
    .footer-grid  { grid-template-columns: 1fr; gap: 32px; }
    .ct-grid      { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE MOBILE ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }

    #hero { padding: 56px 0 48px; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .hero-photo { order: -1; }
    /* su mobile: quadrato centrato sul volto, come il ritaglio desktop */
    .hero-photo img { width: 260px; max-width: 78%; aspect-ratio: 1 / 1; height: auto; max-height: none; object-fit: cover; object-position: 50% 22%; margin: 0 auto; border-radius: 16px; }
    .hero-blob { display: none; }

    .servizi-grid { grid-template-columns: 1fr; }
    .rec-slide    { width: 260px; }
    .form-row     { grid-template-columns: 1fr; }
    .form-card    { padding: 22px 16px; }
    #cosa-offro, #chi-sono, #recensioni { padding: 64px 0; }
    #cta-finale   { padding: 56px 0; }

    #whatsapp-fixed { bottom: 80px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn { padding: 12px 20px; font-size: 0.87rem; }
}

/* ============================================================
   TICKER SU TOUCH — solo RECENSIONI (swipe manuale)
   I LOGHI restano sull'animazione CSS come sul desktop, anche su
   mobile: su iOS Safari il flex con max-content dentro un contenitore
   scrollabile faceva accavallare i loghi. L'animazione CSS non ha
   quel problema. Le recensioni invece usano lo scroll nativo perché
   contengono iframe video che devono restare toccabili.
   ============================================================ */
@media (hover: none) {
    .rec-ticker-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: auto;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        /* niente -webkit-overflow-scrolling: touch — su iOS crea un livello di
           scorrimento separato in cui l'assegnazione di scrollLeft viene
           ignorata, bloccando l'autoplay. L'inerzia c'è già di default. */
        scrollbar-width: none;          /* Firefox */
        -ms-overflow-style: none;       /* Edge legacy */
    }
    .rec-ticker-wrap::-webkit-scrollbar { display: none; }

    /* niente animazione CSS: se ne occupa il JS via scrollLeft */
    .rec-ticker-track { animation: none; }

    /* le sfumature laterali sono in position:absolute e scorrerebbero
       insieme al contenuto, quindi su touch si disattivano */
    .rec-ticker-wrap::before,
    .rec-ticker-wrap::after { display: none; }
}

/* ============================================================
   PAGINE SERVIZIO
   ============================================================ */
.srv-hero {
    background: linear-gradient(180deg, var(--bg-sec) 0%, #fff 100%);
    padding: 54px 0 60px;
}
.srv-breadcrumb {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 22px;
}
.srv-breadcrumb a { color: var(--text-mid); }
.srv-breadcrumb a:hover { color: var(--blue); }
.srv-breadcrumb span { margin: 0 6px; opacity: 0.5; }
.srv-breadcrumb strong { color: var(--navy); font-weight: 700; }
.srv-hero h1 { max-width: 900px; }
.srv-sub {
    font-size: 1.08rem;
    color: var(--text-mid);
    max-width: 720px;
    margin: 18px 0 30px;
    line-height: 1.7;
}

/* intro e "Cosa ottieni": blocco centrato in pagina, testo a sinistra */
.srv-intro { padding: 56px 0; }
.srv-intro .container,
.srv-benefici .container { max-width: 880px; }
.srv-intro p { font-size: 1.02rem; margin-bottom: 20px; }
.srv-intro p:last-child { margin-bottom: 0; }

.srv-benefici { padding: 56px 0; background: var(--bg-sec); }
.srv-benefici h2 { margin: 8px 0 28px; }
.srv-check {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 40px;
    max-width: 900px;
}
.srv-check li {
    position: relative;
    padding-left: 38px;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.55;
}
.srv-check li::before {
    content: '';
    position: absolute;
    left: 0; top: 1px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

.srv-passi { padding: 60px 0; }
.srv-passi h2 { margin: 8px 0 32px; }
.srv-steps { max-width: 820px; counter-reset: step; }
.srv-steps li {
    display: flex;
    gap: 20px;
    padding: 0 0 26px;
    position: relative;
}
.srv-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 21px; top: 44px; bottom: 6px;
    width: 2px;
    background: var(--border);
}
.srv-step-n {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
/* solo il TITOLO del passo va a capo (figlio diretto del div);
   il grassetto dentro la descrizione resta in linea */
.srv-steps li > div > strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 4px;
    padding-top: 9px;
}
.srv-steps li p { margin: 0; }

.srv-faq { padding: 60px 0; background: var(--bg-sec); }
.srv-faq h2 { margin: 8px 0 30px; }
.srv-faq-list { max-width: 820px; }
.srv-faq details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.srv-faq summary {
    padding: 18px 22px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 52px;
}
.srv-faq summary::-webkit-details-marker { display: none; }
.srv-faq summary::after {
    content: '+';
    position: absolute;
    right: 22px; top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--blue);
    transition: transform var(--t);
}
.srv-faq details[open] summary::after { content: '−'; }
.srv-faq-a {
    padding: 0 22px 20px;
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 0.97rem;
}

@media (max-width: 720px) {
    .srv-hero { padding: 32px 0 44px; }
    .srv-check { grid-template-columns: 1fr; gap: 14px; }
    .srv-intro, .srv-benefici, .srv-passi, .srv-faq { padding: 44px 0; }
}

/* Link "Scopri di più" nelle card servizio della home */
/* Pulsante secondario "Scopri di più": bordo blu, si riempie all'hover.
   Visibile e cliccabile, ma sotto all'arancione (la CTA principale). */
.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 9px 20px;
    border: 2px solid var(--blue);
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--blue);
    transition: background var(--t), color var(--t);
}
.svc-link:hover { background: var(--blue); color: #fff; }

/* ============================================================
   CASI STUDIO (pagine servizio)
   ============================================================ */
.srv-casi { padding: 60px 0; }
.srv-casi > .container > .fade-up { margin-bottom: 32px; }
.casi-grid { display: grid; gap: 24px; }
.caso-card {
    background: #fff;
    border: 2px solid var(--blue);          /* contorno blu acceso */
    border-radius: var(--radius);
    box-shadow: 0 6px 26px rgba(0,25,255,0.08);
    padding: 26px 30px;
}

/* Intestazione: titolo a sinistra, pulsante "Leggi di più" a destra */
.caso-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.caso-head-txt { min-width: 0; }
.caso-leggi { flex-shrink: 0; }

/* Stato chiuso (aggiunto via JS): mostra solo l'intestazione.
   Senza JS resta tutto aperto e il pulsante è nascosto. */
.caso-card.caso-collapsed .caso-full { display: none; }
.caso-card:not(.caso-collapsed) .caso-leggi { display: none; }
.caso-full { margin-top: 4px; }

.caso-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--bg-sec);
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.caso-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 18px;
}
.caso-riga {
    font-size: 0.96rem;
    color: var(--text-mid);
    line-height: 1.6;
    padding: 8px 0 8px 16px;
    border-left: 3px solid var(--border);
    margin-bottom: 4px;
}
.caso-riga strong { color: var(--navy); }
.caso-sfida     { border-left-color: #e0662e; }
.caso-soluzione { border-left-color: #16a34a; }

.caso-img {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.caso-img img {
    flex: 1 1 240px;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-sec);
}
.caso-risultati { margin-top: 18px; }
.caso-risultati > strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 12px;
}
.caso-risultati ul { display: grid; gap: 10px; }
.caso-risultati li {
    position: relative;
    padding-left: 30px;
    font-size: 0.97rem;
    color: var(--text);
    line-height: 1.5;
}
.caso-risultati li::before {
    content: '';
    position: absolute;
    left: 0; top: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #16a34a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

@media (min-width: 760px) {
    /* card a larghezza piena: gli screenshot restano leggibili */
    .caso-card { padding: 34px 40px; }
    .caso-card h3 { font-size: 1.5rem; }
    .caso-risultati ul { grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
    .caso-img img { flex-basis: auto; width: 100%; }
}

/* Su smartphone: intestazione impilata e immagine "toccabile" per ingrandire */
@media (max-width: 759px) {
    .caso-head { flex-direction: column; align-items: stretch; }
    .caso-leggi { align-self: flex-start; }
}
@media (hover: none) {
    .caso-img img { cursor: zoom-in; }
    .caso-img { position: relative; }
    .caso-img::after {
        content: '🔍 Tocca per ingrandire';
        position: absolute;
        right: 8px; bottom: 8px;
        font-size: 0.72rem;
        font-weight: 600;
        color: #fff;
        background: rgba(13,21,51,0.72);
        padding: 4px 9px;
        border-radius: 50px;
        pointer-events: none;
    }
}

/* Lightbox: immagine a schermo intero al tap (mobile) */
.cs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(13,21,51,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: auto;
}
.cs-lightbox img {
    max-width: 100%;
    width: auto;
    border-radius: 8px;
    /* strisce larghe: si possono ingrandire e scorrere in orizzontale */
    min-width: 780px;
}
.cs-lightbox-close {
    position: fixed;
    top: 14px; right: 16px;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--navy);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3001;
}
body.cs-lightbox-open { overflow: hidden; }

/* ============================================================
   RECENSIONI (pagine servizio) — sezione blu scuro
   ============================================================ */
.srv-recensioni {
    background: var(--navy);
    padding: 66px 0;
}
.srv-rec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}
.srv-recensioni .section-label { color: #6fa8ff; }
.srv-recensioni h2 { color: #fff; }

/* Frecce di navigazione (desktop) */
.rec-nav { display: flex; gap: 10px; flex-shrink: 0; }
.rec-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--t), border-color var(--t);
}
.rec-arrow:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); }

/* Carosello a scorrimento orizzontale (desktop + mobile) */
.rec-scroll {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    /* NIENTE touch-action: pan-x — su iOS bloccava lo scroll verticale
       della pagina quando il dito era sul carosello. Il browser distingue
       da solo: swipe laterale = carosello, swipe su/giù = pagina. */
    padding: 4px 2px 8px;
    margin: 0 -2px;
    scrollbar-width: none;              /* Firefox */
    -ms-overflow-style: none;           /* Edge legacy */
    /* solo l'asse X: evita che lo swipe laterale faccia scattare il
       "torna indietro" del browser; lo scroll verticale resta libero. */
    overscroll-behavior-x: contain;
}
.rec-scroll::-webkit-scrollbar { display: none; }

.rec-item {
    flex: 0 0 340px;
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.rec-item-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 16px;
}
.rec-avatar {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, #4a9fff 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}
img.rec-avatar {
    object-fit: cover;
    background: var(--bg-sec);   /* sfondo mentre la foto carica */
}
.rec-who { min-width: 0; flex: 1; }
.rec-who strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    color: var(--navy);
    line-height: 1.2;
    white-space: nowrap;            /* il nome resta su una riga sola */
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-who span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 3px;
    white-space: nowrap;            /* anche il ruolo su una riga, uniforme */
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-badge {
    display: inline-block;
    margin-bottom: 16px;            /* riga propria, in alto: lascia spazio al nome */
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}
.rec-badge-cliente       { background: var(--bg-sec); color: var(--blue); }
.rec-badge-collaboratore { background: #eef1f6; color: var(--text-mid); }

.rec-quote {
    color: var(--text-mid);
    line-height: 1.65;
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.rec-fonte {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-light);
}
.rec-fonte svg {
    width: 16px; height: 16px;
    fill: #0a66c2;           /* blu ufficiale LinkedIn */
    flex-shrink: 0;
}

/* Su mobile: niente frecce (si scorre col dito) e schede più larghe
   con un accenno della successiva, per invitare allo swipe. */
@media (max-width: 759px) {
    .rec-nav { display: none; }
    .rec-item { flex-basis: 84%; }
}

.rec-arrow:disabled { opacity: 0.3; cursor: default; }
.rec-arrow:disabled:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }
