/* Caratteri ospitati sul sito (nessuna richiesta a Google Fonts) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/montserrat-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/montserrat-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   ON.IT — foglio di stile principale
   Palette: nero e bianco. Tipografia: Montserrat (titoli) + Inter (testo).
   ========================================================================== */

:root {
  --black: #000;
  --ink: #0a0a0a;
  --ink-2: #141414;
  --line: #262626;          /* separatori decorativi */
  --line-strong: #767676;   /* bordi dei controlli: contrasto ≥ 3:1 sul nero */
  --line-strong-light: #8a8a8a; /* bordi dei controlli: contrasto ≥ 3:1 sul bianco */
  --line-light: #e6e6e6;
  --grey: #8a8a8a;
  --grey-light: #bdbdbd;
  --white: #fff;
  --paper: #f5f5f3;

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  top: 0 !important; /* neutralizza lo spostamento della barra di Google Traduttore */
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--white); color: var(--black); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--black); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.display {
  font-size: clamp(2.8rem, 9vw, 7.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: .92;
  text-transform: uppercase;
}

.h2 { font-size: clamp(2.1rem, 5.4vw, 4.2rem); text-transform: uppercase; letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--grey-light);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--grey-light); max-width: 46ch; }

.outline-text { color: transparent; -webkit-text-stroke: 2px var(--white); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease), height .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  --header-h: 64px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand img { height: 26px; width: auto; transition: transform .4s var(--ease-out); }
.brand:hover img { transform: scale(1.04); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 14px;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--white);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-tools { display: flex; align-items: center; gap: 12px; }

/* Selettore lingua (Google Traduttore) */
.lang {
  position: relative; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); padding: 0 10px; height: 44px;
  transition: border-color .3s;
}
.lang:hover { border-color: var(--white); }
.lang svg { flex: none; width: 16px; height: 16px; }
.lang .goog-te-gadget { font-size: 0 !important; color: transparent !important; }
.lang .goog-te-gadget > span { display: none !important; }
.lang .goog-te-combo,
.lang select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; margin: 0 !important; padding: 0 4px;
  color: var(--white); font-family: var(--font-display); font-weight: 700;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; max-width: 130px; height: 38px;
}
.lang .goog-te-combo option { color: var(--black); background: var(--white); text-transform: none; letter-spacing: 0; }

/* Nasconde la barra superiore e i popup di Google Traduttore */
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: none !important; box-shadow: none !important; }

.lang-btn {
  background: none; border: 0; cursor: pointer; padding: 0 4px; height: 42px;
  font-family: var(--font-display); font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
}
.lang-btn[hidden] { display: none; }

.menu-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong);
  cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white);
  transition: transform .45s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Bottoni
   -------------------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px;
  font-family: var(--font-display); font-weight: 800; font-size: .85rem;
  letter-spacing: .14em; text-transform: uppercase;
  border: 2px solid var(--white); background: var(--white); color: var(--black);
  cursor: pointer;
  transition: color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--black);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.btn:hover { color: var(--white); }
.btn:hover::before { transform: scaleY(1); }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--black); }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: .74rem; }

.btn[disabled] { opacity: .6; pointer-events: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 72px;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--ink-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-2) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero .container { position: relative; }
.hero .eyebrow { margin-bottom: 28px; }
.hero .display { margin-bottom: 36px; }
.hero-bottom {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Righe del titolo che salgono */
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: block; }
.js .line > span { transform: translateY(105%); }
.is-loaded .line > span { animation: rise 1.1s var(--ease-out) forwards; }
.is-loaded .line:nth-child(2) > span { animation-delay: .12s; }
.is-loaded .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }

.scroll-cue {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 40px);
  writing-mode: vertical-rl; font-family: var(--font-display); font-size: .7rem;
  font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--grey);
  display: flex; align-items: center; gap: 14px;
}
.scroll-cue::after { content: ""; width: 1px; height: 70px; background: var(--grey); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Nastro scorrevole */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 22px 0;
}
.marquee-track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: uppercase; letter-spacing: -0.02em; padding-right: 48px;
  display: inline-flex; align-items: center; gap: 48px;
}
.marquee span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--white); }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sezioni
   -------------------------------------------------------------------------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--light { background: var(--white); color: var(--black); }
.section--light .eyebrow { color: #4a4a4a; }
.section--light .lead { color: #444; }
.section--light .outline-text { -webkit-text-stroke-color: var(--black); }
.section--light .btn { background: var(--black); color: var(--white); border-color: var(--black); }
.section--light .btn::before { background: var(--white); }
.section--light .btn:hover { color: var(--black); }
.section--light .btn--ghost { background: transparent; color: var(--black); }
.section--light .btn--ghost::before { background: var(--black); }
.section--light .btn--ghost:hover { color: var(--white); }

.section-head {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(48px, 7vw, 88px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 48px; }
}
.section-head .eyebrow { margin-bottom: 18px; }

/* Azioni rapide: acquista / incontro / assistenza */
.actions-grid { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--black); }
@media (min-width: 860px) { .actions-grid { grid-template-columns: repeat(3, 1fr); } }

.action-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  padding: 40px 32px 36px; min-height: 360px;
  border-bottom: 1px solid var(--line-light);
  transition: color .55s var(--ease);
}
@media (min-width: 860px) {
  .action-card { border-bottom: 0; border-right: 1px solid var(--line-light); }
  .action-card:last-child { border-right: 0; }
}
.action-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--black);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.action-card:hover, .action-card:focus-visible { color: var(--white); }
.action-card:hover::before, .action-card:focus-visible::before { transform: translateY(0); }
.action-num { font-family: var(--font-display); font-weight: 900; font-size: .9rem; letter-spacing: .2em; color: var(--grey); }
.action-card h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); text-transform: uppercase; letter-spacing: -0.03em; }
.action-card p { margin: 0; color: #555; transition: color .55s var(--ease); }
.action-card:hover p, .action-card:focus-visible p { color: var(--grey-light); }
.action-link {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  padding-top: 20px; border-top: 1px solid currentColor;
}
.action-link .arrow { font-size: 1.4rem; transition: transform .5s var(--ease); }
.action-card:hover .action-link .arrow { transform: translateX(6px) rotate(-45deg); }

/* Servizio */
.service-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service {
  background: var(--black); padding: 36px 28px 40px; min-height: 280px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .5s var(--ease);
}
.service:hover { background: var(--ink-2); }
.service-icon {
  width: 52px; height: 52px; border: 2px solid var(--white);
  display: grid; place-items: center; transition: transform .6s var(--ease), background .4s, color .4s;
}
.service-icon svg { width: 24px; height: 24px; }
.service:hover .service-icon { transform: rotate(90deg); background: var(--white); color: var(--black); }
.service p { margin: 0; color: var(--grey-light); font-size: .98rem; }

/* Processo */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  padding: 32px 0; border-top: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .step { grid-template-columns: 140px 1fr 1.3fr; align-items: baseline; gap: 32px; }
  .step:hover { padding-left: 20px; }
}
.step-num { font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--white); transition: color .4s; }
.step:hover .step-num { color: var(--white); }
.step h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); text-transform: uppercase; }
.step p { margin: 0; color: var(--grey-light); }

/* Piani */
.plans { display: grid; gap: 20px; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  border: 2px solid var(--black); padding: 36px 30px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.plan:hover { transform: translateY(-8px); box-shadow: 12px 12px 0 var(--black); }
.plan--featured { background: var(--black); color: var(--white); }
.plan--featured:hover { box-shadow: 12px 12px 0 #bdbdbd; }
.plan-tag {
  position: absolute; top: -14px; left: 28px; background: var(--white); color: var(--black);
  border: 2px solid var(--black); padding: 2px 12px;
  font-family: var(--font-display); font-weight: 800; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
}
.plan-name { font-size: 2rem; text-transform: uppercase; letter-spacing: -0.03em; }
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: #666; }
.plan--featured .plan-price { color: var(--grey-light); }
.plan p { margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; }
.plan li::before { content: ""; flex: none; width: 14px; height: 2px; background: currentColor; margin-top: .75em; }
.plan .btn { margin-top: auto; width: 100%; }
.plan--featured .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.plan--featured .btn::before { background: var(--black); }
.plan--featured .btn:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Contatti e modulo
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 56px; }
.contact-grid > * { min-width: 0; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; } }

.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; }
.contact-list li { border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0; transition: padding .45s var(--ease);
}
a.contact-item:hover { padding-left: 14px; padding-right: 6px; }
.contact-item small {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px;
}
.contact-item strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.55rem); letter-spacing: -0.01em; word-break: break-word; }
.contact-item .arrow { font-size: 1.4rem; transition: transform .45s var(--ease); }
a.contact-item:hover .arrow { transform: rotate(-45deg); }

.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend {
  font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--grey-light);
}
.field .req { color: var(--white); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; background: transparent; border: 0; border-bottom: 2px solid var(--line);
  padding: 12px 0; font-size: 1.05rem; color: var(--white); border-radius: 0;
  border-bottom-color: var(--line-strong);
  transition: border-color .35s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 8px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; }
.field select option { background: var(--white); color: var(--black); }
.field input::placeholder, .field textarea::placeholder { color: var(--grey); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.field input[type="date"], .field input[type="time"] { color-scheme: dark; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff5a5a; }
.field-error { font-size: .85rem; color: #ff8a8a; min-height: 0; }

fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { position: relative; }
.field .chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--line-strong); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.chip span:hover { border-color: var(--white); }
.chip input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--grey-light); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #fff; flex: none; }

.form-status {
  display: none; padding: 18px 20px; border: 1.5px solid var(--white); font-weight: 500;
}
.form-status.is-visible { display: block; animation: fadeUp .6s var(--ease-out); }
.form-status.is-error { border-color: #ff5a5a; }

.hp { position: absolute; left: -9999px; }

/* --------------------------------------------------------------------------
   Header di pagina (News / Recensioni)
   -------------------------------------------------------------------------- */
.page-hero { padding: calc(var(--header-h) + clamp(70px, 12vw, 140px)) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero .display { font-size: clamp(3rem, 11vw, 8.4rem); margin-bottom: 28px; }

/* Bacheca News */
.board-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  min-height: 44px; padding: 0 18px; background: transparent; border: 1.5px solid var(--line-strong); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.filter-btn:hover { border-color: currentColor; }
.filter-btn[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.section--light .filter-btn { border-color: var(--line-strong-light); }
.section--light .filter-btn[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }

.timeline { position: relative; display: grid; gap: 0; }
.news-item {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.news-item:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .news-item { grid-template-columns: 200px 1fr; gap: 48px; }
}
.news-date { font-family: var(--font-display); font-weight: 800; }
.news-date .day { display: block; font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; }
.news-date .month { display: block; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-top: 6px; }
.news-body h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin: 10px 0 12px; }
.news-body p { margin: 0; color: var(--grey-light); max-width: 68ch; }
.news-body ul { margin: 14px 0 0; padding-left: 18px; color: var(--grey-light); }
.tag {
  display: inline-block; padding: 4px 10px; border: 1.5px solid currentColor;
  font-family: var(--font-display); font-weight: 800; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
}
.tag--solid { background: var(--white); color: var(--black); border-color: var(--white); }
.section--light .tag--solid { background: var(--black); color: var(--white); border-color: var(--black); }

.empty { padding: 48px 0; color: var(--grey); text-align: center; }

/* Recensioni */
.reviews-summary {
  display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); margin-bottom: 48px;
}
@media (min-width: 760px) { .reviews-summary { grid-template-columns: repeat(4, 1fr); } }
.summary-cell { background: var(--white); padding: 28px 24px; }
.summary-cell small {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: #666; margin-bottom: 10px;
}
.summary-cell strong { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.summary-cell span { color: #666; font-size: .9rem; }

.reviews-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  display: flex; flex-direction: column; gap: 18px; padding: 32px 28px;
  border: 2px solid var(--black); background: var(--white);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.review:hover { transform: translateY(-6px); box-shadow: 10px 10px 0 var(--black); }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.review blockquote::before { content: "“"; display: block; font-family: var(--font-display); font-weight: 900; font-size: 3.6rem; line-height: .6; margin-bottom: 6px; }
.review-author { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-light); display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px; flex: none; background: var(--black); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .9rem;
}
.review-author strong { display: block; font-family: var(--font-display); font-weight: 800; }
.review-author div span { color: #595959; font-size: .88rem; }
.sample-note {
  border: 1.5px dashed #999; padding: 14px 18px; margin-bottom: 36px; color: #444; font-size: .92rem;
}

/* CTA finale */
.cta-band { text-align: left; }
.cta-band .display { font-size: clamp(2.6rem, 8vw, 6.4rem); margin: 20px 0 36px; }
.cta-band .hero-actions { margin-top: 8px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 700px) { .footer-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid--4 { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }
.footer-logo { height: 34px; width: auto; margin-bottom: 18px; }
.site-footer p { margin: 0; color: var(--grey); max-width: 38ch; }
.footer-title { font-family: var(--font-display); font-weight: 800; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a, .footer-links li, .link-btn { display: inline-block; padding: 6px 0; }
.link-btn { background: none; border: 0; cursor: pointer; text-align: left; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--grey-light); }
.footer-links a { position: relative; transition: color .3s; word-break: break-word; }
.footer-links a:hover { color: var(--grey-light); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--grey); font-size: .85rem;
}

/* Pulsante fisso "Prenota" su mobile */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

/* --------------------------------------------------------------------------
   Transizioni di pagina e comparsa allo scroll
   -------------------------------------------------------------------------- */
.page-curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--white);
  transform: scaleY(1); transform-origin: top; pointer-events: none;
  display: grid; place-items: center;
}
.page-curtain img { width: min(220px, 50vw); height: auto; opacity: 1; transition: opacity .3s; }
.is-loaded .page-curtain { animation: curtainOut .7s var(--ease) forwards; }
.is-loaded .page-curtain img { opacity: 0; }
.page-curtain.is-skipped { transform: scaleY(0); }
.is-loaded .page-curtain.is-skipped { animation: none; }
.is-leaving .page-curtain { animation: curtainIn .55s var(--ease) forwards; transform-origin: bottom; }
@keyframes curtainOut { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes curtainIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Barra di avanzamento scroll */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 110; background: var(--white); transform-origin: left; transform: scaleX(0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .header-tools .btn { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1; background: var(--black);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: 0 var(--gutter);
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
  }
  .nav a { font-size: clamp(2.2rem, 11vw, 3.4rem); font-weight: 900; letter-spacing: -0.03em; padding: 6px 0; }
  .nav a::after { left: 0; right: auto; width: 60px; bottom: 0; height: 3px; }
  .menu-open .nav { clip-path: inset(0 0 0 0); }
  .menu-open { overflow: hidden; }
  .scroll-cue { display: none; }
  .fab { display: inline-flex; }
  .lang select, .lang .goog-te-combo { max-width: 92px; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .brand img { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .line > span { transform: none; }
  .marquee-track { animation: none; }
}

/* --------------------------------------------------------------------------
   Banner consenso cookie
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--black); border-top: 2px solid var(--white);
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  animation: cookieIn .7s var(--ease-out);
  max-height: 85vh; overflow-y: auto;
}
.cookie[hidden] { display: none; }
.cookie-inner { position: relative; display: grid; gap: 20px; }
@media (min-width: 980px) { .cookie-inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } }
.cookie-title { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 6px; padding-right: 44px; }
.cookie p { margin: 0; color: var(--grey-light); font-size: .95rem; max-width: 80ch; }
.cookie a { text-decoration: underline; text-underline-offset: 3px; color: var(--white); }
.cookie-prefs { display: grid; gap: 12px; margin-top: 16px; }
.cookie-prefs[hidden] { display: none; }
.cookie-prefs strong { color: var(--white); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 140px; min-height: 48px; }
.cookie-close {
  position: absolute; top: -8px; right: var(--gutter); width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-strong); color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
@media (min-width: 980px) { .cookie-close { top: 50%; transform: translateY(-50%); right: -56px; } .cookie-inner { padding-right: 56px; } .cookie-title { padding-right: 0; } }
@media (min-width: 980px) and (max-width: 1360px) { .cookie-close { right: var(--gutter); } .cookie-inner { padding-right: calc(var(--gutter) + 56px); } }
.cookie-open .fab { display: none; }
@keyframes cookieIn { from { transform: translateY(100%); } to { transform: none; } }

/* --------------------------------------------------------------------------
   Pagine legali (Privacy, Termini)
   -------------------------------------------------------------------------- */
.legal-layout { display: grid; gap: 48px; }
.legal-layout > * { min-width: 0; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 260px 1fr; gap: 80px; align-items: start; } }
.legal-toc { border-top: 2px solid var(--black); padding-top: 18px; }
@media (min-width: 1000px) { .legal-toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.legal-toc .footer-title { color: #4a4a4a; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 2px; font-size: .95rem; }
.legal-toc a { display: inline-block; padding: 5px 0; }
.legal-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 75ch; color: #1a1a1a; }
.legal section { padding-top: 12px; margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 16px; padding-top: 20px; border-top: 1px solid var(--line-light); }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .meta { color: #4a4a4a; font-size: .95rem; }
.todo { background: #000; color: #fff; padding: 1px 6px; font-weight: 600; font-size: .92em; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid #cfcfcf; }
.legal table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e0e0e0; vertical-align: top; }
.legal th { font-family: var(--font-display); font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; background: #f2f2f2; }

/* --------------------------------------------------------------------------
   Pagina 404
   -------------------------------------------------------------------------- */
.notfound { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.notfound .big { font-family: var(--font-display); font-weight: 900; font-size: clamp(7rem, 30vw, 20rem); line-height: .8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--white); margin-bottom: 32px; }
.notfound .h2 { margin-bottom: 20px; }
.notfound .hero-actions { margin-top: 36px; }

/* Spazio per il pulsante fisso su mobile, così non copre il footer */
@media (max-width: 899px) { .has-fab .site-footer { padding-bottom: 96px; } }

/* --------------------------------------------------------------------------
   Campi dei moduli su sfondo bianco
   -------------------------------------------------------------------------- */
.section--light .field label, .section--light .field legend, .section--light .field-label { color: #4a4a4a; }
.section--light .field input, .section--light .field select, .section--light .field textarea {
  color: var(--black); border-bottom-color: var(--line-strong-light);
}
.section--light .field input:focus, .section--light .field select:focus, .section--light .field textarea:focus { border-color: var(--black); }
.section--light .field input::placeholder, .section--light .field textarea::placeholder { color: #6b6b6b; }
.section--light .field select {
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
}
.section--light .field input[type="date"] { color-scheme: light; }
.section--light .form-status { border-color: var(--black); }
.section--light .form-status.is-error { border-color: #c00; color: #a00; }
.section--light .link-btn { color: var(--black); }
.field-label {
  font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--grey-light);
}
.form-row--3, .form-row--4 { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row--3 { grid-template-columns: repeat(3, 1fr); } .form-row--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .form-row--4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Accedi
   -------------------------------------------------------------------------- */
.auth-page { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 56px) 0 80px; }
.auth-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .auth-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.auth-title { font-size: clamp(2.8rem, 8vw, 6rem); margin: 22px 0 26px; }
.auth-hint { color: var(--grey-light); margin-top: 22px; max-width: 46ch; }
.auth-hint a, .auth-card a { text-decoration: underline; text-underline-offset: 3px; }
.auth-card { border: 2px solid var(--white); padding: clamp(28px, 4vw, 44px); display: grid; gap: 22px; }
.auth-card .h3 { text-transform: uppercase; }
.auth-card p { margin: 0; color: var(--grey-light); }
.auth-card .btn { width: 100%; }
.auth-card .link-btn { justify-self: start; min-height: 44px; }

/* --------------------------------------------------------------------------
   Area clienti
   -------------------------------------------------------------------------- */
.area-hero { padding-bottom: 48px; }
.area-title { font-size: clamp(2.6rem, 8vw, 6rem); margin-bottom: 24px; }
.area-tabs {
  position: sticky; top: var(--header-h); z-index: 50;
  display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px;
  background: var(--black); border-bottom: 1px solid var(--line);
}
.area-tabs a {
  flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.area-tabs a:hover { background: var(--white); color: var(--black); }
.area-tabs span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: var(--white); color: var(--black); font-size: .74rem; }
.area-tabs a:hover span { background: var(--black); color: var(--white); }
.area-section { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: calc(var(--header-h) + 70px); }
.area-section .h2 { margin: 10px 0 36px; }
.empty-box { border: 1.5px dashed var(--line-strong); padding: 24px; color: var(--grey-light); margin: 24px 0; }
.section--light .empty-box { border-color: var(--line-strong-light); color: #4a4a4a; }
.empty-box a { text-decoration: underline; text-underline-offset: 3px; }
.plan .plan-tag { text-transform: uppercase; }

.project-list { display: grid; gap: 24px; }
.project { border: 1.5px solid var(--line-strong); padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; }
.project p { margin: 0; color: var(--grey-light); }
.project-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; counter-reset: fase; }
.phases li { counter-increment: fase; border-top: 4px solid var(--line); padding-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.phases li.is-done { border-color: var(--grey-light); color: var(--grey-light); }
.phases li.is-current { border-color: var(--white); color: var(--white); }
@media (max-width: 560px) { .phases span { display: none; } .phases li::before { content: counter(fase); } .phases li.is-current span { display: inline; } .phases li.is-current::before { content: counter(fase) " · "; } }
.progress-bar { height: 10px; background: var(--ink-2); border: 1px solid var(--line-strong); }
.progress-bar span { display: block; height: 100%; background: var(--white); transition: width 1s var(--ease-out); }
.progress-label { font-size: .92rem; color: var(--grey-light); margin-top: -8px; }
.progress-label strong { color: var(--white); font-family: var(--font-display); }
.project-meta { display: flex; flex-wrap: wrap; gap: 32px; margin: 0; }
.project-meta dt { font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.project-meta dd { margin: 4px 0 0; font-weight: 600; }
.updates summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; min-height: 44px; display: flex; align-items: center; }
.updates ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.updates li { color: var(--grey-light); border-left: 2px solid var(--white); padding-left: 12px; }
.updates time { display: block; font-size: .8rem; color: var(--grey); }
.project-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project--done { border: 2px solid var(--black); align-content: start; }
.project--done p { color: #333; }
.project-date { font-size: .9rem; color: #4a4a4a !important; }
.project--done .btn { justify-self: start; }

/* --------------------------------------------------------------------------
   Pannello admin
   -------------------------------------------------------------------------- */
.admin { padding-top: 56px; }
.admin-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .admin-layout { grid-template-columns: 340px 1fr; } }
.admin-layout > * { min-width: 0; }
.admin-card { border: 2px solid var(--black); padding: 24px; display: grid; gap: 18px; margin-bottom: 24px; }
.admin-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.admin-card-head p { margin: 6px 0 0; color: #4a4a4a; }
.admin-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 8px; }
.admin-item { border-top: 1px solid #d0d0d0; padding-top: 18px; display: grid; gap: 16px; }
.admin-item--new { background: #f5f5f3; border: 1.5px dashed var(--line-strong-light); padding: 18px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-help { margin: 0; font-size: .88rem; color: #4a4a4a; }
.client-list { display: grid; gap: 6px; max-height: 60vh; overflow-y: auto; }
.client-row {
  display: grid; gap: 2px; text-align: left; width: 100%; padding: 12px 14px; cursor: pointer;
  background: var(--white); border: 1.5px solid #d0d0d0; color: var(--black);
  transition: border-color .3s, background .3s, color .3s;
}
.client-row span { font-size: .86rem; color: #4a4a4a; overflow-wrap: anywhere; }
.client-row:hover { border-color: var(--black); }
.client-row.is-active { background: var(--black); color: var(--white); border-color: var(--black); }
.client-row.is-active span { color: var(--grey-light); }
#adminToast { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   Pannello admin: schede e sezione Email
   -------------------------------------------------------------------------- */
.admin-tabs { display: flex; gap: 6px; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-tabs [role="tab"] {
  flex: none; min-height: 48px; padding: 0 22px; cursor: pointer; background: transparent; color: var(--white);
  border: 1.5px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.admin-tabs [role="tab"]:hover { border-color: var(--white); }
.admin-tabs [aria-selected="true"] { background: var(--white); color: var(--black); border-color: var(--white); }

.email-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1100px) { .email-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.email-layout > * { min-width: 0; }
.email-side { display: grid; gap: 24px; }
@media (min-width: 1100px) { .email-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.email-preview { border: 2px solid var(--black); background: #e9e9e7; }
.preview-head { margin: 0; padding: 12px 16px; background: var(--white); border-bottom: 1px solid #d0d0d0; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.email-preview iframe { display: block; width: 100%; height: min(78vh, 900px); border: 0; background: #e9e9e7; }
.gmail-status { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: #f5f5f3; border-left: 3px solid var(--black); font-size: .93rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #8a8a8a; flex: none; }
.dot--on { background: #1a7f37; }
.email-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.email-log li { border-left: 3px solid #1a7f37; padding-left: 10px; overflow-wrap: anywhere; }
.email-log li.is-error { border-color: #c00; }
.email-log time { color: #4a4a4a; margin-right: 4px; }
.email-log span { color: #4a4a4a; }
.email-log li.is-error span { color: #a00; }
.project-help { justify-self: start; padding: 6px 0; color: var(--white); }
.gmail-hint { flex-basis: 100%; font-size: .85rem; color: #4a4a4a; }
