/* ============================================================
   Tecnical SRL — Stylesheet
   Sito vetrina statico · design system
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette industriale */
  --navy:      #0a2a42;
  --navy-700:  #10496e;
  --blue:      #009fe3;
  --blue-600:  #0086c5;
  --accent:    #ef7d00;
  --accent-600: #d46f00;

  --ink:       #12212f;
  --muted:     #5c6b7a;
  --line:      #e5ebf1;

  --bg:        #ffffff;
  --bg-soft:   #f4f7fb;
  --bg-navy:   #0a2a42;

  --white:     #ffffff;

  /* Tipografia */
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --wrap: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(12, 32, 51, .06);
  --shadow:    0 12px 40px rgba(12, 32, 51, .10);
  --shadow-lg: 0 24px 60px rgba(12, 32, 51, .16);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, li { overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(239,125,0,.32); }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(239,125,0,.4); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--navy); letter-spacing: -.02em; }
.brand__tag { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: .98rem; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--bg-soft); color: var(--navy); }
.nav__links a.is-active { color: var(--blue); font-weight: 600; }
.nav__cta { margin-left: 10px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--bg-navy); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(0,159,227,.55), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(239,125,0,.18), transparent 55%),
    linear-gradient(160deg, #0a2a42 0%, #10496e 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 80% at 60% 30%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: clamp(64px, 9vw, 116px); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #38d39f; box-shadow: 0 0 0 4px rgba(56,211,159,.2); }
.hero h1 { color: #fff; }
.hero h1 .hl { color: #ffc38a; }
.hero__sub { margin-top: 22px; font-size: 1.14rem; color: rgba(255,255,255,.82); max-width: 52ch; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { margin-top: 44px; display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stat .n { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: #fff; }
.hero__stat .l { font-size: .86rem; color: rgba(255,255,255,.65); }

/* Hero visual */
.hero__visual { position: relative; }
.hero__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.hero__photo {
  aspect-ratio: 4 / 3.4; border-radius: 12px; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,159,227,.35), rgba(12,32,51,.6)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; color: rgba(255,255,255,.5); text-align: center;
  position: relative;
}
.hero__photo .ph { font-size: .82rem; letter-spacing: .04em; padding: 20px; }
.hero__float {
  position: absolute; left: -22px; bottom: 26px;
  background: #fff; color: var(--navy); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.hero__float .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; color: var(--blue); }
.hero__float .ic svg { width: 22px; height: 22px; }
.hero__float b { font-family: var(--font-head); font-size: .98rem; display: block; }
.hero__float span { font-size: .8rem; color: var(--muted); }

/* ============================================================
   LOGO / TRUST STRIP
   ============================================================ */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip__inner { display: flex; align-items: center; gap: 30px; padding-block: 26px; flex-wrap: wrap; justify-content: center; }
.strip__label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.strip__badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.strip__badge svg { width: 20px; height: 20px; color: var(--blue); }

/* ============================================================
   FEATURE CARDS (servizi)
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(0,159,227,.12), rgba(0,159,227,.04));
  color: var(--blue);
}
.card__ic svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ============================================================
   SETTORI / CATEGORIE
   ============================================================ */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 210px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--navy); color: #fff; isolation: isolate;
  transition: transform .3s var(--ease);
}
.cat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: linear-gradient(180deg, rgba(12,32,51,.15) 0%, rgba(12,32,51,.88) 100%),
              linear-gradient(135deg, var(--blue), var(--navy));
}
.cat::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .35;
  background-image: repeating-linear-gradient(60deg, rgba(255,255,255,.08) 0 2px, transparent 2px 16px);
}
.cat:hover { transform: translateY(-5px); }
.cat__num { position: absolute; top: 20px; right: 22px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; opacity: .5; }
.cat h3 { color: #fff; font-size: 1.28rem; }
.cat p { font-size: .9rem; color: rgba(255,255,255,.8); margin-top: 6px; }
.cat__arrow { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-family: var(--font-head); font-size: .9rem; color: #ffc38a; }
.cats__note { margin-top: 26px; text-align: center; color: var(--muted); font-size: .95rem; }

/* ============================================================
   SPLIT (immagine + testo)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 5 / 4; background:
    linear-gradient(135deg, rgba(0,159,227,.14), rgba(12,32,51,.06)),
    repeating-linear-gradient(45deg, rgba(12,32,51,.05) 0 14px, transparent 14px 28px);
  display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px;
}
.split__media .ph { font-size: .85rem; }
.split ul.checks { margin-top: 22px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.checks li svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.checks li b { font-family: var(--font-head); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; color: #fff;
  padding: clamp(40px, 6vw, 68px); text-align: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
}
.cta::after {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 40%),
                    radial-gradient(circle at 80% 90%, rgba(239,125,0,.4), transparent 45%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); max-width: 56ch; margin: 16px auto 30px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO (interne)
   ============================================================ */
.pagehero { background: var(--bg-navy); color: #fff; position: relative; overflow: hidden; }
.pagehero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 85% -20%, rgba(0,159,227,.5), transparent 60%), linear-gradient(160deg,#0a2a42,#10496e);
}
.pagehero__inner { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 92px); }
.pagehero h1 { color: #fff; max-width: 18ch; }
.pagehero p { color: rgba(255,255,255,.82); margin-top: 16px; max-width: 58ch; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }

/* ============================================================
   CHI SIAMO
   ============================================================ */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background:#fff; }
.value__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-soft); color: var(--accent); display:grid; place-items:center; margin-bottom:16px; }
.value__ic svg { width: 24px; height: 24px; }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); font-size:.96rem; }

.stats-band { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align:center; }
.stat .n { font-family: var(--font-head); font-weight:700; font-size: clamp(2rem,4vw,2.8rem); color: var(--navy); }
.stat .n .accent { color: var(--accent); }
.stat .l { color: var(--muted); font-size:.92rem; margin-top:4px; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.ccard { display:flex; gap:16px; padding: 22px; border:1px solid var(--line); border-radius: var(--radius); background:#fff; transition: box-shadow .3s, border-color .3s; }
.ccard:hover { box-shadow: var(--shadow-sm); border-color: transparent; }
.ccard__ic { width:46px; height:46px; border-radius:12px; flex:none; background: linear-gradient(135deg, rgba(0,159,227,.12), rgba(0,159,227,.04)); color: var(--blue); display:grid; place-items:center; }
.ccard__ic svg { width:23px; height:23px; }
.ccard h3 { font-size:1.02rem; margin-bottom:3px; }
.ccard p, .ccard a { color: var(--muted); font-size:.96rem; }
.ccard a:hover { color: var(--blue); }

.form { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,4vw,38px); box-shadow: var(--shadow-sm); }
.form h3 { margin-bottom: 6px; }
.form > p.hint { color: var(--muted); font-size:.95rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display:block; font-family: var(--font-head); font-weight:600; font-size:.88rem; margin-bottom:7px; color: var(--navy); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width:100%; padding: 13px 15px; border:1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size:.98rem; color: var(--ink); background:#fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,159,227,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__consent { display:flex; gap:10px; align-items:flex-start; font-size:.86rem; color: var(--muted); margin-bottom: 22px; }
.form__consent input { margin-top: 4px; width:auto; }
.form__note { margin-top: 14px; font-size:.85rem; color: var(--muted); text-align:center; }
.form__msg { display:none; padding:14px 16px; border-radius: var(--radius-sm); font-size:.92rem; margin-bottom: 18px; }
.form__msg.ok { display:block; background:#e8f7f0; color:#0f6b47; border:1px solid #b9e6d3; }
.form__msg.err { display:block; background:#fdecec; color:#b3261e; border:1px solid #f6c9c6; }

.map { border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 8px; }
.map iframe { width:100%; height: 380px; border:0; display:block; filter: grayscale(.15); }

/* ============================================================
   LEGAL / INFORMATIVA
   ============================================================ */
.legal { max-width: 820px; }
.legal__meta { color: var(--muted); font-size: .9rem; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.4rem; margin-top: 44px; margin-bottom: 14px; scroll-margin-top: 100px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin-top: 26px; margin-bottom: 8px; }
.legal p { color: var(--ink); margin-bottom: 14px; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { margin: 0 0 16px; padding-left: 4px; display: grid; gap: 9px; }
.legal ul li { position: relative; padding-left: 26px; color: var(--ink); }
.legal ul li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent);
}
.legal a { color: var(--blue); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal .box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin: 8px 0 20px;
}
.legal .box p:last-child { margin-bottom: 0; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.legal .toc a {
  font-size: .86rem; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted);
}
.legal .toc a:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.legal table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); font-family: var(--font-head); font-weight: 600; color: var(--navy); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,.72); }
.footer__top { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px; }
.footer__brand .brand__name { color:#fff; }
.footer__brand .brand__tag { color: rgba(255,255,255,.5); }
.footer__about { margin-top: 18px; font-size:.94rem; max-width: 34ch; }
.footer__socials { margin-top: 20px; display:flex; gap:10px; }
.footer__socials a { width:40px; height:40px; border-radius:10px; background: rgba(255,255,255,.08); display:grid; place-items:center; color:#fff; transition: background .2s, transform .2s; }
.footer__socials a:hover { background: var(--blue); transform: translateY(-2px); }
.footer__socials svg { width:19px; height:19px; }
.footer h4 { font-family: var(--font-head); color:#fff; font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; margin-bottom:18px; font-weight:600; }
.footer__col a, .footer__col li { display:block; padding:5px 0; font-size:.95rem; color: rgba(255,255,255,.72); }
.footer__col a:hover { color:#fff; }
.footer__col .addr { font-size:.92rem; margin-bottom:14px; }
.footer__col .addr b { color:#fff; font-family: var(--font-head); font-weight:600; display:block; font-size:.82rem; letter-spacing:.04em; margin-bottom:3px; }
.footer__bottom { border-top:1px solid rgba(255,255,255,.1); padding-block: 22px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.85rem; color: rgba(255,255,255,.55); }
.footer__bottom a:hover { color:#fff; }

/* ============================================================
   LOGO immagine (dal vecchio sito)
   ============================================================ */
.brand__logo { height: 52px; width: auto; display: block; }
.footer__logo { height: 60px; width: auto; display: block; }

/* ============================================================
   IMMAGINI (hero / split / gallery)
   ============================================================ */
.hero__photo img, .split__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.split__media { position: relative; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: var(--bg-soft);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%);
  z-index: 200; width: min(680px, calc(100% - 32px));
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px 24px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  transition: transform .45s var(--ease), opacity .45s var(--ease); opacity: 0;
}
.cookie.show { transform: translate(-50%, 0); opacity: 1; }
.cookie__txt { flex: 1 1 320px; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.cookie__txt b { color: var(--navy); font-family: var(--font-head); display: block; margin-bottom: 3px; font-size: 1rem; }
.cookie__txt a { color: var(--blue); font-weight: 500; }
.cookie__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie .btn { --pad-y: 11px; --pad-x: 20px; font-size: .9rem; }

/* Gate consenso mappa (Google Maps) */
.map__frame { position: relative; }
.map__gate {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center;
  justify-items: center; text-align: center; gap: 14px; padding: 30px;
  background: var(--bg-soft);
}
.map__gate.hidden { display: none; }
.map__gate p { max-width: 46ch; color: var(--muted); font-size: .95rem; }
.map__gate .links { font-size: .82rem; color: var(--muted); }
.map__gate .links a { color: var(--blue); }

/* ============================================================
   REVEAL animation
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy, .hero__visual { min-width: 0; }
  .hero__visual { max-width: 460px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cards, .cats, .values { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--rev .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stats-band { grid-template-columns: repeat(2,1fr); gap: 32px; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background:#fff; padding: 18px 20px 26px; border-bottom:1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 13px 14px; border-radius: 10px; }
  .nav__cta { margin-left: 0; margin-top: 6px; text-align:center; justify-content:center; }
  .nav__toggle { display: flex; }
  .cards, .cats, .values { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .hero__float { left: 10px; }

  /* Hero mobile */
  .hero__inner { padding-block: 50px 58px; gap: 32px; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .hero__sub { font-size: 1.02rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__stats { gap: 22px 28px; margin-top: 32px; }
  .hero__visual { max-width: 100%; }

  /* CTA / band mobile */
  .cta { padding: 34px 22px; }
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.75rem, 9vw, 2.2rem); }
  .hero__stat .n { font-size: 1.6rem; }
  .section { padding-block: 56px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__actions { justify-content: stretch; }
  .cookie__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity:1; transform:none; transition:none; }
}
