/* ==========================================================================
   AV HAIRSTYLES — Alessandro Veglianti
   Foglio di stile principale
   --------------------------------------------------------------------------
   Indice
   01. Font
   02. Variabili (palette, tipografia, spazi)
   03. Base
   04. Tipografia e utilità
   05. Pulsanti e link
   06. Header, menu mobile, selettore lingua
   07. Transizione tra pagine, barra di scroll, pulsante flottante
   08. Animazioni di comparsa (reveal)
   09. Illustrazioni vettoriali
   10. Home
   11. Servizi
   12. Chi sono
   13. Contatti e modulo
   14. Pagine legali
   15. Footer
   16. Hover solo su dispositivi con mouse
   17. Riduzione del movimento (accessibilità)
   ========================================================================== */


/* ==========================================================================
   01. FONT — ospitati sul sito (nessuna chiamata a servizi esterni)
   Instrument Serif e Instrument Sans — SIL Open Font License 1.1
   ========================================================================== */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   02. VARIABILI
   ========================================================================== */
:root {
  /* Superfici — nero con un sottotono rosato */
  --bg: #120D10;
  --bg-2: #1A1217;
  --surface: #22171D;
  --surface-2: #2C1E26;

  /* Testo — avorio cipria */
  --text: #F8F0F1;
  --text-soft: #BBA9B0;
  --line: rgba(248, 224, 232, 0.13);
  --line-2: rgba(248, 224, 232, 0.26);

  /* Accento — il fucsia dell'insegna, raffinato */
  --accent: #D1106F;
  --accent-dark: #B00D5E;
  --accent-soft: #F58BBB;
  --violet: #8A2BD9;

  /* Firma cromatica — lo spettro del murale, virato sui rosa */
  --spectrum: linear-gradient(100deg, #FF3D8B 0%, #FF7AB6 28%, #D46BFF 55%, #9AA6FF 78%, #FFB6D3 100%);
  --spectrum-deep: linear-gradient(100deg, #D1106F 0%, #B51F8C 50%, #8A2BD9 100%);

  /* Bagliore rosa usato su hero e riquadri */
  --pink-glow: rgba(255, 61, 139, 0.26);

  /* Tipografia */
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  /* Spazi */
  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1280px;
  --header-h: 76px;
  --section: clamp(96px, 14vw, 176px);
  --radius: 20px;
}


/* ==========================================================================
   03. BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
  border-radius: 4px;
}

html.menu-open {
  overflow: hidden;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.nowrap {
  white-space: nowrap;
}

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

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}


/* ==========================================================================
   04. TIPOGRAFIA E UTILITÀ
   ========================================================================== */
.display,
.h2,
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
}

.display {
  font-size: clamp(3.6rem, 16vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.display em,
.h2 em,
.h3 em {
  font-style: italic;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 34ch;
}

.text-soft {
  color: var(--text-soft);
}

.prose p + p {
  margin-top: 1.1em;
}

.prose p {
  color: var(--text-soft);
  max-width: 58ch;
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

/* Parole evidenziate con lo spettro (il colore del marchio) */
.spectrum-text,
.spectrum-text .w__i {
  background-image: var(--spectrum);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: spectrumShift 9s ease-in-out infinite alternate;
}

.spectrum-text.is-split {
  background: none;
  animation: none;
}

@keyframes spectrumShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* Etichetta sopra i titoli */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--spectrum);
  flex-shrink: 0;
}

.section-head {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(48px, 7vw, 88px);
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}


/* ==========================================================================
   05. PULSANTI E LINK
   ========================================================================== */
.btn {
  --h: 56px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--h);
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease, transform 0.5s var(--ease-out);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out);
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--spectrum-deep);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.btn--violet {
  background-color: var(--violet);
  color: #fff;
}

.btn--violet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, #8A2BD9 0%, #B51F8C 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
}

.btn--sm {
  --h: 44px;
  padding: 0 20px;
  font-size: 0.68rem;
}

.btn:active {
  transform: scale(0.97);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(var(--text), var(--text)) left bottom / 32px 1px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform 0.5s var(--ease-out);
}


/* ==========================================================================
   06. HEADER, MENU MOBILE, SELETTORE LINGUA
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform 0.6s var(--ease-out), background-color 0.4s ease, border-color 0.4s ease;
}

.site-header.is-scrolled {
  background-color: rgba(18, 13, 16, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.menu-open .site-header {
  background-color: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: block;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 46px;
}

.nav {
  display: none;
}

.nav a {
  position: relative;
  padding: 8px 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--spectrum);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.6s var(--ease-out);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

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

.header-book {
  display: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.lang-switch a {
  padding: 10px 6px;
  color: var(--text-soft);
  transition: color 0.3s ease;
}

.lang-switch a[aria-current="true"] {
  color: var(--text);
}

.lang-switch span {
  color: var(--line-2);
}

.burger {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}

.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

@media (min-width: 600px) {
  .header-book {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 88px;
  }

  .brand img {
    height: 52px;
  }

  .nav {
    display: flex;
    gap: 38px;
  }

  .burger {
    display: none;
  }
}

/* Menu a tutto schermo (mobile) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  background-color: var(--bg);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s linear 0.8s;
}

.menu::before {
  content: "";
  position: absolute;
  inset: auto -30% -30% -30%;
  height: 70%;
  z-index: -1;
  background: url("../img/hero-home.jpg") center / cover no-repeat;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 80%);
  mask-image: linear-gradient(to top, #000 10%, transparent 80%);
}

.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s linear 0s;
}

.menu__links a {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 13vw, 4.4rem);
  line-height: 1.12;
  color: var(--text);
}

.menu__links a span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(0.25s + var(--i, 0) * 0.07s);
}

.menu__links a[aria-current="page"] span {
  font-style: italic;
}

.menu.is-open .menu__links a span {
  transform: none;
}

.menu__foot {
  display: grid;
  gap: 22px;
  opacity: 0;
  transition: opacity 0.6s ease 0.5s;
}

.menu.is-open .menu__foot {
  opacity: 1;
}

.menu__contacts {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .menu {
    display: none;
  }
}


/* ==========================================================================
   07. TRANSIZIONE TRA PAGINE, BARRA DI SCROLL, PULSANTE FLOTTANTE
   ========================================================================== */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background-color: var(--bg);
  pointer-events: none;
  transform: translateY(-100%);
}

.page-curtain img {
  width: 76px;
  height: auto;
  opacity: 0;
}

.js .page-curtain {
  animation: curtainOut 1s var(--ease-in-out) 0.15s both;
}

.js .page-curtain img {
  animation: curtainLogo 0.9s ease both;
}

.is-leaving .page-curtain {
  animation: curtainIn 0.55s var(--ease-in-out) both;
}

.is-leaving .page-curtain img {
  animation: none;
  opacity: 0;
}

@keyframes curtainOut {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}

@keyframes curtainIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes curtainLogo {
  0% { opacity: 0; transform: scale(0.92); }
  40% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  width: 100%;
  height: 2px;
  background: var(--spectrum);
  transform: scaleX(0);
  transform-origin: left center;
}

.fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px rgba(209, 16, 111, 0.35);
  transform: scale(0);
  transition: transform 0.6s var(--ease-out);
}

.fab svg {
  width: 26px;
  height: 26px;
}

.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  animation: fabPulse 2.8s ease-out infinite;
}

.fab.is-visible {
  transform: scale(1);
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (min-width: 1024px) {
  .fab {
    display: none;
  }
}


/* ==========================================================================
   08. ANIMAZIONI DI COMPARSA
   Attive solo con JavaScript (classe .js): senza JS tutto resta visibile.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 1s ease, transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Immagini che si svelano dal basso */
.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.5s var(--ease-in-out);
  transition-delay: var(--d, 0s);
}

.js [data-reveal="clip"].is-visible {
  clip-path: inset(0 0 0 0);
}

.js [data-reveal="clip"] img {
  transform: scale(1.22);
  transition: transform 2.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js [data-reveal="clip"].is-visible img {
  transform: scale(1);
}

/* Gruppi che compaiono uno dopo l'altro */
.js [data-reveal="stagger"] {
  opacity: 1;
  transform: none;
}

.js [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s ease, transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--i, 0) * 0.09s);
}

.js [data-reveal="stagger"].is-visible > * {
  opacity: 1;
  transform: none;
}

/* Tratti che si disegnano (illustrazioni) */
.js [data-reveal="draw"] {
  opacity: 1;
  transform: none;
}

.js [data-reveal="draw"] .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease-in-out);
  transition-delay: calc(var(--d, 0s) + var(--i, 0) * 0.12s);
}

.js [data-reveal="draw"].is-visible .draw {
  stroke-dashoffset: 0;
}

.js [data-reveal="draw"] .pop {
  opacity: 0;
  transform: scale(0.3);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.8s ease, transform 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + 1.2s + var(--i, 0) * 0.15s);
}

.js [data-reveal="draw"].is-visible .pop {
  opacity: 1;
  transform: none;
}

/* Titoli che salgono parola per parola */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0.06em 0.16em;
  margin: -0.08em -0.06em -0.16em;
}

.js [data-split] .w__i {
  display: inline-block;
  transform: translate3d(0, 115%, 0) rotate(5deg);
  transform-origin: left bottom;
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--i, 0) * 0.07s);
}

.js [data-split].is-visible .w__i {
  transform: none;
}


/* ==========================================================================
   09. ILLUSTRAZIONI VETTORIALI
   ========================================================================== */
.illo {
  width: 100%;
  height: auto;
  overflow: visible;
}

.illo .stroke {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.illo .fan-ring {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 1.2;
}

.illo .stroke--soft {
  stroke: var(--line-2);
}

.illo .stroke--spectrum {
  stroke: url(#g-spectrum);
}

/* Ciocche fluttuanti (hero e call to action) */
.strands {
  position: absolute;
  pointer-events: none;
  opacity: 0.75;
}

.strands path {
  fill: none;
  stroke-width: 1.1;
  stroke-linecap: round;
}

/* Ventaglio delle ciocche campione: si apre allo scroll */
.fan .tress {
  transform: rotate(var(--a));
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 1.8s var(--ease-out);
  transition-delay: calc(0.15s + var(--i, 0) * 0.08s);
}

.js .fan:not(.is-visible) .tress {
  transform: rotate(0deg);
}

.fan .tress-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 0.8;
}

/* Badge circolare che ruota */
.badge-rotate {
  position: absolute;
  width: 112px;
  height: 112px;
  z-index: 3;
}

.badge-rotate svg {
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}

.badge-rotate .badge-bg {
  fill: var(--bg);
  stroke: var(--line-2);
}

.badge-rotate text {
  fill: var(--text);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 3.1px;
  text-transform: uppercase;
}

.badge-rotate .badge-star {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  animation: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 900px) {
  .badge-rotate {
    width: 138px;
    height: 138px;
  }

  .badge-rotate .badge-star {
    width: 30px;
    height: 30px;
  }
}

/* Icone di linea (pilastri e servizi) */
.line-icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cornice ad arco (lo specchio del salone) */
.arch {
  position: relative;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background-color: var(--surface);
}

.media {
  position: relative;
  overflow: hidden;
  background-color: var(--surface);
}

.media__inner {
  position: absolute;
  inset: 0;
}

.media__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bagliore colorato (l'immagine spettro del salone, sfocata) */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora img {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  max-width: none;
  object-fit: cover;
  animation: auroraDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes auroraDrift {
  0% { transform: scale(1.05) rotate(0deg) translate3d(0, 0, 0); }
  50% { transform: scale(1.25) rotate(6deg) translate3d(3%, -2%, 0); }
  100% { transform: scale(1.12) rotate(-4deg) translate3d(-3%, 2%, 0); }
}

/* Nastro di parole che scorre */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(22px, 4vw, 34px);
  border-block: 1px solid var(--line);
  background-color: var(--bg);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 44px);
  padding-right: clamp(22px, 4vw, 44px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 6.5vw, 4.4rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}

.marquee__item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 139, 187, 0.75);
}

.marquee__item svg {
  width: clamp(16px, 2.4vw, 26px);
  height: clamp(16px, 2.4vw, 26px);
  flex-shrink: 0;
}

@keyframes marquee {
  to { transform: translate3d(-50%, 0, 0); }
}


/* ==========================================================================
   10. HOME
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 88px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero .aurora {
  opacity: 0.6;
}

.aurora img {
  filter: hue-rotate(-22deg) saturate(1.15);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(45% 40% at 80% 38%, var(--pink-glow), transparent 70%),
    radial-gradient(40% 45% at 6% 95%, rgba(209, 16, 111, 0.2), transparent 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 20% 45%, rgba(18, 13, 16, 0.2) 0%, rgba(18, 13, 16, 0.78) 55%, var(--bg) 88%),
    linear-gradient(to bottom, rgba(18, 13, 16, 0.35) 0%, transparent 30%, var(--bg) 100%);
}

.hero .strands {
  z-index: 2;
  top: -4%;
  right: -12%;
  width: min(760px, 120vw);
  height: auto;
}

.hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 64px;
  align-items: center;
}

.hero__text .eyebrow {
  margin-bottom: 26px;
}

.hero__title em {
  display: block;
  padding-left: 0.5em;
}

.hero__lead {
  margin-top: 30px;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--text);
  opacity: 0.85;
  max-width: 30ch;
}

.hero__text .actions {
  margin-top: 40px;
}

.hero__media {
  position: relative;
  justify-self: center;
  width: min(78vw, 400px);
}

.hero__media .arch {
  aspect-ratio: 4 / 5;
}

.hero__media .badge-rotate {
  left: -26px;
  bottom: -30px;
}

.hero__scroll {
  display: none;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
  }

  .hero__media {
    width: 100%;
    max-width: 440px;
    justify-self: end;
  }

  .hero__media .badge-rotate {
    left: -70px;
    bottom: 40px;
  }

  .hero__scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    display: grid;
    justify-items: center;
    gap: 12px;
    transform: translateX(-50%);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-soft);
  }

  .hero__scroll::after {
    content: "";
    width: 1px;
    height: 46px;
    background: linear-gradient(var(--text), transparent);
    transform-origin: top;
    animation: scrollCue 2.4s var(--ease-in-out) infinite;
  }
}

@keyframes scrollCue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Offerta: "Un colore che parla di te" ---------- */
.offer__grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

.offer__art {
  position: relative;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.offer__art::before {
  content: "";
  position: absolute;
  inset: 12% 8% 0;
  z-index: -1;
  background: url("../img/hero-home.jpg") center / cover no-repeat;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}

.offer__text .prose {
  margin-top: 30px;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: start;
}

.pillar .line-icon {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  color: var(--accent-soft);
}

.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.1;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.offer__text .link-arrow {
  margin-top: 44px;
}

@media (min-width: 560px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }
}

@media (min-width: 1024px) {
  .offer__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 88px;
  }
}

/* ---------- Anteprima Chi sono ---------- */
.about-teaser {
  background:
    radial-gradient(40% 50% at 0% 50%, rgba(209, 16, 111, 0.12), transparent 70%),
    var(--bg-2);
}

.about-teaser__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.about-teaser__media {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.about-teaser__media .media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}

.about-teaser__media .media__inner img {
  object-position: 50% 25%;
}

.floating-quote {
  position: absolute;
  right: -8px;
  bottom: -28px;
  z-index: 2;
  max-width: 250px;
  padding: 22px 24px;
  border-radius: 16px;
  background-color: rgba(26, 24, 26, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.25;
}

.floating-quote::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--spectrum);
}

.about-teaser__text .prose {
  margin-top: 28px;
}

.signature {
  margin-top: 34px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--text);
}

.signature small {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.about-teaser__text .link-arrow {
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .about-teaser__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 110px;
  }

  .floating-quote {
    right: -64px;
    bottom: 56px;
  }
}

/* ---------- Servizi in evidenza ---------- */
.feature-list {
  border-top: 1px solid var(--line);
}

.feature-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 22px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.feature-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  z-index: -1;
  background: linear-gradient(90deg, rgba(209, 16, 111, 0.2), rgba(212, 107, 255, 0.08));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease-out);
}

.feature-row__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-soft);
  align-self: start;
  padding-top: 0.5em;
}

.feature-row__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5.4vw, 3.6rem);
  line-height: 1.02;
  transition: transform 0.7s var(--ease-out);
}

.feature-row__desc {
  grid-column: 2 / 3;
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 44ch;
}

.feature-row__arrow {
  grid-row: 1 / 3;
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.6s var(--ease-out);
}

.feature-row__arrow svg {
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
  transition: transform 0.6s var(--ease-out);
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 90px 1.1fr 1fr auto;
    gap: 32px;
    padding: 40px 0;
  }

  .feature-row__num {
    padding-top: 0;
    align-self: center;
  }

  .feature-row__desc {
    grid-column: auto;
  }

  .feature-row__arrow {
    grid-row: auto;
    grid-column: auto;
  }
}

/* ---------- Recensioni ---------- */
.reviews {
  text-align: center;
  overflow: hidden;
}

.reviews__inner {
  max-width: 880px;
  margin-inline: auto;
}

.quote-mark {
  display: block;
  height: 0.62em;
  font-family: var(--serif);
  font-size: clamp(8rem, 22vw, 14rem);
  line-height: 1;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reviews .h2 {
  margin-top: 8px;
}

.reviews p {
  margin: 28px auto 40px;
  color: var(--text-soft);
  max-width: 46ch;
}

.btn svg.brand-g {
  width: 16px;
  height: 16px;
}

/* ---------- Call to action finale ---------- */
.cta {
  padding-block: 0 var(--section);
}

.cta__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(72px, 12vw, 150px) clamp(24px, 6vw, 96px);
  text-align: center;
  border: 1px solid var(--line);
}

.cta__card .aurora {
  opacity: 0.55;
}

.cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(50% 60% at 50% 110%, var(--pink-glow), transparent 70%),
    radial-gradient(80% 90% at 50% 50%, rgba(18, 13, 16, 0.5), rgba(18, 13, 16, 0.88));
}

.cta__card > *:not(.aurora):not(.strands) {
  position: relative;
  z-index: 3;
}

.cta__card .strands {
  z-index: 2;
  left: -34%;
  top: -24%;
  width: 64%;
  opacity: 0.4;
}

@media (max-width: 899px) {
  .cta__card .strands {
    left: -40%;
    width: 90%;
    opacity: 0.28;
  }
}

.cta__card .eyebrow {
  justify-content: center;
}

.cta__card .h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.cta__card p {
  margin: 30px auto 42px;
  max-width: 50ch;
  color: var(--text-soft);
}

.cta__card .actions {
  justify-content: center;
}


/* ==========================================================================
   11. SERVIZI
   ========================================================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 10vw, 120px)) 0 clamp(64px, 9vw, 110px);
}

.page-hero .aurora {
  opacity: 0.28;
  -webkit-mask-image: radial-gradient(70% 70% at 80% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 80% 30%, #000 20%, transparent 75%);
}

.page-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 48px;
  align-items: center;
}

.page-hero .lead {
  margin-top: 30px;
}

.page-hero__art {
  width: min(70vw, 360px);
  justify-self: center;
}

@media (min-width: 1024px) {
  .page-hero__grid {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .page-hero__art {
    width: 100%;
    max-width: 400px;
    justify-self: end;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-soft);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.chip span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-soft);
}

.service-group + .service-group {
  padding-top: 0;
}

.service-group__head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.service-group__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 139, 187, 0.7);
}

@media (min-width: 900px) {
  .service-group__head {
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 40px;
  }
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.service-item__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--text);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.service-item__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--spectrum-deep);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}

.service-item__icon .line-icon {
  width: 30px;
  height: 30px;
}

.service-item__body h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  line-height: 1.08;
}

.service-item__body p {
  margin-top: 8px;
  color: var(--text-soft);
  max-width: 52ch;
}

.service-item__index {
  display: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 139, 187, 0.55);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
}

@media (min-width: 900px) {
  .service-item {
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 36px;
    padding: 36px 0;
  }

  .service-item__index {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-soft);
  }
}

/* Fascia fotografica tra i due gruppi */
.photo-band {
  padding-block: 0 var(--section);
}

.photo-band .media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}

.photo-band figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

@media (min-width: 700px) {
  .photo-band .media {
    aspect-ratio: 16 / 8;
  }
}


/* ==========================================================================
   12. CHI SONO
   ========================================================================== */
.about-hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.about-hero__media {
  position: relative;
  width: min(80vw, 420px);
  justify-self: center;
}

.about-hero__media .arch {
  aspect-ratio: 4 / 5;
}

.about-hero__media .media__inner img {
  object-position: 50% 30%;
}

.about-hero__media .badge-rotate {
  right: -24px;
  bottom: -26px;
}

.about-hero__role {
  margin-top: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text-soft);
}

@media (min-width: 1024px) {
  .about-hero__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
  }

  .about-hero__media {
    width: 100%;
    max-width: 460px;
  }

  .about-hero__media .badge-rotate {
    right: -60px;
    bottom: 60px;
  }
}

/* Timeline del percorso */
.story {
  background-color: var(--bg-2);
}

.timeline {
  --progress: 0;
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  padding-left: 40px;
}

.timeline::before,
.timeline__fill {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
}

.timeline::before {
  background: var(--line);
}

.timeline__fill {
  background: var(--spectrum);
  background: linear-gradient(to bottom, #FF3D8B, #FF7AB6, #D46BFF, #FFB6D3);
  transform: scaleY(var(--progress));
  transform-origin: top;
}

.timeline__step {
  position: relative;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.timeline__step:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.timeline__step.is-active .timeline__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 61, 139, 0.22);
}

.timeline__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.timeline__step h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
}

.timeline__step p {
  margin-top: 18px;
  color: var(--text-soft);
  max-width: 60ch;
  font-size: 1.05rem;
}

.timeline__step strong {
  color: var(--text);
}

@media (min-width: 900px) {
  .timeline {
    padding-left: 72px;
  }

  .timeline__dot {
    left: -72px;
  }
}

/* Citazione */
.manifesto {
  text-align: center;
}

.manifesto blockquote {
  max-width: 1000px;
  margin-inline: auto;
}

.manifesto blockquote p {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.manifesto cite {
  display: block;
  margin-top: 36px;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.manifesto .pillars {
  max-width: 1100px;
  margin: clamp(64px, 9vw, 110px) auto 0;
  text-align: left;
}

@media (min-width: 1024px) {
  .manifesto .pillars {
    grid-template-columns: repeat(4, 1fr);
  }

  .manifesto .pillar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .manifesto .pillar .line-icon {
    grid-row: auto;
  }
}

/* Il salone */
.studio__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.studio__media .media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}

.studio__text .prose {
  margin-top: 28px;
}

.studio__text .actions {
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .studio__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 100px;
  }
}


/* ==========================================================================
   13. CONTATTI E MODULO
   ========================================================================== */
.contact-main {
  padding-top: 0;
}

.contact-grid {
  display: grid;
  gap: 56px;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
  }
}

.channels {
  border-top: 1px solid var(--line);
}

.channel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.channel__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.channel__icon svg {
  width: 22px;
  height: 22px;
}

.channel--primary .channel__icon {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.channel__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
}

.channel__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.channel__arrow {
  width: 20px;
  height: 20px;
  transform: rotate(-45deg);
  color: var(--text-soft);
  transition: transform 0.5s var(--ease-out), color 0.3s ease;
}

.contact-note {
  margin-top: 30px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* Modulo */
.form-card {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
  border-radius: calc(var(--radius) + 8px);
  background-color: var(--surface);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.form-card::before {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  top: -1px;
  height: 1px;
  background: var(--spectrum);
}

.form-card .h3 {
  margin-bottom: 8px;
}

.form-card > p {
  color: var(--text-soft);
  margin-bottom: 36px;
}

.form-row {
  display: grid;
  gap: 0 28px;
}

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

.field {
  position: relative;
  margin-bottom: 30px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text);
  transition: border-color 0.3s ease;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: transparent;
}

.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--spectrum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.field:focus-within::after {
  transform: scaleX(1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(171, 165, 160, 0.55);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-soft);
  cursor: pointer;
}

.check input {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.check input::before {
  content: "";
  width: 11px;
  height: 11px;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform 0.25s var(--ease-out);
}

.check input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.check input:checked::before {
  transform: scale(1);
}

.check a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .form-card .btn {
    width: auto;
  }
}

.form-card.is-sending .btn {
  opacity: 0.6;
  pointer-events: none;
}

.form-status {
  min-height: 1.6em;
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.form-status.is-success {
  color: #8FE3C0;
}

.form-status.is-error {
  color: #FF9BB5;
}

.form-status a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Il salone: foto + orari */
.salon {
  background-color: var(--bg-2);
}

.salon__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.salon__media .media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}

.salon__address {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 32px;
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text);
}

.salon__address svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--accent-soft);
}

.salon__hours-title {
  margin-top: 36px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hours {
  margin: 14px 0 40px;
  border-top: 1px solid var(--line);
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.hours li span:first-child {
  color: var(--text);
}

.hours li span:last-child {
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1024px) {
  .salon__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
  }
}


/* ==========================================================================
   14. PAGINE LEGALI
   ========================================================================== */
.legal-hero {
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.legal-hero .lead {
  margin-top: 24px;
  max-width: 60ch;
}

.legal {
  max-width: 780px;
  padding-block: clamp(56px, 8vw, 96px) var(--section);
}

.legal h2 {
  margin: 56px 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.1;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--text-soft);
}

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 14px;
}

.legal ul {
  display: grid;
  gap: 8px;
  padding-left: 0;
}

.legal li {
  position: relative;
  padding-left: 22px;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--accent-soft);
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal strong {
  color: var(--text);
}

.legal .updated {
  margin-top: 56px;
  font-size: 0.85rem;
}


/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0 32px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-top {
  display: grid;
  gap: 32px;
  padding-bottom: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.footer-top .h2 {
  font-size: clamp(2.8rem, 9vw, 6.4rem);
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 24px;
  padding-block: 56px;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand img {
  width: auto;
  height: 64px;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.footer-col h2 {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.98rem;
  color: var(--text);
  overflow-wrap: anywhere;
  background: linear-gradient(var(--text), var(--text)) left bottom / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: none;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.socials svg {
  width: 19px;
  height: 19px;
}

.footer-col--wide {
  grid-column: 1 / -1;
}

@media (min-width: 600px) {
  .footer-col--wide {
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.footer-bottom a:hover {
  color: var(--text);
}

.footer-wordmark {
  position: absolute;
  left: 50%;
  bottom: -0.2em;
  z-index: -1;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(6rem, 26vw, 22rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 139, 187, 0.09);
  pointer-events: none;
  user-select: none;
}


/* ==========================================================================
   16. HOVER — solo dove c'è un vero mouse (su touch non restano "bloccati")
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover::before,
  .btn--violet:hover::before {
    opacity: 1;
  }

  .btn--ghost:hover {
    border-color: var(--text);
    background-color: rgba(245, 139, 187, 0.08);
  }

  .btn:hover svg {
    transform: translateX(4px);
  }

  .link-arrow:hover {
    background-size: 100% 1px;
  }

  .link-arrow:hover svg {
    transform: translateX(6px);
  }

  .nav a:hover {
    color: var(--text);
  }

  .nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .lang-switch a:hover {
    color: var(--text);
  }

  .feature-row:hover::before {
    transform: scaleY(1);
  }

  .feature-row:hover .feature-row__title {
    transform: translateX(14px);
  }

  .feature-row:hover .feature-row__arrow {
    background-color: var(--text);
    border-color: var(--text);
    color: var(--bg);
  }

  .feature-row:hover .feature-row__arrow svg {
    transform: rotate(0deg);
  }

  .service-item:hover .service-item__icon {
    border-color: transparent;
    color: #fff;
  }

  .service-item:hover .service-item__icon::before {
    opacity: 1;
    transform: scale(1);
  }

  .chip:hover {
    color: var(--text);
    border-color: var(--text);
  }

  .channel:hover .channel__icon {
    border-color: var(--text);
  }

  .channel--primary:hover .channel__icon {
    border-color: var(--accent);
  }

  .channel:hover .channel__arrow {
    transform: rotate(0deg) translateX(4px);
    color: var(--text);
  }

  .footer-col a:hover {
    background-size: 100% 1px;
  }

  .socials a:hover {
    background-color: var(--text);
    border-color: var(--text);
    color: var(--bg);
  }

  .marquee:hover .marquee__track {
    animation-play-state: paused;
  }
}


/* ==========================================================================
   17. RIDUZIONE DEL MOVIMENTO — rispetta le impostazioni del dispositivo
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .page-curtain,
  .scroll-progress,
  .fab::after {
    display: none;
  }

  .timeline {
    --progress: 1 !important;
  }
}
