/* Font ospitati nel sito (niente richieste ai server di Google) */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("assets/fonts/montserrat.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: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("assets/fonts/cinzel.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;
}

:root {
  --bg: #26262C;
  --surface: #313138;
  --surface-2: #3C3C44;
  --accent: #FF4D94;
  --accent-light: #FF7DB2;
  /* Fucsia più profondo per i fondi con testo bianco (contrasto leggibile) */
  --accent-strong: #D6246E;
  --accent-deep: #B01458;
  --cream: #E8DED2;
  --gold: #D4AF57;
  --gold-light: #F1D78A;
  --gold-dark: #9A7A2E;
  --gold-gradient: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  --text: #FFFFFF;
  --muted: #C4C4CA;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Spazio per l'header fisso quando si salta a una sezione */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Link nascosto per chi naviga da tastiera: appare solo con Tab */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: .7rem 1.2rem; border-radius: 10px;
  background: var(--gold); color: var(--bg); font-weight: 700;
}
.skip-link:focus { top: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-weight: 900; line-height: 0.98; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 8vw, 5.8rem); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 2.5rem; }
h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: .6rem; }

.accent { color: var(--accent); }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

/* Bottoni */
.btn {
  display: inline-block;
  background: var(--accent-strong);
  color: var(--text);
  font-weight: 600;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--small { padding: .55rem 1.3rem; font-size: .9rem; }
.btn--light { background: var(--text); color: var(--accent); }
.btn--light:hover { background: var(--cream); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(38, 38, 44, .85);
  backdrop-filter: blur(10px);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .75rem; font-family: "Cinzel", Georgia, serif; }
.logo__mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-size: .95rem; font-weight: 600;
  color: var(--gold-light);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name {
  font-size: 1.3rem; font-weight: 600; letter-spacing: .08em;
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.logo__tag {
  font-family: "Montserrat", sans-serif;
  font-size: .58rem; font-weight: 500; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold);
}
.nav__links { display: flex; align-items: center; gap: 2rem; margin-left: auto; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--accent); }

/* ---------- Animazioni ---------- */

/* Comparsa dal basso mentre si scorre (le classi le aggiunge script.js) */
.anim .reveal {
  opacity: 0; transform: translateY(20px); filter: blur(3px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.16, 1, .3, 1), filter .7s ease;
  transition-delay: var(--ritardo, 0ms);
}
.anim .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* Titolo dell'hero: ogni parola sale da dietro una "maschera" */
.anim .hero h1 { animation: none; }
.parola { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.parola > span { display: inline-block; transform: translateY(105%); animation: parola-sale 1s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: var(--ritardo, 0ms); }
@keyframes parola-sale { to { transform: none; } }

/* Luci fucsia e oro che si muovono lentamente dietro l'hero */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(70px); opacity: .35;
}
.hero::before { top: -14vmax; right: -10vmax; background: radial-gradient(circle, rgba(212, 175, 87, .35), transparent 65%); animation: luce-1 30s ease-in-out infinite alternate; }
.hero::after { bottom: -18vmax; left: -12vmax; background: radial-gradient(circle, rgba(255, 77, 148, .35), transparent 65%); animation: luce-2 36s ease-in-out infinite alternate; }
.hero__inner { position: relative; z-index: 1; }
@keyframes luce-1 { to { transform: translate(-6vmax, 7vmax) scale(1.08); } }
@keyframes luce-2 { to { transform: translate(7vmax, -5vmax) scale(.95); } }

/* Mockup che si inclinano appena seguendo il mouse (le variabili --mx e --my le aggiorna script.js) */
.fx .mockups__scena {
  transform: perspective(1400px) rotateY(calc(var(--mx, 0) * 3deg)) rotateX(calc(var(--my, 0) * -3deg));
  transition: transform 1s cubic-bezier(.16, 1, .3, 1);
}
.mockups__scena { position: absolute; inset: 0; transform-style: preserve-3d; }
.fx .badge, .fx .mockups__caption { translate: calc(var(--mx, 0) * 6px) calc(var(--my, 0) * 6px); transition: translate 1s cubic-bezier(.16, 1, .3, 1), border-color .2s; }

/* Blocchetti dei servizi: leggero riflesso di luce che segue il cursore */
.card__luce {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle 260px at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, .12), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.card:hover .card__luce { opacity: 1; }

/* Barra di avanzamento dorata sotto l'header */
.progresso {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold-light));
  transform-origin: left; transform: scaleX(var(--avanzamento, 0));
}

/* Fascia scorrevole con i servizi */
.marquee {
  overflow: hidden;
  padding: 1.4rem 0;
  background: var(--cream);
  border-block: 1px solid rgba(212, 175, 87, .3);
}
.marquee__track { display: flex; align-items: center; gap: 2.5rem; width: max-content; animation: scorri 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap;
  color: var(--gold-dark);
  transition: color .3s;
}
.marquee span:nth-of-type(odd) { color: var(--bg); }
.marquee i { font-style: normal; font-size: 1.2rem; color: var(--accent-strong); }
@keyframes scorri { to { transform: translateX(-50%); } }

/* Entrata dell'hero all'apertura della pagina, a cascata */
@keyframes sali { from { opacity: 0; transform: translateY(30px); } }
@keyframes appari { from { opacity: 0; transform: scale(.92); } }
.hero__content > * { animation: sali .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero__content > :nth-child(1) { animation-delay: .1s; }
.hero__content > :nth-child(2) { animation-delay: .25s; }
.hero__content > :nth-child(3) { animation-delay: .45s; }
.hero__content > :nth-child(4) { animation-delay: .6s; }
.mockups { animation: appari 1.2s cubic-bezier(.2, .7, .2, 1) .35s backwards; }

/* Header: bordo oro e ombra dopo aver iniziato a scorrere */
.nav { transition: box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { border-bottom-color: rgba(212, 175, 87, .3); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }

@media (prefers-reduced-motion: reduce) {
  .hero__content > *, .mockups, .hero::before, .hero::after { animation: none !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* Selettore lingua IT | EN */
.lang {
  display: flex; align-items: center; margin-left: 1.5rem;
  border: 1px solid rgba(212, 175, 87, .5); border-radius: 999px;
  padding: 3px;
}
.lang a {
  padding: .3rem .65rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.lang a:hover { color: var(--gold-light); }
.lang a[aria-current="page"] { background: var(--gold); color: var(--bg); }
/* Versione nel menu mobile: più grande, sopra il bottone */
.lang--drawer { align-self: flex-start; margin: 1.8rem 0 1.5rem; }
.lang--drawer a { padding: .5rem 1rem; font-size: .85rem; letter-spacing: .02em; }

/* Bottone menu mobile (tre linee che diventano una X) */
.nav__toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px;
  background: none; border: 1.5px solid var(--gold); border-radius: 50%;
  cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--gold-light); transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__toggle:focus-visible, .drawer__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Menu a scomparsa da destra */
.drawer { position: fixed; inset: 0; z-index: 50; visibility: hidden; transition: visibility 0s .35s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 85%);
  display: flex; flex-direction: column;
  padding: 1.2rem 1.6rem 2rem;
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 77, 148, .2), transparent 50%),
    var(--surface);
  border-left: 1px solid rgba(212, 175, 87, .35);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s ease;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: 1.5rem; }
.drawer__close {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); border: 0; cursor: pointer;
  color: var(--text); font-size: 1.6rem; line-height: 1;
}
.drawer__close:hover { background: var(--accent-strong); }
.drawer__links { display: flex; flex-direction: column; }
.drawer__links a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .8rem 0;
  font-size: 1.25rem; font-weight: 700;
  border-bottom: 1px solid rgba(212, 175, 87, .2);
  transition: color .2s, padding-left .2s;
}
.drawer__links a span { min-width: 1.4rem; font-family: "Cinzel", Georgia, serif; font-size: .8rem; font-weight: 600; color: var(--gold); }
.drawer__links a:hover { color: var(--accent); padding-left: .4rem; }
.drawer__cta { margin-top: auto; text-align: center; }
@media (min-width: 761px) { .drawer { display: none; } }
@media (prefers-reduced-motion: reduce) { .drawer *, .drawer { transition: none !important; } }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 6rem 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 45%, rgba(212, 175, 87, .14), transparent 40%),
    radial-gradient(circle at 10% 100%, rgba(255, 77, 148, .12), transparent 45%),
    var(--bg);
}
.hero__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.8rem); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); margin: 1.5rem 0 2.5rem; max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn--ghost { background: transparent; border: 1.5px solid var(--gold); color: var(--gold-light); padding: calc(1rem - 1.5px) calc(2.2rem - 1.5px); }
.btn--ghost:hover { background: rgba(212, 175, 87, .12); }

/* Mockup animati: laptop + telefono davanti ai cerchi oro del logo */
.mockups {
  position: relative;
  width: min(540px, 100%); aspect-ratio: 1;
  justify-self: center;
  container-type: inline-size;
}
.hero__emblem-ring { position: absolute; inset: 4%; border: 1.5px solid var(--gold); border-radius: 50%; opacity: .7; }
.hero__emblem-ring--inner { inset: 16%; border-color: rgba(212, 175, 87, .3); border-style: dashed; animation: spin 40s linear infinite; }

.laptop { position: absolute; left: 2%; top: 22%; width: 82%; animation: float 7s ease-in-out infinite; }
.laptop__screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: #111114;
  border: 1.6cqw solid #1d1d21; border-bottom-width: 2.4cqw;
  border-radius: 2cqw 2cqw 0 0;
  box-shadow: 0 0 0 1px #2c2c31, 0 4cqw 8cqw rgba(0, 0, 0, .6);
}
.laptop__base {
  height: 2.4cqw; margin: 0 -6%;
  background: linear-gradient(#3a3a40, #1b1b1f);
  border-radius: 0 0 2.4cqw 2.4cqw;
}

.phone { position: absolute; right: 3%; bottom: 10%; width: 24%; animation: float 6s ease-in-out -2s infinite; }
.phone__screen {
  aspect-ratio: 9 / 19; overflow: hidden;
  background: #111114;
  border: 1.2cqw solid #1d1d21; border-radius: 4cqw;
  box-shadow: 0 0 0 1px #3a3a40, 0 4cqw 8cqw rgba(0, 0, 0, .7);
}

/* Screenshot dei progetti: scorrono dall'alto in basso e tornano su */
.shot { display: block; width: 100%; height: auto; animation: page-scroll 16s ease-in-out infinite alternate; }
.shot--phone { animation-duration: 13s; animation-delay: -4s; }
/* Dissolvenza quando si passa al progetto successivo */
.shot, .mockups__caption-name { transition: opacity .5s; }
.mockups--switching .shot, .mockups--switching .mockups__caption-name { opacity: 0; }

.mockups__caption {
  position: absolute; left: 4%; bottom: 2%;
  display: flex; flex-direction: column; gap: .2rem;
  padding: .7rem 1.1rem;
  font-size: clamp(.8rem, 2.8cqw, 1rem); font-weight: 700;
  background: rgba(38, 38, 44, .85);
  border: 1px solid rgba(212, 175, 87, .45);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  transition: border-color .2s;
}
.mockups__caption:hover { border-color: var(--accent); }
.mockups__caption-tag { font-size: .65rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }

/* Etichette che fluttuano */
.badge {
  position: absolute;
  padding: .45em 1.1em;
  font-size: clamp(.65rem, 2.4cqw, .85rem); font-weight: 600;
  color: var(--gold-light);
  background: rgba(38, 38, 44, .85);
  border: 1px solid rgba(212, 175, 87, .5);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  animation: float 5s ease-in-out infinite;
}
.badge--1 { top: 12%; right: 6%; }
.badge--2 { top: 14%; left: 4%; animation-delay: -1.5s; }
.badge--3 { bottom: 3%; right: 8%; animation-delay: -3s; color: var(--text); border-color: var(--accent); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-2.5%); } }
@keyframes page-scroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(-72%); } }
@media (prefers-reduced-motion: reduce) {
  .mockups *, .mockups { animation: none !important; }
}

/* Sezioni */
.section { padding: 7rem 0; }
.section--alt { background: var(--surface); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid--services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--services { grid-template-columns: 1fr; } }

.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 125, 178, .45), transparent 45%),
    linear-gradient(160deg, var(--accent-strong), var(--accent-deep));
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
/* Bordo sfumato oro che appare al passaggio del mouse */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  padding: 1.5px; border-radius: inherit;
  background: var(--gold-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
/* Griglia di puntini decorativa nell'angolo */
.card::after {
  content: ""; position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: -1;
  width: 70px; height: 70px;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1.2px, transparent 1.4px);
  background-size: 12px 12px;
  opacity: .5; transition: opacity .3s, transform .3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 45px -15px rgba(255, 77, 148, .45);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; transform: translate(-4px, -4px); }

/* Numero grande in bianco trasparente, in alto a destra */
.card__num {
  position: absolute; top: 1rem; right: 1.4rem;
  font-family: "Montserrat", sans-serif; font-size: 3.6rem; font-weight: 900; line-height: 1; letter-spacing: -.04em;
  color: rgba(255, 255, 255, .22);
  transition: color .3s;
}
.card:hover .card__num { color: rgba(255, 255, 255, .45); }

/* Icona fucsia su quadrato bianco */
.card__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 1.6rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px -8px rgba(120, 0, 50, .45);
  transition: transform .3s;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }

.card h3 { position: relative; padding-bottom: .9rem; margin-bottom: 1rem; }
/* Linea bianca sotto il titolo che si allunga */
.card h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 3px; border-radius: 3px;
  background: #fff;
  transition: width .3s;
}
.card:hover h3::after { width: 80px; }
.card p { color: rgba(255, 255, 255, .92); flex: 1; }
.card__more {
  align-self: flex-start; margin-top: 1.5rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: #fff;
}
.card__more span { display: inline-block; transition: transform .2s; }
.card__more:hover span { transform: translateX(4px); }
.card__more:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Finestra dettagli servizio */
.modal {
  width: min(620px, 100% - 32px);
  max-height: 88vh;
  margin: auto;
  padding: 2.5rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(212, 175, 87, .35);
  border-radius: var(--radius);
  overflow-y: auto;
}
.modal::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
.modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 0; cursor: pointer;
  color: var(--text); font-size: 1.5rem; line-height: 1;
}
.modal__close:hover { background: var(--accent-strong); }
.modal__num { display: block; font-family: "Cinzel", Georgia, serif; font-weight: 600; color: var(--gold); margin-bottom: .8rem; }
.modal h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1.2rem; padding-right: 2.5rem; }
.modal__body p { color: var(--muted); margin-bottom: 1rem; }
.modal__body h4 {
  font-size: .75rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin: 1.6rem 0 .8rem;
}
.modal__body ul { list-style: none; display: grid; gap: .55rem; }
.modal__body li { position: relative; padding-left: 1.6rem; color: var(--cream); }
.modal__body li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.modal__cta { margin-top: 1.8rem; }
@media (max-width: 760px) { .modal { padding: 2rem 1.5rem; } }

.works { display: grid; gap: 1.5rem; }
.work {
  display: grid; grid-template-columns: 1fr 1.4fr;
  background: var(--bg);
  border: 1px solid #47474F;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.work:hover { border-color: var(--accent); transform: translateY(-4px); }
.work__visual { background: linear-gradient(135deg, var(--cream), #cdbfae); display: grid; place-items: center; padding: 2rem; min-height: 280px; }
.browser { width: 100%; max-width: 440px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #1d1d21; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a40; }
.browser__bar i:first-child { background: var(--accent); }
.browser__bar span { margin-left: 10px; font-size: .7rem; color: var(--muted); }
.browser__view { aspect-ratio: 16 / 10; overflow: hidden; }
.browser__view img { display: block; width: 100%; height: auto; }
/* Su computer: con il mouse sopra la miniatura, la rotella scorre il sito in miniatura
   e la pagina resta ferma (overscroll-behavior blocca il passaggio dello scroll alla pagina) */
@media (hover: hover) and (pointer: fine) {
  .browser__view { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .browser__view::-webkit-scrollbar { display: none; }
}
.work__body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.work__tag { font-size: .75rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.work__body h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.work__body p { color: var(--muted); margin-bottom: 1.5rem; }
.work__link { color: var(--accent); font-weight: 600; }
.work__links { display: flex; flex-wrap: wrap; gap: .8rem 2rem; }
a.work__link:hover { color: var(--accent-light); text-decoration: underline; }

/* Chi sono */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center; }
.about__logo {
  display: block; width: 100%; height: auto;
  border: 1px solid rgba(212, 175, 87, .45);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px rgba(0, 0, 0, .35);
}
.about p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin-bottom: 1rem; }
.stats { display: flex; flex-wrap: wrap; gap: 2rem 3rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(212, 175, 87, .25); }
.stat { display: flex; flex-direction: column; max-width: 160px; }
.stat__num { font-family: "Cinzel", Georgia, serif; font-size: 3rem; font-weight: 600; line-height: 1; color: var(--gold); }
.stat__label { color: var(--muted); font-size: .9rem; margin-top: .4rem; }

/* Come lavoro */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step {
  position: relative;
  padding: 2rem 1.6rem;
  background: var(--surface);
  border: 1px solid rgba(212, 175, 87, .25);
  border-radius: var(--radius);
}
.step__num {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 1.4rem;
  border: 1.5px solid var(--gold); border-radius: 50%;
  font-family: "Cinzel", Georgia, serif; font-weight: 600; color: var(--gold-light);
}
/* Freccia oro che collega un passo al successivo */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 3.6rem; right: -1.2rem; z-index: 1;
  width: .9rem; height: .9rem;
  border-top: 2px solid var(--gold); border-right: 2px solid var(--gold);
  transform: rotate(45deg);
}
.step p { color: var(--muted); }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

/* Recensioni */
.review {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid rgba(212, 175, 87, .25);
  border-radius: var(--radius);
}
.review blockquote { font-size: 1.05rem; color: var(--cream); }
.review blockquote::before { content: "\201C"; display: block; font-family: "Cinzel", Georgia, serif; font-size: 3rem; line-height: .8; color: var(--gold); }
.review figcaption { display: flex; flex-direction: column; }
.review figcaption span { color: var(--muted); font-size: .9rem; }

/* Domande frequenti */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.faq h2 { margin-bottom: 1.2rem; }
.faq__intro { color: var(--muted); font-size: 1.1rem; }
.faq__intro a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.faq__list { display: grid; gap: .8rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid #47474F;
  border-radius: 14px;
  transition: border-color .2s;
}
.faq__item[open], .faq__item:hover { border-color: var(--gold); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-weight: 700; font-size: 1.05rem;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--gold); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 14px; }
.faq__item p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* CTA */
.contact {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 77, 148, .16), transparent 45%),
    var(--surface);
}
.contact__inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact__intro h2 { margin-bottom: 1.2rem; }
.contact__intro p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.contact__direct { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; font-weight: 600; }
.contact__direct a { display: flex; align-items: center; gap: 1rem; color: var(--gold-light); min-width: 0; }
.contact__direct a > span:last-child { display: flex; flex-direction: column; line-height: 1.3; overflow-wrap: anywhere; }
.contact__direct small { font-size: .7rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
/* Icona in cerchio oro che diventa fucsia al passaggio */
.contact__icon {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(212, 175, 87, .08);
  transition: background .2s, border-color .2s;
}
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.contact__icon svg .fill { fill: var(--gold-light); stroke: none; transition: fill .2s; }
.contact__direct a:hover { color: var(--accent); }
.contact__direct a:hover .contact__icon { background: var(--accent-strong); border-color: var(--accent-strong); }
.contact__direct a:hover .contact__icon svg { stroke: #fff; }
.contact__direct a:hover .contact__icon svg .fill { fill: #fff; }

/* Modulo */
.form {
  background: var(--bg);
  border: 1px solid #47474F;
  border-radius: var(--radius);
  padding: 2.2rem;
  display: grid; gap: 1.4rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .5rem; border: 0; min-width: 0; }
.field > span, .field legend { font-size: .85rem; font-weight: 600; color: var(--cream); margin-bottom: .5rem; }
.field > span { margin-bottom: 0; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 1px solid #4C4C55;
  border-radius: 10px;
  padding: .85rem 1rem;
  transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8E8E96; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; cursor: pointer;
  padding: .55rem 1.1rem;
  border: 1px solid #5A5A63; border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  transition: all .2s;
}
.chip:hover span { border-color: var(--gold); }
.chip input:checked + span { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.form__error { color: var(--accent-light); font-weight: 600; font-size: .95rem; }

.form__success {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem 1.4rem;
  background: rgba(212, 175, 87, .08);
  border: 1px solid var(--gold);
  border-radius: 12px;
  animation: modal-in .3s ease-out;
}
.form__success[hidden] { display: none; }
.form__success-icon {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  font-size: 1.2rem; font-weight: 800;
}
.form__success strong { display: block; font-size: 1.05rem; color: var(--gold-light); margin-bottom: .3rem; }
.form__success p { color: var(--cream); font-size: .95rem; }
.form__success-small { margin-top: .4rem; font-size: .85rem !important; color: var(--muted) !important; }
.form__success a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.form__privacy { font-size: .8rem; color: var(--muted); text-align: center; }
.form__privacy a { color: var(--gold-light); text-decoration: underline; }
.form__submit { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border: 0; cursor: pointer; font: inherit; font-weight: 600; }

/* Footer */
.footer { padding: 5rem 0 2rem; color: var(--muted); border-top: 1px solid rgba(212, 175, 87, .25); }
.footer__brand { font-family: "Cinzel", Georgia, serif; color: var(--gold); }

.footer__quote {
  position: relative;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(212, 175, 87, .35);
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
}
.footer__quote-mark {
  position: absolute; top: .4rem; left: 50%; transform: translateX(-50%);
  font-family: "Cinzel", Georgia, serif; font-size: 6rem; line-height: 1;
  color: var(--gold); opacity: .25;
}
.footer__quote p {
  position: relative;
  font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em;
  color: var(--text);
}
.footer__quote cite {
  display: block; margin-top: 1.5rem;
  font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold);
}

.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
.footer__col { display: flex; flex-direction: column; gap: .7rem; }
.footer__col h4 {
  font-size: .75rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .4rem;
}
.footer__col a { color: var(--cream); transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__social { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }

.hours { list-style: none; display: grid; gap: .6rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; color: var(--cream); max-width: 280px; }
.hours li span:last-child { font-weight: 600; }
.hours__closed { color: var(--accent); }

.footer__bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; padding-top: 1.5rem; border-top: 1px solid #3E3E46; font-size: .85rem; text-align: center; }
.footer__bottom a { text-decoration: underline; }
.footer__bottom a:hover { color: var(--accent); }

/* Pagina privacy */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: .8rem; }
.legal h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 2.5rem 0 .8rem; color: var(--gold-light); }
.legal p { color: var(--muted); margin-bottom: 1rem; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent); text-decoration: underline; }
.legal__updated { font-size: .9rem; }
.footer--small { padding-top: 0; }

/* Pulsante WhatsApp fisso in basso a destra */
.wa-float {
  /* bottom alzato per non finire sotto il badge "Powered by Netlify" */
  position: fixed; right: 20px; bottom: 76px; z-index: 20;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #1FAF54; color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .4);
  transition: transform .2s, background .2s;
}
.wa-float:hover { background: #178C43; transform: scale(1.08); }
.wa-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Nasconde il pulsante mentre il menu mobile è aperto */
body:has(.drawer.is-open) .wa-float { opacity: 0; pointer-events: none; }

/* Mobile */
@media (max-width: 760px) {
  .nav__links a:not(.btn) { display: none; }
  .nav__inner { gap: .8rem; }
  .nav__links { margin-left: auto; }
  .nav__toggle { display: flex; }
  .lang { margin-left: 0; }
  .lang--drawer { margin: 1.8rem 0 1.5rem; }
  .logo__mark { width: 38px; height: 38px; font-size: .8rem; }
  .logo__name { font-size: 1.1rem; }
  .hero { min-height: auto; padding: 4rem 0 5rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .mockups { width: min(420px, 100%); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__quote { padding: 3rem 1.5rem 2rem; }
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form { padding: 1.5rem; }
  .form__row { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .faq { grid-template-columns: 1fr; gap: 2rem; }
  /* Spazio in fondo perché il pulsante WhatsApp non copra il footer */
  .footer { padding-bottom: 9rem; }
  .wa-float { right: 16px; bottom: 72px; width: 56px; height: 56px; }
  .about__logo { max-width: 480px; }
  .work__visual { min-height: 220px; }
  .work__body { padding: 1.8rem; }
  .section { padding: 5rem 0; }
}
/* Telefoni stretti: "Parliamone" resta nel menu e c'è il pulsante WhatsApp, così l'header non si affolla */
@media (max-width: 480px) {
  .nav__links { display: none; }
  .lang:not(.lang--drawer) { margin-left: auto; }
}
