/* ==========================================================
   360 Multiservizi — muratori, ristrutturazioni, manutenzioni
   Stile: calce e cemento, accento mattone. Angoli netti,
   linee sottili, numerazione "in gradi" come firma.
   ========================================================== */

/* ---------- Font (inclusi nella cartella, funzionano anche offline) ---------- */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #F1F2F4;          /* bianco calce */
  --bg-2: #E5E8EE;
  --paper: #FFFFFF;
  --ink: #14171D;
  --ink-2: #45474B;
  --muted: #74767A;
  --line: rgba(28, 29, 31, .14);
  --line-2: rgba(28, 29, 31, .30);

  --dark: #111A2E;        /* blu notte */
  --dark-2: #1A2540;
  --bone: #EEECE7;
  --bone-2: #BDBBB5;
  --dline: rgba(238, 236, 231, .14);
  --dline-2: rgba(238, 236, 231, .32);

  --accent: #0B3D91;      /* blu del logo */
  --accent-2: #6D9CFF;    /* blu su fondo scuro */
  --accent-ink: #FFFFFF;
  --verde: #068433;
  --rosso: #E31B1E;
  --tricolore: linear-gradient(90deg, var(--verde) 0 33.33%, #FFFFFF 33.33% 66.66%, var(--rosso) 66.66%);

  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec: clamp(80px, 10vw, 132px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
* { -webkit-tap-highlight-color: transparent; }
@media (hover: none) { :focus-visible { outline: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 300; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--dark); color: var(--bone); }
.section--dark p { color: var(--bone-2); }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: .98; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-size: clamp(42px, 10.6vw, 96px); }
h2 { font-size: clamp(40px, 5.6vw, 72px); }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.08; font-weight: 600; letter-spacing: .01em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.section--dark h2 em { color: var(--accent-2); }
p { margin: 0 0 1em; color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section--dark .label { color: var(--accent-2); }
.label--light { color: var(--bone); }
.label--light::before { background: var(--accent-2); }

.center { text-align: center; }
.head { margin-bottom: clamp(44px, 6vw, 72px); }
.head h2 { margin-top: 18px; }
.head > p { max-width: 520px; margin: 22px 0 0; }
.head.center .label { justify-content: center; }
.head--split { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: end; }
.head--split > p { margin: 0 0 6px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1.5px solid var(--line-2); background: transparent; border-radius: var(--radius);
  font-family: var(--display); font-size: 17px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn:hover { border-color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); }
.section--dark .btn--accent, .hero .btn--accent, .header:not(.is-scrolled) .btn--accent { background: #1F56C4; border-color: #1F56C4; }
.section--dark .btn--accent:hover, .hero .btn--accent:hover, .header:not(.is-scrolled) .btn--accent:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--ghost { border-color: var(--dline-2); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(238,236,231,.06); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 3px;
  transition: color .2s ease;
}
.link::after { content: "→"; transition: transform .2s ease; }
.link:hover { color: var(--accent); }
.link:hover::after { transform: translateX(3px); }
.link--inline { font-family: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; font-weight: 600; }
.link--inline::after { content: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: var(--bone);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(241, 242, 244, .95); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__img { width: 52px; height: 52px; flex: none; border-radius: 50%; }
.logo__txt { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.logo__txt small { display: block; font-family: var(--mono); font-weight: 400; font-size: 9.5px; letter-spacing: .2em; margin-top: 5px; opacity: .7; }

.nav { display: flex; gap: clamp(24px, 3.2vw, 44px); margin-left: auto; margin-right: clamp(20px, 3vw, 40px); }
.nav a { white-space: nowrap; font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; opacity: .85; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent-2); transition: right .25s ease; }
.nav a:hover { opacity: 1; }
.nav a:hover::after { right: 0; }
.header__right { display: flex; align-items: center; gap: 18px; }
.header__tel { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; white-space: nowrap; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s ease, top .3s ease; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 140; background: rgba(8, 13, 26, .55);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: 84%; max-width: 360px;
  background: var(--dark); color: var(--bone);
  display: flex; flex-direction: column;
  padding: 0 28px calc(28px + env(safe-area-inset-bottom));
  transform: translateX(100%); visibility: hidden;
  transition: transform .4s cubic-bezier(.4,0,.2,1), visibility 0s linear .4s;
  overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,.3);
}
.drawer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rosso) 66.66%); }
body.menu-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 76px; flex: none; border-bottom: 1px solid var(--dline); }
.drawer__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.drawer__brand img { width: 40px; height: 40px; border-radius: 50%; }
.drawer__close { position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--bone); cursor: pointer; }
.drawer__close span { position: absolute; left: 11px; right: 11px; top: 21px; height: 2px; background: currentColor; transform: rotate(45deg); }
.drawer__close span + span { transform: rotate(-45deg); }
.drawer nav { display: flex; flex-direction: column; padding-top: 8px; }
.drawer nav a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--display); font-weight: 600; font-size: 26px; text-transform: uppercase; line-height: 1; letter-spacing: .02em;
  padding: 16px 0; border-bottom: 1px solid var(--dline); transition: color .2s, padding-left .25s ease;
}
.drawer nav a:hover { color: var(--accent-2); padding-left: 4px; }
.drawer nav i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--accent-2); font-weight: 400; min-width: 18px; }
.drawer__foot { display: grid; gap: 4px; margin-top: auto; padding-top: 32px; }
.drawer__foot .btn { margin-bottom: 12px; }
.drawer__tel { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--dline); font-family: var(--mono); font-size: 15px; }
.drawer__tel .mono { color: var(--bone-2); font-size: 11px; }
.drawer__zona { margin: 14px 0 0; color: var(--bone-2); font-size: 10.5px; }

/* ---------- Foto mancanti (segnaposto) ---------- */
.ph { position: relative; overflow: hidden; background: var(--bg-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.is-missing img { display: none; }
.ph.is-missing {
  background-color: #D9D5CC;
  background-image:
    linear-gradient(rgba(28,29,31,.10) 2px, transparent 2px),
    linear-gradient(90deg, rgba(28,29,31,.10) 2px, transparent 2px),
    linear-gradient(90deg, rgba(28,29,31,.10) 2px, transparent 2px);
  background-size: 64px 28px, 64px 56px, 64px 56px;
  background-position: 0 0, 0 0, 32px 28px;
}
.ph.is-missing::after {
  content: "FOTO · " attr(data-file);
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  background: var(--ink); color: var(--bone); padding: 5px 8px;
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--bone); background: var(--dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: var(--dark); }
.hero__bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,17,33,.93) 0%, rgba(10,17,33,.75) 45%, rgba(10,17,33,.4) 100%);
}
.hero__bg.is-missing { background: var(--dark-2); background-image:
    linear-gradient(rgba(238,236,231,.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(238,236,231,.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(238,236,231,.05) 2px, transparent 2px);
  background-size: 96px 42px, 96px 84px, 96px 84px; background-position: 0 0, 0 0, 48px 42px; }
.hero__bg.is-missing::after { z-index: 2; bottom: 24px; left: auto; right: var(--gutter); background: rgba(238,236,231,.12); }
.hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; padding-top: 120px; padding-bottom: 96px; }
.hero h1 { margin: 22px 0 26px; }
.hero h1 em { color: var(--accent-2); }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--bone-2); max-width: 520px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__logo { justify-self: end; width: 100%; max-width: 400px; }
.hero__logo img { width: 100%; height: auto; border-radius: 50%; box-shadow: 0 30px 80px rgba(0,0,0,.45); }

/* ---------- Servizi ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.pillar { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); z-index: 2; }
.pillar__ph { aspect-ratio: 16 / 10; }
.pillar__body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.pillar__n { color: var(--accent); margin-bottom: 14px; }
.pillar h3 { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 14px; }
.pillar p { font-size: 16px; flex: 1; }
.pillar .link { align-self: flex-start; }
/* ---------- Lavori ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery__item { aspect-ratio: 4 / 5; border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; }
.gallery__item img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item > span {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: 6px 10px;
}
.gallery__item.is-missing { cursor: default; }
.gallery__item.is-missing::after { bottom: auto; top: 12px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.member { background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.1fr; }
.member__ph { aspect-ratio: 4 / 5; }
.member__body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; justify-content: flex-end; }
.member__body .mono { color: var(--accent); }
.member h3 { font-size: clamp(30px, 3vw, 40px); margin: 10px 0 14px; }
.member p { font-size: 15.5px; margin: 0; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-wrap .head { position: sticky; top: 110px; margin: 0; }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--display); font-size: clamp(21px, 2vw, 25px); font-weight: 600; text-transform: uppercase; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--line-2); border-radius: 50%;
  transition: transform .35s cubic-bezier(.4,0,.2,1), background-color .3s ease, border-color .3s ease, color .3s ease;
}
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details.is-open .faq__icon { transform: rotate(135deg); background-color: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq__a { overflow: hidden; }
.faq summary:hover { color: var(--accent); }
.faq__a p { margin: -6px 0 24px; max-width: 600px; }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro h2 { margin: 18px 0 22px; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--dline); }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--dline); align-items: baseline; }
.contact__list .mono { color: var(--bone-2); opacity: .8; }
.contact__list a { font-weight: 500; transition: color .2s; }
.contact__list a:hover { color: var(--accent-2); }

.form { background: var(--dark-2); border: 1px solid var(--dline); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-2); }
.form input:not([type=radio]), .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--dark); border: 1px solid var(--dline-2); color: var(--bone);
  transition: border-color .2s ease;
}
.form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.form textarea::placeholder { color: rgba(189,187,181,.55); }
.form select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--bone-2) 50%), linear-gradient(-45deg, transparent 50%, var(--bone-2) 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-2); }
.form .is-invalid { border-color: var(--accent-2) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--dline-2); font-size: 15px; transition: all .2s ease; }
.chips input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chips input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.form__err { grid-column: 1 / -1; margin: -6px 0 0; min-height: 0; color: #F08A65; font-size: 14px; }
.form__err:empty { display: none; }
.form .btn { grid-column: 1 / -1; margin-top: 4px; }
.form__note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--bone-2); opacity: .8; }

/* ---------- Footer ---------- */
.footer { position: relative; background: #0B1222; color: var(--bone-2); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer__in { display: grid; grid-template-columns: auto 1fr; gap: 28px 48px; align-items: center; }
.footer__logo { color: var(--bone); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; font-size: 15px; }
.footer__links a:hover { color: var(--bone); }
.footer__legal { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid var(--dline); font-size: 13px; color: #8C8B87; line-height: 1.8; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(8,13,26,.96); display: grid; place-items: center; padding: 64px 72px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--bone); cursor: pointer; font-size: 44px; line-height: 1; width: 56px; height: 56px; }
.lightbox button:hover { color: var(--accent-2); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--bone-2); }

/* ---------- WhatsApp mobile ---------- */
.fab { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  place-items: center; box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 200; max-width: 420px;
  background: var(--ink); color: var(--bone); padding: 16px 18px; display: flex; gap: 16px; align-items: center;
  border-left: 3px solid var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(140%); transition: transform .4s ease;
}
.cookie.is-visible { transform: none; }
.cookie p { margin: 0; font-size: 14px; color: var(--bone-2); line-height: 1.5; }
.cookie a { text-decoration: underline; text-underline-offset: 3px; color: var(--bone); }
.cookie .btn { border-color: var(--dline-2); flex: none; }
.cookie .btn:hover { border-color: var(--bone); }

/* ---------- Pagina legale ---------- */
.page-hero { background: var(--dark); color: var(--bone); padding: 160px 0 72px; }
.page-hero h1 { font-size: clamp(48px, 7vw, 88px); margin-top: 18px; }
.legal { max-width: 780px; padding-top: 64px; padding-bottom: 96px; }
.legal h2 { font-size: 28px; margin: 40px 0 12px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Dissolvenza ---------- */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.fade.is-in { opacity: 1; transform: none; }
.no-js .fade { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (min-width: 901px) { .drawer, .drawer-backdrop { display: none; } }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .head--split, .faq-wrap, .contact { grid-template-columns: 1fr; }
  .head--split { gap: 22px; }
  .faq-wrap .head { position: static; }
  .team { grid-template-columns: 1fr; }
  .hero__logo { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__in { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
  .header__tel { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header__right .btn--sm { display: none; }
  .logo__txt { font-size: 20px; }
  .pillars { grid-template-columns: 1fr; }
  .member { grid-template-columns: 1fr; }
  .member__ph { aspect-ratio: 4 / 3; }
  .gallery { gap: 8px; }
  .form { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 92px 1fr; }
  .fab { display: grid; }
  .cookie { left: 12px; right: 84px; bottom: calc(12px + env(safe-area-inset-bottom)); flex-direction: column; align-items: flex-start; gap: 12px; }
  .lightbox { padding: 56px 12px; }
  .lightbox__nav { top: auto !important; bottom: 8px; transform: none !important; }
}
body.menu-open .cookie, body.menu-open .fab { display: none; }

/* ---------- Aggiunte: soci, contatti, menu ---------- */
.member__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.member__cta .btn:not(.btn--accent) { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.drawer__people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact__nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.contact__nums a:first-child { font-family: var(--mono); font-size: 16px; letter-spacing: .02em; }
.contact__wa { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); border-bottom: 1px solid currentColor; }
.field__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-2); }
.footer__logo .logo__img { width: 64px; height: 64px; }
.footer__logo .logo__txt small { opacity: .6; }
@media (min-width: 601px) and (max-width: 1100px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:last-child { grid-column: 1 / -1; }
}
.section--dark .link--inline { color: var(--bone); border-bottom-color: var(--accent-2); }
