/* ==========================================================================
   ITALCLIMA — foglio di stile principale
   Bianco + blu notte, accenti arancio, Sora
   ========================================================================== */

:root {
  --navy: #0E2A47;
  --navy-2: #143559;
  --blue: #1E6FD9;
  --blue-soft: #E8F1FD;
  --orange: #FF6A2B;
  --orange-soft: #FFF0E8;
  --green-it: #009246;
  --red-it: #CE2B37;
  --ink: #0E2A47;
  --text: #3D5470;
  --muted: #7A8CA3;
  --line: #E3E9F1;
  --bg: #FFFFFF;
  --bg-2: #F4F7FB;
  --wa: #1FAF5A;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 42, 71, .06), 0 12px 32px -12px rgba(14, 42, 71, .18);
  --shadow-lg: 0 30px 60px -24px rgba(14, 42, 71, .35);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --header-h: 76px;
  --thermo: .25;
  --swap-dur: .9s;
  --clima: var(--blue);
}
:root[data-clima="warm"] { --clima: var(--orange); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.025em; font-weight: 650; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1240px, 100% - 64px); } }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.grad {
  background: linear-gradient(90deg, var(--blue), #7A6BE0 55%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Bottoni ---------- */
.btn {
  --b: var(--navy); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--b);
  background: var(--b); color: var(--c); font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px var(--b); }
.btn-primary { --b: var(--blue); }
.btn-primary:hover { --b: #1760C2; }
.btn-wa { --b: var(--wa); }
.btn-light { --b: #fff; --c: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); --b: var(--line); }
.btn-lg { padding: 16px 26px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-icon { padding: 0; width: 44px; height: 44px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); text-decoration: none; }
.link-arrow .ic { transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; color: #4A4F55; text-decoration: none; }
.logo-svg { display: block; height: 56px; width: auto; }
.logo-inv { color: #FFFFFF; }
.logo-inv .logo-svg { height: 60px; }
@media (max-width: 600px) { .logo-svg { height: 46px; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.header.is-scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.header-logo { text-decoration: none; margin-right: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink); transition: background .2s, color .2s; }
.nav a:hover { background: var(--bg-2); }
.nav a.is-active { color: var(--blue); background: var(--blue-soft); }
.header-cta { padding: 11px 18px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .ic { width: 22px; height: 22px; }
.drawer, .drawer-fondo { display: none; }

@media (max-width: 959px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta span { display: none; }
  .header-cta { width: 46px; height: 46px; padding: 0; }
  .menu-open { overflow: hidden; }

  /* Sidebar: entra da destra, la pagina dietro si scurisce */
  .drawer-fondo {
    display: block; position: fixed; inset: 0; z-index: 70; background: rgba(8, 24, 42, .45); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .drawer {
    display: flex; flex-direction: column; position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(86vw, 380px);
    padding: 0 26px calc(30px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border-radius: 28px 0 0 28px; box-shadow: -40px 0 80px -40px rgba(8, 24, 42, .5);
    transform: translateX(104%); visibility: hidden; transition: transform .6s var(--ease), visibility .6s;
  }
  .menu-open .drawer-fondo { opacity: 1; visibility: visible; }
  .menu-open .drawer { transform: none; visibility: visible; }
  .drawer-top { flex: none; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
  .drawer-logo { text-decoration: none; }
  .drawer-chiudi { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .4s var(--ease); }
  .drawer-chiudi:hover { background: var(--navy); color: #fff; transform: rotate(90deg); }
  .drawer-chiudi .ic { width: 20px; height: 20px; }
  .drawer-voci { margin-top: 18px; }
  .drawer-voci a {
    display: flex; align-items: baseline; gap: 16px; padding: 20px 2px; border-bottom: 1px solid var(--line);
    font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); text-decoration: none;
    opacity: 0; transform: translateX(28px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s;
  }
  .drawer-voci span { font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .2s; }
  .drawer-voci a:hover, .drawer-voci a.is-active { color: var(--blue); }
  .drawer-voci a.is-active span { color: var(--orange); }
  .menu-open .drawer-voci a { opacity: 1; transform: none; }
  .menu-open .drawer-voci li:nth-child(1) a { transition-delay: .12s, .12s, 0s; }
  .menu-open .drawer-voci li:nth-child(2) a { transition-delay: .18s, .18s, 0s; }
  .menu-open .drawer-voci li:nth-child(3) a { transition-delay: .24s, .24s, 0s; }
  .menu-open .drawer-voci li:nth-child(4) a { transition-delay: .30s, .30s, 0s; }
  .drawer-claim {
    margin-top: auto; padding-top: 40px; font-size: 1.35rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.2;
    background: linear-gradient(90deg, var(--blue), #7A6BE0 55%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(30, 111, 217, .10), transparent 60%),
    radial-gradient(700px 500px at 100% 80%, rgba(255, 106, 43, .10), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-2));
  overflow: hidden;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.hero-swap { position: relative; display: grid; margin-top: 14px; font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.2; }
.hero-swap > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .35em; transition: opacity var(--swap-dur) var(--ease), transform var(--swap-dur) var(--ease), filter var(--swap-dur); white-space: nowrap; }
.hero-swap .is-cold { color: var(--blue); }
.hero-swap .is-warm { color: var(--orange); opacity: 0; transform: translateY(.4em); filter: blur(6px); }
:root[data-swap="warm"] .hero-swap .is-cold { opacity: 0; transform: translateY(-.4em); filter: blur(6px); }
:root[data-swap="warm"] .hero-swap .is-warm { opacity: 1; transform: none; filter: none; }
.hero-lead { margin-top: 26px; max-width: 34em; font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.hero-lead strong { color: var(--ink); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-grid > * { min-width: 0; }
@media (max-width: 519px) { .hero-cta .btn { flex: 1 1 100%; white-space: normal; text-align: center; } }

.hero-visual { position: relative; padding: 0 0 40px; }
.hero-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; transform: scale(1.04); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 50%, rgba(14, 42, 71, .35)); }

.thermo {
  position: absolute; left: -18px; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 14px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-radius: 22px; box-shadow: var(--shadow-lg);
}
.thermo-ring { position: relative; width: 84px; height: 84px; }
.thermo-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.thermo-track { fill: none; stroke: var(--line); stroke-width: 9; }
.thermo-val { fill: none; stroke: var(--clima); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: calc(314 - 314 * var(--thermo)); transition: stroke-dashoffset var(--swap-dur) var(--ease), stroke var(--swap-dur); }
.thermo-num { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.thermo-num sup { font-size: .7rem; margin-top: 6px; color: var(--muted); }
.thermo-info { display: grid; line-height: 1.3; }
.thermo-mode { font-weight: 650; color: var(--clima); transition: color var(--swap-dur); }
.thermo-sub { font-size: .8rem; color: var(--muted); }
@media (max-width: 600px) {
  .thermo { left: 8px; transform: scale(.88); transform-origin: left bottom; }
}

/* ---------- Chi siamo: testo + numeri ---------- */
.team-txt h2 { margin-bottom: 22px; }
.intro-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.25; color: var(--ink); }
.intro-p { max-width: 44em; font-size: 1.06rem; margin-top: 20px; }
.numeri { margin: 40px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); }
.numeri > div { padding: 26px 20px 0 0; }
.numeri > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.numeri dt { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.numeri > div:nth-child(odd) dt { color: var(--blue); }
.numeri > div:nth-child(even) dt { color: var(--orange); }
.numeri dd { margin: 10px 0 24px; font-size: .92rem; }

/* ---------- Intestazioni sezione ---------- */
.sec-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head p { margin-top: 18px; font-size: 1.06rem; }
@media (max-width: 719px) { .sec-head h2 br { display: none; } }
.sec-head-row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }

/* ---------- Servizi ---------- */
.servizi { background: var(--bg-2); }
/* Fisarmonica: sette pannelli affiancati, quello aperto si allarga a tutta foto */
.srv-list { display: flex; gap: 12px; height: clamp(500px, 64vh, 620px); }
.srv {
  position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); color: #fff; transition: flex-grow .8s var(--ease);
}
.srv.is-open { flex-grow: 7; }
.srv-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(.5); transition: transform 1.4s var(--ease), filter .8s var(--ease); }
.srv.is-open .srv-img { transform: none; filter: none; }
.srv::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 42, 71, .35), rgba(14, 42, 71, .7) 60%, rgba(14, 42, 71, .92));
  transition: background .8s var(--ease);
}
.srv.is-open::after { background: linear-gradient(180deg, rgba(14, 42, 71, 0) 40%, rgba(14, 42, 71, .55) 65%, rgba(14, 42, 71, .92)); }
.srv-tab {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.srv.is-open .srv-tab { cursor: default; }
.srv-tab:focus-visible { outline-offset: -6px; border-radius: var(--radius); }
.srv-n { margin-top: 24px; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .75; transition: color .4s; }
.srv-nome {
  margin-bottom: 28px; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; transition: opacity .35s;
}
.srv.is-open .srv-n { color: var(--orange); opacity: 1; }
.srv.is-open .srv-nome { opacity: 0; }
.srv-body {
  position: absolute; left: 36px; bottom: 34px; width: min(460px, calc(100% - 72px)); pointer-events: none;
  opacity: 0; transform: translateY(18px); transition: opacity .3s, transform .3s;
}
.srv.is-open .srv-body { opacity: 1; transform: none; transition: opacity .6s var(--ease) .35s, transform .6s var(--ease) .35s; }
.srv-body h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -.03em; }
.srv-body p { margin-top: 12px; color: rgba(255, 255, 255, .88); font-size: 1.04rem; max-width: 30em; }
.srv.is-open .srv-n { align-self: flex-start; margin-left: 36px; margin-top: 30px; }
.srv:not(.is-open):hover .srv-img { transform: scale(1.06); filter: saturate(.8); }

/* Sotto i 960px la fisarmonica diventa verticale */
@media (max-width: 959px) {
  .srv-list { flex-direction: column; height: auto; gap: 10px; }
  .srv { flex: none; height: 78px; transition: height .7s var(--ease); }
  .srv.is-open { height: 400px; }
  .srv-tab { flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 16px; padding: 27px 22px; }
  .srv-n { margin: 2px 0 0; }
  .srv.is-open .srv-n { margin: 2px 0 0; }
  .srv-nome { margin: 0; writing-mode: horizontal-tb; transform: none; font-size: 1.1rem; line-height: 1.3; }
  .srv-body { left: 22px; bottom: 24px; width: calc(100% - 44px); }
}
@media (prefers-reduced-motion: reduce) { .srv, .srv-img, .srv-body { transition: none; } }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .team-grid { grid-template-columns: 1fr 1.05fr; gap: 80px; } }
.team-cards { display: grid; gap: 18px; }
@media (min-width: 600px) { .team-cards { grid-template-columns: 1fr 1fr; } .persona:nth-child(2) { margin-top: 48px; } }
.persona {
  position: relative; isolation: isolate; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 24px; overflow: hidden; color: #fff; box-shadow: var(--shadow-lg);
}
@media (max-width: 599px) { .persona { aspect-ratio: 1 / 1; } }
.persona::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 24, 42, 0) 45%, rgba(8, 24, 42, .82) 100%); }
.persona-foto { position: absolute; inset: 0; z-index: -2; padding-bottom: 28%; background: linear-gradient(160deg, var(--blue), var(--navy)); display: grid; place-content: center; }
.persona:nth-child(2) .persona-foto { background: linear-gradient(160deg, var(--orange), #B9411A); }
.persona-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.persona-foto span { font-size: 4.4rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.persona-foto.is-placeholder::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 55%); }
.persona-body { padding: 22px; }
.persona-body h3 { color: #fff; }
.persona-cta { display: flex; gap: 8px; margin-top: 14px; }
.persona-cta .btn-icon { width: 40px; height: 40px; }

/* ---------- Progetti ---------- */
.progetti { background: var(--bg); overflow: hidden; }
.lavori-head { margin-inline: auto; text-align: center; }
.carosello { --slide: min(84vw, 460px); }
.car-track {
  display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain;
  padding-block: 8px 24px; padding-inline: calc(50% - var(--slide) / 2); scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.car-track:focus-visible { outline-offset: -3px; }
.progetto {
  position: relative; flex: 0 0 var(--slide); aspect-ratio: 3 / 4; scroll-snap-align: center;
  border-radius: var(--radius); overflow: hidden; display: block; color: #fff; text-decoration: none; isolation: isolate;
  transform: scale(.88); opacity: .55; filter: saturate(.6);
  transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s var(--ease), box-shadow .7s var(--ease);
}
.progetto.is-active { transform: none; opacity: 1; filter: none; box-shadow: 0 40px 80px -40px rgba(14, 42, 71, .55); }
.progetto img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease); }
.progetto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 24, 42, .8)); opacity: 0; transition: opacity .7s var(--ease); }
.progetto.is-active::after { opacity: 1; }
.progetto.is-active:hover img { transform: scale(1.03); }
.progetto-info { position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 1; display: grid; gap: 4px; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease) .1s, transform .6s var(--ease) .1s; }
.progetto.is-active .progetto-info { opacity: 1; transform: none; }
.progetto-info strong { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.25; }
.progetto-info em { font-style: normal; font-size: .92rem; opacity: .8; }
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 18px; }
.car-count { display: inline-flex; align-items: center; gap: 14px; font-size: .95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.car-count b { color: var(--ink); font-weight: 600; }
.car-bar { width: clamp(80px, 18vw, 180px); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.car-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); transform-origin: left; transform: scaleX(var(--p, .0714)); transition: transform .6s var(--ease); }
.car-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.car-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.car-btn .ic { width: 20px; height: 20px; }
.car-prev .ic { transform: rotate(180deg); }
.lavori-ig { margin-top: 22px; text-align: center; font-size: .95rem; }
@media (max-width: 719px) { .carosello { --slide: 74vw; } .car-track { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .car-track { scroll-behavior: auto; } .progetto { transition: none; } }

/* ---------- Recensioni ---------- */
.recensioni { background: var(--bg); padding-top: 0; }
.rec-stelle { display: inline-flex; gap: 3px; color: #F5A524; }
.rec-stelle svg { width: 18px; height: 18px; fill: currentColor; }
.rec-stelle-lg svg { width: 30px; height: 30px; }
.rec-list { display: grid; gap: 20px; margin-bottom: 40px; }
@media (min-width: 860px) { .rec-list { grid-template-columns: repeat(3, 1fr); } }
.rec { margin: 0; display: grid; gap: 14px; align-content: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.rec blockquote { margin: 0; color: var(--ink); line-height: 1.6; }
.rec figcaption { font-size: .9rem; color: var(--muted); }
.rec figcaption strong { color: var(--ink); font-weight: 600; }
.rec-invito {
  display: grid; gap: 22px; justify-items: center; text-align: center;
  padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 64px); border-radius: 32px;
  background: linear-gradient(135deg, var(--blue-soft), var(--orange-soft));
}
.rec-invito-txt { max-width: 34em; }
.rec-invito-txt h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.rec-invito-txt p { margin-top: 14px; font-size: 1.06rem; }
.rec-invito-cta { display: grid; gap: 18px; justify-items: center; }
@media (max-width: 599px) { .rec-invito-cta .btn { width: 100%; justify-content: center; } .rec-invito-cta { width: 100%; } }

/* ---------- Contatti ---------- */
.contatti { background: var(--bg-2); }
.contatti-box {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 40px;
  padding: clamp(32px, 6vw, 72px); border-radius: 32px; color: #C8D6E8;
  background: linear-gradient(135deg, var(--navy) 0%, #12355A 100%);
}
.contatti-box::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 43, .25), transparent 65%); }
.contatti-box::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(30, 111, 217, .3), transparent 65%); }
@media (min-width: 1024px) { .contatti-box { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.contatti-txt h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.contatti-txt > p { margin-top: 18px; font-size: 1.06rem; max-width: 30em; }
.contatti-dati { margin: 36px 0 0; display: grid; gap: 18px; }
.contatti-dati dt { font-size: .82rem; color: #8FA6C2; }
.contatti-dati dd { margin: 2px 0 0; color: #fff; font-weight: 500; }
.contatti-dati a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s; }
.contatti-dati a:hover { border-color: #fff; }
.contatti-persone { display: grid; gap: 14px; }
.contatto { display: grid; gap: 4px; padding: 26px 28px; background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.contatto strong { color: var(--ink); font-size: 1.05rem; }
.contatto-tel { color: var(--ink); text-decoration: none; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.contatto:nth-child(1) .contatto-tel:hover { color: var(--blue); }
.contatto:nth-child(2) .contatto-tel:hover { color: var(--orange); }
.contatto-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.contatto-cta .btn { flex: 1; justify-content: center; }
@media (max-width: 599px) { .contatti-box { padding: 32px 22px; border-radius: 26px; } .contatto { padding: 22px 20px; } .contatto-cta { gap: 8px; } .contatto-cta .btn { flex: 1 1 auto; padding: 13px 12px; gap: 8px; font-size: .9rem; } }

/* ---------- Footer ---------- */
.footer { background: #081C31; color: #93A7BF; padding: 80px 0 0; font-size: .92rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand p { margin: 18px 0; max-width: 26em; }
.footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer ul { display: grid; gap: 8px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-ig { display: inline-flex; gap: 8px; align-items: center; color: #fff; }
.footer-bottom { margin-top: 64px; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-size: .82rem; }
.credito a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s; }
.credito a:hover { border-color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(6, 18, 32, .92); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-content: center; padding: 64px 16px; gap: 14px; }
.lightbox img { max-height: calc(100vh - 160px); max-width: min(1200px, 100%); border-radius: 14px; object-fit: contain; }
.lightbox figcaption { color: #fff; text-align: center; font-weight: 500; }
.lb-btn { position: fixed; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; }

/* ---------- Pagine testuali (privacy, cookie) ---------- */
.pagina { padding: calc(var(--header-h) + 56px) 0 100px; background: linear-gradient(180deg, var(--bg-2), #fff 420px); }
.pagina-in { width: min(780px, 100% - 32px); margin-inline: auto; }
.pagina h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 32px; }
.pagina h2 { font-size: 1.4rem; margin: 44px 0 12px; }
.pagina h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.pagina p, .pagina li { margin-bottom: 10px; }
.pagina ul { list-style: disc; padding-left: 22px; }
.pagina a { color: var(--blue); }
.pagina a[href^="tel:"] { white-space: nowrap; }
.pagina-404 p { font-size: 1.06rem; }
.pagina-404 .btn { margin-top: 28px; color: #fff; }
.in-breve { padding: 20px 24px; background: var(--blue-soft); border-radius: var(--radius-sm); color: var(--ink); }
.scheda { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; margin: 16px 0; background: #fff; }
.scheda h3 { margin: 0 0 10px; }
.scheda dl { margin: 0; display: grid; gap: 8px; }
.scheda dl > div { display: grid; gap: 2px; }
@media (min-width: 640px) { .scheda dl > div { grid-template-columns: 150px 1fr; gap: 16px; } }
.scheda dt { font-weight: 600; color: var(--ink); font-size: .9rem; }
.scheda dd { margin: 0; font-size: .95rem; }

/* ---------- Comparsa allo scroll ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
