/* Lo Ristudio — Variante A "Editoriale" */
:root {
  /* Tema scuro (predefinito) */
  --paper: #0d0e11;
  --paper-2: #17181d;
  --ink: #f1efe8;
  --ink-2: #c3c0b7;
  --muted: #8e8b83;
  --line: rgba(241, 239, 232, 0.13);
  --blue: #3d5afe;
  --blue-text: #7d90ff;
  --nav-bg: rgba(13, 14, 17, 0.82);
  --logos-filter: brightness(0) invert(1);
  --glow: rgba(61, 90, 254, 0.55);
  --c-commerciale: #5872ff;
  --c-comunicazione: #8b9dff;
  --c-eventi: #bcc7ff;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23f1efe8' stroke-width='1.6'/%3E%3C/svg%3E");
  color-scheme: dark;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
/* Tema chiaro (scelto dall'utente) */
:root[data-theme="light"] {
  --paper: #f3f0e8;
  --paper-2: #ebe7dc;
  --ink: #111111;
  --ink-2: #3a3833;
  --muted: #6f6b62;
  --line: rgba(17, 17, 17, 0.14);
  --blue: #2340ff;
  --blue-text: #2340ff;
  --nav-bg: rgba(243, 240, 232, 0.86);
  --logos-filter: brightness(0);
  --glow: rgba(35, 64, 255, 0.35);
  --c-commerciale: #1228b0;
  --c-comunicazione: #2340ff;
  --c-eventi: #5a72ff;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E");
  color-scheme: light;
}
body, .nav, .ticker, .service, .field input, .field select, .field textarea { transition: background-color 0.4s, color 0.4s, border-color 0.4s; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

.container { width: min(1280px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.label { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); margin-bottom: 18px; }

/* Bottoni e link */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--blue); color: #fff; font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.3s, transform 0.2s var(--ease);
}
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn--full { width: 100%; }
.link {
  font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size 0.4s var(--ease), color 0.2s;
}
.link:hover { color: var(--blue-text); background-size: 0 1px; background-position: 100% 100%; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 30px; width: auto; }
/* Logo: versione bianca sul tema scuro, versione con scritta scura (riga blu) sul tema chiaro */
.logo-img--on-light { display: none; }
:root[data-theme="light"] .logo-img--on-dark { display: none; }
:root[data-theme="light"] .logo-img--on-light { display: block; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav__links a:not(.nav__cta):hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; transition: border-color 0.2s, transform 0.4s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta { padding: 10px 18px; background: var(--blue); color: #fff; border-radius: 999px; transition: background 0.2s; }
.nav__cta:hover { background: var(--ink); color: var(--paper); }
.nav__toggle, .nav__mobile { display: none; }

/* Hero */
.hero { display: flex; flex-direction: column; padding: 112px 0 48px; }
.hero__title { font-size: clamp(56px, 10.2vw, 168px); letter-spacing: -0.055em; line-height: 0.88; }
.hero__title span { display: block; }
.hero__title em { color: var(--blue-text); padding-right: 0.06em; }
.hero__bottom { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__lead { max-width: 520px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.hero__lead em { font-size: 1.15em; color: var(--ink); }
.hero__cta { display: flex; align-items: center; gap: 28px; }

/* Ticker */
.ticker { background: var(--blue); color: #fff; overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: tick 30s linear infinite; font: 400 clamp(26px, 3vw, 40px)/1 var(--serif); font-style: italic; white-space: nowrap; }
.ticker__star { display: inline-flex; width: 0.42em; height: 0.42em; color: rgba(255, 255, 255, 0.6); flex: none; }
.ticker__star svg { width: 100%; height: 100%; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Sezioni */
.section { padding: clamp(64px, 7vw, 104px) 0; }
.section--tight { padding-top: 0; }
.section__head { display: grid; grid-template-columns: 1fr; max-width: 900px; margin-bottom: clamp(32px, 4vw, 52px); }
.section h2 { font-size: clamp(40px, 6vw, 84px); }
.section h2 em { color: var(--blue-text); }
.section__lead { margin-top: 24px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }

/* Servizi: righe editoriali */
.services { border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 80px 1.1fr 1fr; column-gap: 32px; row-gap: 0;
  grid-template-areas: ". tag ." "num main side";
  align-items: start; padding: 36px 0; border-bottom: 1px solid var(--line); transition: background 0.4s;
}
.service > .tag { grid-area: tag; }
.service__num { grid-area: num; }
.service__main { grid-area: main; }
.service__side { grid-area: side; }
.service__num { font: italic 400 44px/1 var(--serif); color: var(--muted); transition: color 0.3s; }
.service__num { transition: color 0.35s, text-shadow 0.35s; }
.service:hover .service__num { color: var(--c, var(--blue-text)); text-shadow: 0 0 18px color-mix(in srgb, var(--c, var(--blue)) 70%, transparent), 0 0 42px color-mix(in srgb, var(--c, var(--blue)) 40%, transparent); }
.service h3 { font-size: clamp(30px, 3.2vw, 46px); margin-bottom: 16px; }
.service__main p { color: var(--ink-2); max-width: 40ch; }
.service__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; font-size: 15px; }
.service__list li { break-inside: avoid; padding: 10px 0; border-top: 1px solid var(--line); }
.service__side { display: flex; flex-direction: column; }

/* Clienti */
.section__head--row { grid-template-columns: 220px 1fr; align-items: baseline; max-width: none; }
.section__head--row h2 { font-size: clamp(32px, 4vw, 56px); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos a { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 24px; outline: none; }
.logos a::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 40px var(--glow);
  transition: opacity 0.35s var(--ease);
}
.logos img { width: 78%; height: 78%; object-fit: contain; filter: var(--logos-filter); opacity: 0.6; transition: opacity 0.35s, filter 0.35s; }
.logos a:hover::before, .logos a:focus-visible::before { opacity: 1; }
.logos a:hover img, .logos a:focus-visible img { opacity: 1; filter: var(--logos-filter) drop-shadow(0 0 10px var(--glow)); }

/* Metodo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { position: relative; }
/* Linea con freccia che collega ogni passaggio al successivo */
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: 68px; right: -20px; height: 1.5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--blue-text) 25%, transparent), var(--blue-text));
}
.steps li:not(:last-child)::before {
  content: ""; position: absolute; top: 21.5px; right: -18px; width: 9px; height: 9px;
  border-top: 2px solid var(--blue-text); border-right: 2px solid var(--blue-text);
  transform: rotate(45deg);
}
.step__icon {
  display: block; width: 52px; height: 52px; padding: 12px; margin-bottom: 24px; border-radius: 14px;
  color: var(--blue-text); background: color-mix(in srgb, var(--blue) 14%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
  transition: transform 0.4s var(--ease);
}
.steps li:hover .step__icon { transform: translateY(-3px) rotate(-6deg); }
.steps h3 { font-size: 26px; margin-bottom: 12px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* CTA gigante */
.cta { background: var(--blue); color: #fff; }
.cta__link { display: block; padding: clamp(56px, 7vw, 96px) 0; text-decoration: none; }
.cta__small { display: block; font-size: clamp(18px, 2vw, 24px); margin-bottom: 12px; opacity: 0.8; }
.cta__big { display: block; font-size: clamp(64px, 12vw, 190px); font-weight: 500; letter-spacing: -0.055em; line-height: 0.9; }
.cta__arrow { display: inline-block; transition: transform 0.5s var(--ease); }
.cta__link:hover .cta__arrow { transform: translateX(0.15em) rotate(-45deg); }

/* Contatti */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.contact__list { margin: 48px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact__list div { display: grid; grid-template-columns: 100px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { color: var(--muted); font-size: 14px; }
.contact__list dd { margin: 0; }
.contact__list a { text-underline-offset: 3px; }

.form { display: grid; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 13px; color: var(--muted); }
.opt { opacity: 0.7; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 19px/1.4 var(--sans); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; appearance: none; -webkit-appearance: none;
  transition: border-color 0.2s;
}
.field select { background: var(--chevron) right center / 20px no-repeat; }
.field select option { background: var(--paper); color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field ::placeholder { color: var(--muted); opacity: 0.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d6283b; }
.check { display: flex; gap: 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.check.is-invalid span { color: #d6283b; }
.hp { position: absolute; left: -9999px; }
.form__status { min-height: 1.5em; font-size: 15px; }
.form__status.ok { color: #3ccf7a; }
:root[data-theme="light"] .form__status.ok { color: #137a3f; }
.form__status.err { color: #d6283b; }

/* Footer */
.footer { border-top: 1px solid var(--ink); padding: 32px 0 28px; overflow: hidden; }
.footer__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* Tag colorati per categoria (riusati anche nelle schede clienti) */
.tag {
  --c: var(--blue-text);
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  padding: 5px 11px 5px 9px; margin-bottom: 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--commerciale, .service--commerciale { --c: var(--c-commerciale); }
.tag--comunicazione, .service--comunicazione { --c: var(--c-comunicazione); }
.tag--eventi, .service--eventi { --c: var(--c-eventi); }

/* Domande frequenti */
.faq__list { border-top: 1px solid var(--ink); max-width: 960px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.02em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font: 400 32px/1 var(--serif); color: var(--blue-text); transition: transform 0.3s var(--ease); flex: none; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: var(--blue-text); }
.faq__list details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 70ch; }

/* Notifica "Sei qui da" (fixed, compare a intervalli) */
.toast {
  position: fixed; left: 24px; bottom: 24px; z-index: 60;
  display: flex; align-items: flex-start; gap: 14px; width: min(360px, calc(100vw - 32px));
  padding: 18px 18px 18px 20px; border-radius: 18px;
  background: color-mix(in srgb, var(--paper-2) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px color-mix(in srgb, var(--blue) 18%, transparent);
  opacity: 0; transform: translateY(24px) scale(0.96); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.toast[hidden] { display: none; }
.toast.is-open { opacity: 1; transform: none; pointer-events: auto; }
.toast__dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--blue); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 var(--glow); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.toast__body { flex: 1; min-width: 0; }
.toast__title { font-size: 15px; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.toast__clock { display: inline-flex; font: 600 24px/1 var(--sans); color: var(--blue-text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.toast__clock .d { display: inline-block; height: 1em; overflow: hidden; }
.toast__clock .d > span { display: block; }
.toast__clock .d > span.in { animation: tick-in 0.45s var(--ease); }
@keyframes tick-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.toast__text { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.toast__link { display: inline-flex; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--blue-text); text-decoration: none; }
.toast__link span { transition: transform 0.25s var(--ease); }
.toast__link:hover span { transform: translateX(3px); }
.toast__close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.toast__close:hover { background: var(--line); color: var(--ink); }
.toast__close svg { width: 16px; height: 16px; }

/* Animazioni d'ingresso */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .service { grid-template-columns: 56px 1fr; grid-template-areas: ". tag" "num main" ". side"; row-gap: 20px; }
  .service > .tag { margin-bottom: -6px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps li:nth-child(2n)::after, .steps li:nth-child(2n)::before { display: none; }
  .contact { grid-template-columns: 1fr; }
  .section__head--row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; }
  .nav__toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  /* Menu mobile a tutta pagina */
  .nav__mobile:not([hidden]) {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper); border-top: 1px solid var(--line);
    animation: menu-in 0.35s var(--ease);
  }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
  .nav__mobile a { padding: 18px 0; text-decoration: none; font-size: clamp(34px, 10vw, 44px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; text-align: center; border-bottom: 1px solid var(--line); }
  .nav__mobile a:last-child { border-bottom: 0; margin-top: 24px; padding: 18px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 20px; letter-spacing: 0; }
  .nav:has(.nav__mobile:not([hidden])) { background: var(--paper); border-color: var(--line); }
  .nav__links .theme-toggle { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }

  /* Testi centrati su mobile */
  .toast { left: 50%; bottom: 16px; translate: -50% 0; text-align: left; }
  .faq__list summary { text-align: left; padding: 20px 0; }
  .faq__list details p { padding-right: 0; text-align: left; }
  .hero, .section__head, .service, .steps li, .cta__link, .contact__info, .footer { text-align: center; }

  .hero { padding: 100px 0 40px; }
      .hero__title { font-size: clamp(34px, 11vw, 56px); line-height: 0.98; }
  .hero__bottom { grid-template-columns: 1fr; justify-items: center; gap: 28px; margin-top: 32px; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { flex-direction: column; gap: 18px; width: 100%; }
  .hero__cta .btn { width: 100%; }

  .ticker { padding: 14px 0; }

  .section { padding: 56px 0; }
  .section--tight { padding-top: 0; }
  .section__head { justify-items: center; margin-bottom: 28px; }
  .section h2 { font-size: clamp(36px, 10.5vw, 46px); line-height: 1.02; }
  .section__lead { margin-inline: auto; }

  .service { grid-template-columns: 1fr; grid-template-areas: "num" "tag" "main" "side"; gap: 14px; padding: 28px 0; justify-items: center; }
  .service > .tag { margin-bottom: 0; }
  .service__num { font-size: 36px; }
  .service__main p { margin-inline: auto; }
  .service__side { width: 100%; }
  .service__list { columns: 1; width: 100%; }

  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos a { padding: 16px; }

  .steps { grid-template-columns: 1fr; row-gap: 56px; }
  .step__icon { margin: 0 auto 16px; }
  .steps li:not(:last-child)::after, .steps li:nth-child(2n):not(:last-child)::after {
    display: block; top: calc(100% + 10px); left: 50%; right: auto; width: 1.5px; height: 30px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--blue-text) 25%, transparent), var(--blue-text));
  }
  .steps li:not(:last-child)::before, .steps li:nth-child(2n):not(:last-child)::before {
    display: block; top: calc(100% + 33px); left: calc(50% - 4px); right: auto; transform: rotate(135deg);
  }

  .cta__link { padding: 52px 0; }
  .cta__big { font-size: clamp(54px, 17vw, 76px); }

  .contact__list div { grid-template-columns: 1fr; gap: 2px; }
  .form__row { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { font-size: 17px; }

  .footer__row { flex-direction: column; align-items: center; }
  .footer__links { justify-content: center; }
}

/* Dispositivi touch (niente hover): gli effetti partono da soli */
@media (hover: none) {
  .service.is-in .service__num {
    color: var(--c, var(--blue-text));
    text-shadow: 0 0 18px color-mix(in srgb, var(--c, var(--blue)) 70%, transparent), 0 0 42px color-mix(in srgb, var(--c, var(--blue)) 40%, transparent);
    transition-delay: 0.4s;
  }
  .logos img { opacity: 0.9; }
  .logos a:active::before { opacity: 1; }
  .logos a:active img { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Menu aperto: la pagina sotto non scorre e la notifica si nasconde */
html.menu-open, html.menu-open body { overflow: hidden; }
html.menu-open .toast { display: none; }
html.menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
