/* ==========================================================================
   ES Dental Group — style.css
   Foglio di stile unico, robusto e senza dipendenze.
   Principio chiave: il contenuto è SEMPRE visibile. Nessuna animazione
   nasconde il contenuto; le animazioni sono solo un miglioramento.
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root{
  --navy:#122A4A; --navy-2:#0C1F38; --navy-3:#1B3A63;
  --gold:#FFC107; --gold-2:#EDB100; --gold-3:#B98600;
  --gold-wash:rgba(255,193,7,.12); --teal:#1C8C8C;
  --ink:#1E2A3A; --graphite:#5A6777; --slate:#8A97A5;
  --line:rgba(18,42,74,.10); --line-dark:rgba(255,255,255,.12);
  --paper:#FFFFFF; --paper-2:#F5F7FA; --paper-3:#E9EEF4; --white:#FFFFFF;
  --f:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --r-lg:18px; --r:12px; --r-sm:8px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --sh-1:0 1px 2px rgba(18,42,74,.05),0 10px 28px -14px rgba(18,42,74,.18);
  --sh-2:0 30px 70px -28px rgba(18,42,74,.30);
  --gut:clamp(18px,5vw,40px); --max:1200px; --sec:clamp(56px,8vw,104px);
}

/* ---------- RESET ---------- */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:140px;overflow-x:hidden;}
body{font-family:var(--f);background:var(--paper);color:var(--ink);line-height:1.65;font-size:16px;letter-spacing:-.003em;-webkit-font-smoothing:antialiased;overflow-x:hidden;}
img,svg{display:block;max-width:100%;}
img{height:auto;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
button,input,select,textarea{font:inherit;color:inherit;}
button{background:none;border:none;cursor:pointer;}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px;}
h1,h2,h3,h4{font-weight:700;line-height:1.16;letter-spacing:-.02em;color:var(--navy);}
h1{font-size:clamp(2rem,5vw,3.3rem);letter-spacing:-.03em;}
h2{font-size:clamp(1.55rem,3.3vw,2.4rem);}
h3{font-size:clamp(1.1rem,1.6vw,1.35rem);}
p{text-wrap:pretty;}
strong,b{font-weight:600;color:var(--ink);}

/* ---------- LAYOUT ---------- */
.wrap{width:100%;max-width:var(--max);margin-inline:auto;padding-inline:var(--gut);}
.section{padding-block:var(--sec);}
.balance{text-wrap:balance;}
.center{text-align:center;}

/* ---------- UTILITIES ---------- */
.eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:.72rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-3);margin-bottom:14px;}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--gold);border-radius:2px;}
.head{max-width:660px;margin-bottom:clamp(34px,5vw,54px);}
.head.center{margin-inline:auto;}
.head.center .eyebrow{justify-content:center;}
.head p{color:var(--graphite);font-size:clamp(.95rem,1.3vw,1.05rem);margin-top:12px;}
.on-dark h1,.on-dark h2,.on-dark h3,.on-dark p{color:var(--white);}
.on-dark .eyebrow{color:var(--gold);}
.on-dark .head p{color:rgba(255,255,255,.66);}

/* ---------- BUTTONS ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:14px 26px;border-radius:var(--r-sm);font-size:.88rem;font-weight:600;line-height:1;min-height:48px;white-space:nowrap;transition:transform .3s var(--ease),background .3s,color .3s,border-color .3s,box-shadow .3s;}
.btn svg{width:16px;height:16px;flex:none;}
.btn-navy{background:var(--navy);color:var(--white);}
.btn-navy:hover{background:var(--navy-3);transform:translateY(-2px);box-shadow:0 14px 28px -12px rgba(18,42,74,.5);}
.btn-gold{background:var(--gold);color:var(--navy);position:relative;overflow:hidden;}
.btn-gold:hover{background:var(--gold-2);transform:translateY(-2px);box-shadow:0 14px 28px -12px rgba(255,193,7,.55);}
.btn-gold::before{content:"";position:absolute;top:0;left:-120%;width:55%;height:100%;background:linear-gradient(120deg,transparent,rgba(255,255,255,.45),transparent);transition:left .6s var(--ease);}
.btn-gold:hover::before{left:150%;}
.btn-ghost{border:1.5px solid rgba(255,255,255,.3);color:var(--white);}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold);transform:translateY(-2px);}
.btn-line{border:1.5px solid var(--line);color:var(--navy);background:var(--white);}
.btn-line:hover{border-color:var(--gold-2);background:var(--gold-wash);transform:translateY(-2px);}
.btn-sm{padding:11px 20px;min-height:42px;font-size:.82rem;}
.arrow{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:.85rem;color:var(--navy);}
.arrow svg{width:15px;height:15px;color:var(--gold-3);transition:transform .3s var(--ease);}
.arrow:hover svg{transform:translateX(4px);}

/* ---------- TOP BAR ---------- */
.topbar{background:var(--navy);color:rgba(255,255,255,.85);font-size:.78rem;}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding-block:8px;flex-wrap:wrap;}
.topbar-l{display:flex;align-items:center;gap:22px;flex-wrap:wrap;}
.topbar-l span,.topbar-l a{display:inline-flex;align-items:center;gap:7px;color:rgba(255,255,255,.85);}
.topbar-l svg{width:14px;height:14px;color:var(--gold);flex:none;}
.topbar-l a:hover{color:var(--white);}
.topbar-s{display:flex;gap:8px;}
.topbar-s a{width:26px;height:26px;border-radius:50%;background:var(--gold-3);display:grid;place-items:center;transition:background .3s;}
.topbar-s a:hover{background:var(--gold);}
.topbar-s svg{width:13px;height:13px;color:var(--white);}

/* ---------- HEADER ---------- */
.header{position:sticky;top:0;z-index:900;background:var(--white);box-shadow:0 1px 0 var(--line);transition:box-shadow .3s;}
.header.stuck{box-shadow:0 6px 24px -12px rgba(18,42,74,.22);}
.header .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:74px;padding-block:10px;}
.brand{flex:none;}
.brand img{height:50px;width:auto;}
.menu{display:flex;align-items:center;gap:clamp(14px,2vw,28px);}
.menu>li{position:relative;}
.menu>li>a{display:flex;align-items:center;gap:5px;font-size:.9rem;font-weight:500;color:var(--ink);padding-block:8px;position:relative;transition:color .3s;}
.menu>li>a::after{content:"";position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--gold);transition:width .3s var(--ease);}
.menu>li>a:hover,.menu>li.active>a{color:var(--navy);}
.menu>li:hover>a::after,.menu>li.active>a::after{width:100%;}
.caret{width:12px;height:12px;transition:transform .3s;}
.menu>li:hover .caret{transform:rotate(180deg);}
.dropdown{position:absolute;top:calc(100% + 8px);left:50%;translate:-50% 0;min-width:236px;background:var(--white);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-2);padding:8px;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .25s var(--ease),transform .25s var(--ease),visibility .25s;}
.menu>li:hover .dropdown,.menu>li:focus-within .dropdown{opacity:1;visibility:visible;transform:none;}
.dropdown a{display:block;padding:10px 14px;border-radius:var(--r-sm);font-size:.85rem;color:var(--graphite);transition:background .2s,color .2s;}
.dropdown a:hover{background:var(--gold-wash);color:var(--navy);}
.header-end{display:flex;align-items:center;gap:16px;flex:none;}
.header-tel{display:flex;align-items:center;gap:10px;}
.header-tel svg{width:34px;height:34px;color:var(--gold);flex:none;}
.header-tel b{display:block;font-size:.86rem;color:var(--navy);font-weight:600;line-height:1.2;}
.header-tel span{font-size:.8rem;color:var(--graphite);}
.burger{display:none;width:44px;height:44px;align-items:center;justify-content:center;}
.burger i,.burger i::before,.burger i::after{content:"";display:block;width:22px;height:2px;background:var(--navy);border-radius:2px;position:relative;transition:.3s var(--ease);}
.burger i::before{position:absolute;top:-7px;}
.burger i::after{position:absolute;top:7px;}

/* ---------- DRAWER ---------- */
.drawer{position:fixed;inset:0;z-index:1000;background:var(--white);display:flex;flex-direction:column;padding:18px var(--gut) 40px;transform:translateX(100%);transition:transform .4s var(--ease);overflow-y:auto;visibility:hidden;}
.drawer.open{transform:none;visibility:visible;}
.drawer-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;}
.drawer-top img{height:44px;}
.drawer-x{width:44px;height:44px;display:grid;place-items:center;color:var(--navy);}
.drawer-x svg{width:22px;height:22px;}
.drawer nav{display:flex;flex-direction:column;}
.drawer nav>a,.drawer details>summary{font-size:1.12rem;font-weight:500;color:var(--navy);padding:15px 0;border-bottom:1px solid var(--line);cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;}
.drawer details summary::-webkit-details-marker{display:none;}
.drawer details summary::after{content:"+";font-size:1.3rem;color:var(--gold-3);}
.drawer details[open] summary::after{content:"–";}
.drawer .sub{display:flex;flex-direction:column;padding:2px 0 6px 14px;}
.drawer .sub a{padding:11px 0;font-size:.96rem;color:var(--graphite);border-bottom:1px solid var(--line);}
.drawer .btn{margin-top:24px;}

/* ---------- HERO ---------- */
.hero{position:relative;background:var(--navy);color:var(--white);overflow:hidden;}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(12,31,56,.94),rgba(12,31,56,.72) 45%,rgba(12,31,56,.4)),url('../img/hero.jpg') center/cover;}
.hero .wrap{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(32px,5vw,60px);align-items:center;padding-block:clamp(54px,8vw,88px);}
.hero h1{color:var(--white);margin-bottom:20px;}
.hero h1 em{font-style:normal;color:var(--gold);}
.hero-lead{font-size:clamp(1rem,1.4vw,1.12rem);color:rgba(255,255,255,.8);max-width:560px;margin-bottom:30px;}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;}

/* ---------- FORM CARD ---------- */
.card-form{background:var(--white);border-radius:var(--r-lg);padding:clamp(24px,3vw,34px);box-shadow:var(--sh-2);color:var(--ink);}
.card-form h2{font-size:1.45rem;margin-bottom:6px;}
.card-form .sub{font-size:.85rem;color:var(--graphite);margin-bottom:20px;}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.fld{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;}
.fld label{font-size:.72rem;font-weight:500;color:var(--graphite);}
.fld input,.fld select,.fld textarea{background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r-sm);padding:12px 13px;font-size:.88rem;color:var(--ink);-webkit-appearance:none;appearance:none;transition:border-color .3s,background .3s;width:100%;}
.fld select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6777' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px;padding-right:38px;}
.fld input:focus,.fld select:focus,.fld textarea:focus{outline:none;border-color:var(--gold-2);background:var(--white);}
.fld textarea{resize:vertical;min-height:82px;}
.chk{display:flex;align-items:flex-start;gap:10px;margin-bottom:18px;}
.chk input{width:16px;height:16px;margin-top:3px;accent-color:var(--gold);flex:none;}
.chk label{font-size:.72rem;color:var(--graphite);line-height:1.5;}
.chk a{color:var(--gold-3);}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.form-ok{display:none;text-align:center;padding-block:28px;}
.form-ok.show{display:block;}
.form-ok svg{width:44px;height:44px;color:var(--gold-3);margin:0 auto 14px;}
.form-ok h3{margin-bottom:8px;}
.form-ok p{font-size:.86rem;color:var(--graphite);}
.form-err{margin-top:12px;padding:11px 13px;border-radius:var(--r-sm);background:rgba(200,40,40,.08);border:1px solid rgba(200,40,40,.3);color:#B23838;font-size:.8rem;}

/* ---------- BANNER (pagine interne) ---------- */
.banner{position:relative;background:var(--navy);color:var(--white);overflow:hidden;text-align:center;padding-block:clamp(52px,7vw,84px);}
.banner::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(12,31,56,.82),rgba(12,31,56,.82)),url('../img/banner.jpg') center/cover;}
.banner .wrap{position:relative;z-index:2;}
.banner h1{color:var(--white);margin-bottom:16px;}
.crumb{display:inline-flex;align-items:center;gap:10px;background:var(--navy-2);border:1px solid var(--line-dark);padding:10px 20px;border-radius:var(--r-sm);font-size:.85rem;flex-wrap:wrap;justify-content:center;}
.crumb a{color:var(--white);font-weight:600;}
.crumb a:hover{color:var(--gold);}
.crumb span{color:rgba(255,255,255,.6);}
.crumb svg{width:14px;height:14px;color:var(--gold);}

/* ---------- FEATURES ---------- */
.feat{background:var(--navy);color:var(--white);}
.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,3vw,42px);}
.feat-c{display:flex;gap:16px;align-items:flex-start;}
.feat-i{width:54px;height:54px;border-radius:50%;background:var(--white);display:grid;place-items:center;flex:none;transition:transform .4s var(--ease),box-shadow .4s var(--ease);}
.feat-i svg{width:27px;height:27px;color:var(--navy);}
.feat-c:hover .feat-i{transform:translateY(-3px);box-shadow:0 12px 24px -10px rgba(255,193,7,.5);}
.feat-c h3{color:var(--white);font-size:1.02rem;margin-bottom:5px;}
.feat-c p{color:rgba(255,255,255,.6);font-size:.82rem;}

/* ---------- ABOUT ---------- */
.about{background:var(--paper-2);}
.about-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:clamp(32px,5vw,64px);align-items:center;}
.about-media{position:relative;}
.about-media>img{width:100%;border-radius:var(--r-lg);box-shadow:var(--sh-2);aspect-ratio:4/3;object-fit:cover;}
.about-badge{position:absolute;left:-14px;bottom:-14px;background:var(--white);border-radius:var(--r);padding:14px 20px;box-shadow:var(--sh-2);display:flex;align-items:center;gap:12px;}
.about-badge .bi{width:42px;height:42px;border-radius:10px;background:var(--navy);display:grid;place-items:center;flex:none;}
.about-badge .bi svg{width:22px;height:22px;color:var(--gold);}
.about-badge b{display:block;font-size:1.3rem;color:var(--navy);line-height:1;}
.about-badge span{font-size:.72rem;color:var(--graphite);}
.about-lead{color:var(--graphite);margin-bottom:24px;}
.about-list{display:grid;gap:14px;margin-bottom:28px;}
.about-list li{display:flex;gap:12px;align-items:center;font-weight:500;font-size:.95rem;color:var(--navy);}
.about-list .ci{width:24px;height:24px;border-radius:50%;background:var(--gold-wash);display:grid;place-items:center;flex:none;}
.about-list .ci svg{width:13px;height:13px;color:var(--gold-3);}
.about-tel{display:flex;align-items:center;gap:14px;}
.about-tel .pi{width:50px;height:50px;border-radius:50%;background:var(--gold-3);display:grid;place-items:center;flex:none;}
.about-tel .pi svg{width:23px;height:23px;color:var(--white);}
.about-tel b{display:block;font-size:1.15rem;color:var(--navy);}
.about-tel span{font-size:.8rem;color:var(--graphite);}

/* ---------- BEFORE/AFTER ---------- */
.ba{background:var(--white);}
.ba-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,24px);}
.ba-c{border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-1);background:var(--paper-2);}
.ba-c img{width:100%;aspect-ratio:3/4;object-fit:cover;}

/* ---------- SERVICES ---------- */
.svc{background:var(--paper-2);}
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,26px);}
.svc-c{position:relative;background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;transition:transform .4s var(--ease),box-shadow .4s var(--ease);}
.svc-c:hover{transform:translateY(-6px);box-shadow:var(--sh-2);}
.svc-c::after{content:"";position:absolute;inset:auto 0 0 0;height:3px;background:linear-gradient(90deg,var(--gold),var(--gold-2));transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease);}
.svc-c:hover::after{transform:scaleX(1);}
.svc-media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--paper-3);}
.svc-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease);}
.svc-c:hover .svc-media img{transform:scale(1.06);}
.svc-ico{position:absolute;left:20px;bottom:-22px;width:50px;height:50px;border-radius:12px;background:var(--navy);display:grid;place-items:center;box-shadow:var(--sh-1);z-index:2;}
.svc-ico svg{width:25px;height:25px;color:var(--gold);}
.svc-body{padding:32px 24px 24px;display:flex;flex-direction:column;flex:1;}
.svc-body h3{font-size:1.12rem;margin-bottom:9px;}
.svc-body p{font-size:.86rem;color:var(--graphite);margin-bottom:18px;flex:1;}

/* ---------- STATS ---------- */
.stats{position:relative;background:var(--navy);color:var(--white);overflow:hidden;}
.stats::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(12,31,56,.88),rgba(12,31,56,.93)),url('../img/stats-bg.jpg') center/cover;}
.stats .wrap{position:relative;z-index:2;}
.stats-head{text-align:center;max-width:720px;margin:0 auto clamp(34px,5vw,50px);}
.stats-head h2{color:var(--white);}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center;}
.stats-c .si{width:58px;height:58px;border-radius:12px;background:var(--navy-2);border:1px solid var(--line-dark);display:grid;place-items:center;margin:0 auto 14px;}
.stats-c .si svg{width:28px;height:28px;color:var(--gold);}
.stats-c b{display:block;font-size:clamp(2rem,4.5vw,2.9rem);font-weight:800;line-height:1;letter-spacing:-.03em;color:var(--white);text-shadow:0 0 30px rgba(255,193,7,.22);}
.stats-c span{font-size:.76rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:rgba(255,255,255,.6);}

/* ---------- TESTIMONIALS ---------- */
.test{background:var(--navy);color:var(--white);}
.test-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,24px);}
.test-c{background:var(--white);border-radius:var(--r-lg);padding:clamp(24px,2.6vw,32px);display:flex;flex-direction:column;color:var(--ink);}
.test-stars{display:flex;gap:3px;margin-bottom:14px;}
.test-stars svg{width:16px;height:16px;color:var(--gold);}
.test-c p{font-size:.9rem;margin-bottom:20px;flex:1;color:var(--graphite);}
.test-who{display:flex;align-items:center;gap:12px;}
.test-av{width:42px;height:42px;border-radius:50%;background:var(--gold-wash);color:var(--gold-3);display:grid;place-items:center;font-weight:700;flex:none;}
.test-who b{font-size:.9rem;color:var(--navy);}
.test-who span{font-size:.75rem;color:var(--graphite);}

/* ---------- BLOG ---------- */
.blog{background:var(--white);}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,26px);}
.blog-c{position:relative;background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;transition:transform .4s var(--ease),box-shadow .4s var(--ease);}
.blog-c:hover{transform:translateY(-6px);box-shadow:var(--sh-2);}
.blog-c::after{content:"";position:absolute;inset:auto 0 0 0;height:3px;background:linear-gradient(90deg,var(--gold),var(--gold-2));transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease);}
.blog-c:hover::after{transform:scaleX(1);}
.blog-media{aspect-ratio:16/10;overflow:hidden;background:var(--paper-3);}
.blog-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease);}
.blog-c:hover .blog-media img{transform:scale(1.05);}
.blog-body{padding:clamp(20px,2.2vw,26px);display:flex;flex-direction:column;flex:1;}
.blog-tag{font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--gold-3);margin-bottom:10px;}
.blog-body h3{font-size:1.02rem;line-height:1.35;margin-bottom:14px;flex:1;}
.blog-body h3 a:hover{color:var(--gold-3);}

/* ---------- CTA ---------- */
.cta{background:var(--navy);color:var(--white);}
.cta-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:32px;align-items:center;}
.cta h2{color:var(--white);margin-bottom:14px;}
.cta p{color:rgba(255,255,255,.66);}
.cta-act{display:flex;justify-content:flex-end;}

/* ---------- NEWSLETTER ---------- */
.news{background:var(--paper-2);}
.news-box{background:var(--paper-3);border-radius:var(--r-lg);padding:clamp(28px,4vw,46px);display:grid;grid-template-columns:auto 1fr;gap:clamp(24px,4vw,46px);align-items:center;}
.news-box>img{height:60px;width:auto;}
.news h2{font-size:clamp(1.3rem,2.4vw,1.8rem);margin-bottom:16px;}
.news-form{display:flex;gap:12px;flex-wrap:wrap;}
.news-form input{flex:1;min-width:220px;background:var(--white);border:1px solid var(--line);border-radius:var(--r-sm);padding:14px 16px;font-size:.9rem;}
.news-form input:focus{outline:none;border-color:var(--gold-2);}

/* ---------- CONTACT ---------- */
.ct-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,5vw,56px);align-items:start;}
.ct-lead{color:var(--graphite);margin-bottom:28px;}
.ct-info{display:grid;gap:16px;}
.ct-i{display:flex;gap:14px;align-items:center;}
.ct-i .ii{width:50px;height:50px;border-radius:12px;background:var(--gold-3);display:grid;place-items:center;flex:none;}
.ct-i .ii svg{width:23px;height:23px;color:var(--white);}
.ct-i b{display:block;font-size:.9rem;color:var(--navy);}
.ct-i span,.ct-i a{font-size:.85rem;color:var(--graphite);}
.ct-i a:hover{color:var(--gold-3);}
.ct-map iframe,.ct-map .map-ph{width:100%;height:420px;border:0;border-radius:var(--r-lg);display:block;}
.map-ph{background:var(--paper-3);display:grid;place-items:center;color:var(--graphite);text-align:center;font-size:.9rem;}

/* ---------- GALLERY ---------- */
.gal-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:clamp(8px,1vw,14px);}
.gal-i{aspect-ratio:1;border-radius:var(--r);overflow:hidden;background:var(--paper-3);}
.gal-i img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease);}
.gal-i:hover img{transform:scale(1.08);}

/* ---------- PROSE (servizi/blog/legali) ---------- */
.prose{max-width:860px;margin-inline:auto;}
.prose>p{color:var(--graphite);margin-bottom:18px;font-size:1.02rem;}
.prose h2{margin:44px 0 18px;}
.prose h2:first-child{margin-top:0;}
.prose h3{margin:32px 0 14px;color:var(--navy);}
.prose ul{margin:0 0 22px;display:grid;gap:12px;}
.prose ul li{position:relative;padding-left:28px;color:var(--graphite);}
.prose ul li::before{content:"";position:absolute;left:0;top:9px;width:8px;height:8px;border-radius:50%;background:var(--gold);}
.prose ul li strong{color:var(--navy);}
.prose figure{margin:28px 0;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-1);}
.prose figure img{width:100%;}
.prose .figrow{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0;}
.prose .figrow img{width:100%;border-radius:var(--r);box-shadow:var(--sh-1);aspect-ratio:1;object-fit:cover;}
.prose .note{border-left:3px solid var(--teal);background:rgba(28,140,140,.08);padding:16px 20px;border-radius:0 var(--r-sm) var(--r-sm) 0;margin:24px 0;color:var(--ink);font-size:.92rem;}

/* ---------- FAQ ---------- */
.faq-list{max-width:860px;margin-inline:auto;}
.faq-i{border:1px solid var(--line);border-radius:var(--r);margin-bottom:12px;overflow:hidden;background:var(--white);}
.faq-q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;text-align:left;font-size:.95rem;font-weight:600;color:var(--navy);transition:background .25s;}
.faq-q:hover{background:var(--paper-2);}
.faq-q .qi{width:22px;height:22px;flex:none;position:relative;}
.faq-q .qi::before,.faq-q .qi::after{content:"";position:absolute;top:50%;left:50%;background:var(--gold-3);border-radius:2px;translate:-50% -50%;transition:.3s var(--ease);}
.faq-q .qi::before{width:12px;height:2px;}
.faq-q .qi::after{width:2px;height:12px;}
.faq-i.open .qi::after{opacity:0;}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s var(--ease);}
.faq-a p{padding:0 20px 20px;font-size:.88rem;color:var(--graphite);}

/* ---------- FLOAT WHATSAPP ---------- */
.float{position:fixed;right:clamp(16px,3vw,26px);bottom:clamp(16px,3vw,26px);z-index:800;width:56px;height:56px;border-radius:50%;background:#25D366;display:grid;place-items:center;box-shadow:0 14px 30px -8px rgba(37,211,102,.6);transition:transform .35s var(--ease);}
.float:hover{transform:scale(1.09);}
.float svg{width:28px;height:28px;color:#fff;}

/* ---------- FOOTER ---------- */
footer{background:var(--navy-2);color:rgba(255,255,255,.6);padding-block:clamp(48px,6vw,70px) 26px;}
.f-grid{display:grid;grid-template-columns:1.4fr 1fr 1.3fr 1.3fr;gap:clamp(28px,4vw,44px);margin-bottom:clamp(36px,5vw,50px);}
.f-brand img{height:54px;width:auto;margin-bottom:16px;}
.f-brand p{font-size:.82rem;color:rgba(255,255,255,.5);margin-bottom:20px;}
.f-iso{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.f-iso .lbl{font-size:.72rem;color:rgba(255,255,255,.5);}
.f-iso .isob{width:50px;height:50px;border-radius:8px;background:rgba(255,255,255,.06);display:grid;place-items:center;font-size:.58rem;font-weight:700;color:rgba(255,255,255,.5);text-align:center;line-height:1.2;}
.f-col h4{font-size:.95rem;color:var(--white);margin-bottom:18px;font-weight:600;}
.f-col li{margin-bottom:11px;}
.f-col a{font-size:.84rem;transition:color .3s;}
.f-col a:hover{color:var(--gold);}
.f-news{display:flex;flex-direction:column;gap:16px;}
.f-new-i{display:flex;gap:12px;align-items:center;}
.f-new-i img{width:52px;height:52px;border-radius:8px;object-fit:cover;flex:none;}
.f-new-i a{font-size:.8rem;font-weight:500;color:rgba(255,255,255,.75);line-height:1.4;}
.f-new-i a:hover{color:var(--gold);}
.f-contact{display:grid;gap:12px;}
.f-contact li{display:flex;gap:10px;align-items:flex-start;font-size:.84rem;}
.f-contact svg{width:16px;height:16px;color:var(--gold);flex:none;margin-top:3px;}
.f-contact a:hover{color:var(--gold);}
.f-soc{display:flex;gap:10px;margin-top:6px;}
.f-soc a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.08);display:grid;place-items:center;transition:background .3s;}
.f-soc a:hover{background:var(--gold);}
.f-soc a:hover svg{color:var(--navy);}
.f-soc svg{width:15px;height:15px;color:rgba(255,255,255,.75);}
.f-bot{border-top:1px solid rgba(255,255,255,.1);padding-top:24px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:.76rem;color:rgba(255,255,255,.4);}
.f-legal{display:flex;gap:20px;flex-wrap:wrap;}
.f-legal a:hover{color:var(--gold);}

/* ==========================================================================
   REVEAL — a prova di guasto. Il contenuto è SEMPRE visibile.
   Solo gli elementi che JS marca con .pre vengono nascosti un istante e poi
   animati con .in. Se JS non parte, .pre non viene mai aggiunto: tutto visibile.
   ========================================================================== */
.reveal{opacity:1;transform:none;}
.reveal.pre{opacity:0;transform:translateY(18px);}
.reveal.pre.in{opacity:1;transform:none;transition:opacity .7s var(--ease),transform .7s var(--ease);}
@media (prefers-reduced-motion:reduce){.reveal.pre{opacity:1 !important;transform:none !important;}}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1080px){
  .feat-grid{grid-template-columns:repeat(2,1fr);row-gap:28px;}
  .svc-grid,.blog-grid,.test-grid{grid-template-columns:repeat(2,1fr);}
  .f-grid{grid-template-columns:1fr 1fr;}
  .f-brand{grid-column:1/-1;}
}
@media (max-width:900px){
  html{scroll-padding-top:110px;}
  .menu,.header-tel{display:none;}
  .burger{display:flex;}
  .hero .wrap{grid-template-columns:1fr;gap:34px;}
  .about-grid,.ct-grid,.cta-grid{grid-template-columns:1fr;}
  .cta-act{justify-content:flex-start;}
  .stats-grid{grid-template-columns:repeat(2,1fr);row-gap:34px;}
  .ba-grid{grid-template-columns:1fr 1fr;}
  .gal-grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:640px){
  body{font-size:15px;}
  .topbar .wrap{justify-content:center;}
  .topbar-l{gap:14px;font-size:.72rem;}
  .feat-grid,.svc-grid,.blog-grid,.test-grid,.ba-grid{grid-template-columns:1fr;}
  .stats-grid{grid-template-columns:1fr 1fr;}
  .row{grid-template-columns:1fr;}
  .gal-grid{grid-template-columns:repeat(2,1fr);}
  .f-grid{grid-template-columns:1fr;}
  .news-box{grid-template-columns:1fr;text-align:center;}
  .news-box>img{margin:0 auto;}
  .prose .figrow{grid-template-columns:1fr;}
  .about-badge{position:static;margin-top:14px;display:inline-flex;}
  .f-bot{flex-direction:column;}
}
@media (max-width:400px){.stats-grid{grid-template-columns:1fr;}}
