/* =========================================================
   SOFIA SIGNATURE NAILS - Foglio di stile
   Rosa cipria, oro rosa, lilla e fucsia (dal logo)
   ========================================================= */

:root {
  --cipria-chiaro: #fff6f8;
  --cipria: #fbe3e8;
  --rosa-logo: #f7d3da;
  --rosa-medio: #eeb2c0;
  --oro: #b9737c;
  --oro-chiaro: #d9a0a6;
  --oro-scuro: #8c4b55;
  --lilla: #b99ad8;
  --lilla-chiaro: #eadff6;
  --fucsia: #c2256f;
  --fucsia-scuro: #9d1a58;
  --fucsia-acceso: #e04f94;
  --testo: #4a2f36;
  --scuro: #2b1b20;
  --bianco: #ffffff;

  --font-titoli: "Cormorant Garamond", serif;
  --font-maiuscolo: "Cinzel", serif;
  --font-script: "Great Vibes", cursive;
  --font-testo: "Jost", sans-serif;

  --raggio: 24px;
  --ombra: 0 22px 50px rgba(140, 75, 85, 0.14);
  --altezza-navbar: 82px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--altezza-navbar);
}

body {
  font-family: var(--font-testo);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--testo);
  background-color: var(--cipria-chiaro);
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-titoli);
  font-weight: 500;
  line-height: 1.1;
  color: var(--scuro);
}

h2 {
  font-size: clamp(2.2rem, 4.8vw, 3.3rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

p + p {
  margin-top: 1rem;
}

strong {
  font-weight: 500;
  color: var(--oro-scuro);
}

.contenitore {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

.sezione {
  padding: 110px 0;
  position: relative;
}

/* ---------- Scritta corsiva ---------- */
.script {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--fucsia);
  margin-bottom: 0.3rem;
  text-transform: none;
  letter-spacing: 0;
}

.intestazione {
  text-align: center;
  margin-bottom: 60px;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-testo);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-fucsia {
  background: linear-gradient(135deg, var(--fucsia) 0%, var(--fucsia-acceso) 100%);
  color: var(--bianco);
  box-shadow: 0 12px 28px rgba(194, 37, 111, 0.35);
}

.btn-fucsia:hover {
  box-shadow: 0 16px 34px rgba(194, 37, 111, 0.5);
}

.btn-contorno {
  border: 1.5px solid var(--oro);
  color: var(--oro-scuro);
}

.btn-contorno:hover {
  background-color: var(--oro);
  color: var(--bianco);
}

.btn-bianco {
  background-color: var(--bianco);
  color: var(--fucsia);
  margin-top: 1.6rem;
}

.btn-bianco:hover {
  box-shadow: 0 14px 30px rgba(43, 27, 32, 0.2);
}

/* =========================================================
   DISEGNI: stelline e divisorio
   ========================================================= */
.cielo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.scintilla {
  position: absolute;
  fill: var(--oro-chiaro);
  animation: brilla 3.6s ease-in-out infinite;
}

.s1 { width: 26px; height: 26px; top: 18%; left: 6%; }
.s2 { width: 14px; height: 14px; top: 30%; left: 44%; fill: var(--fucsia-acceso); animation-delay: -0.8s; }
.s3 { width: 20px; height: 20px; top: 72%; left: 10%; fill: var(--lilla); animation-delay: -1.6s; }
.s4 { width: 12px; height: 12px; top: 14%; right: 38%; animation-delay: -2.2s; }
.s5 { width: 30px; height: 30px; bottom: 12%; right: 5%; fill: var(--lilla); animation-delay: -0.4s; }
.s6 { width: 16px; height: 16px; top: 52%; left: 48%; animation-delay: -2.8s; }
.s7 { width: 18px; height: 18px; top: 12%; right: 6%; fill: var(--fucsia-acceso); animation-delay: -1.2s; }

.bolla {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: fluttua 16s ease-in-out infinite;
}

.b1 {
  width: 420px;
  height: 420px;
  background-color: var(--lilla-chiaro);
  top: -120px;
  right: -60px;
  opacity: 0.9;
}

.b2 {
  width: 380px;
  height: 380px;
  background-color: var(--rosa-medio);
  bottom: -140px;
  left: -100px;
  opacity: 0.55;
  animation-delay: -7s;
}

.divisorio {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  background-color: var(--bianco);
}

.divisorio svg {
  width: 300px;
  height: auto;
}

.divisorio .tratto {
  fill: none;
  stroke: url(#oro-rosa);
  stroke-width: 1.3;
  stroke-linecap: round;
}

.divisorio .cuore {
  fill: url(#oro-rosa);
  animation: battito 2.4s ease-in-out infinite;
  transform-origin: 160px 22px;
}

/* =========================================================
   1. BARRA IN ALTO
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--altezza-navbar);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 246, 248, 0.95);
  box-shadow: 0 6px 22px rgba(140, 75, 85, 0.1);
  backdrop-filter: blur(10px);
}

.logo-vettoriale {
  width: 240px;
  height: auto;
  display: block;
  overflow: visible;
}

.logo-monogramma {
  font-family: var(--font-script);
  font-size: 62px;
  fill: url(#oro-rosa);
}

.logo-nome {
  font-family: var(--font-script);
  font-size: 30px;
  fill: url(#oro-rosa);
}

.logo-sottotitolo {
  font-family: var(--font-maiuscolo);
  font-size: 11px;
  letter-spacing: 4px;
  fill: var(--oro-scuro);
}

.logo-linea {
  stroke: url(#oro-rosa);
  stroke-width: 0.8;
}

.navbar-menu {
  display: flex;
  gap: 32px;
}

.navbar-menu a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--scuro);
  position: relative;
  padding: 4px 0;
}

.navbar-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--oro), var(--fucsia));
  transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
  width: 100%;
}

.btn-prenota-nav {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fucsia) 0%, var(--fucsia-acceso) 100%);
  color: var(--bianco);
  box-shadow: 0 8px 20px rgba(194, 37, 111, 0.3);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  background-color: var(--oro-scuro);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggle.aperto span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.aperto span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.aperto span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   2. APERTURA
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--altezza-navbar) + 30px) 0 80px;
  background: linear-gradient(160deg, var(--cipria-chiaro) 0%, var(--cipria) 50%, var(--rosa-logo) 100%);
}

.hero-contenitore {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-testo {
  text-align: center;
}

/* logo con la scritta che gira attorno */
.logo-anello {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 1.4rem;
}

.anello-testo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: gira 40s linear infinite;
}

.anello-testo text {
  font-family: var(--font-maiuscolo);
  font-size: 12.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  fill: var(--oro-scuro);
}

.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 196px;
  height: 196px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(140, 75, 85, 0.25), 0 0 0 6px rgba(255, 255, 255, 0.7);
}

.hero-sottotitolo {
  font-family: var(--font-maiuscolo);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--oro-scuro);
  margin-bottom: 0.6rem;
}

.hero-testo h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-testo h1 .script {
  font-size: clamp(3.6rem, 8vw, 5.6rem);
  margin-bottom: -0.2em;
}

.hero-luogo {
  margin-top: 1rem !important;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--testo);
}

.hero-luogo span {
  color: var(--fucsia);
}

.hero-bottoni {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 2rem;
}

/* video in una cornice ad arco */
.hero-video-cornice {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  border-radius: 220px 220px var(--raggio) var(--raggio);
  border: 8px solid var(--bianco);
  box-shadow: 0 30px 60px rgba(140, 75, 85, 0.25);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 212px 212px 16px 16px;
}

.cornice-stella {
  position: absolute;
  fill: url(#oro-rosa);
  animation: brilla 3s ease-in-out infinite;
}

.c1 {
  width: 44px;
  height: 44px;
  top: 8%;
  left: -26px;
}

.c2 {
  width: 28px;
  height: 28px;
  bottom: 14%;
  right: -18px;
  animation-delay: -1.5s;
}

/* =========================================================
   3. SERVIZI
   ========================================================= */
.servizi {
  background-color: var(--bianco);
}

.servizi-griglia {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.servizio-card {
  position: relative;
  text-align: center;
  padding: 44px 26px 36px;
  border-radius: var(--raggio);
  background: linear-gradient(180deg, var(--cipria-chiaro) 0%, var(--bianco) 100%);
  border: 1px solid var(--rosa-logo);
  box-shadow: var(--ombra);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* riflesso che passa sulla scheda */
.servizio-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
}

.servizio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px rgba(194, 37, 111, 0.18);
}

.servizio-card:hover::after {
  left: 130%;
}

.servizio-icona {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  fill: none;
  stroke: url(#oro-rosa);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.servizio-icona .riflesso {
  stroke-width: 1.2;
  opacity: 0.7;
}

.servizio-icona .pieno {
  fill: var(--fucsia-acceso);
  stroke: none;
}

.servizio-card p {
  font-size: 0.97rem;
}

/* =========================================================
   4. I MIEI LAVORI
   ========================================================= */
.lavori {
  background: linear-gradient(180deg, var(--cipria) 0%, var(--cipria-chiaro) 100%);
}

.lavori-griglia {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  grid-template-rows: auto auto;
  gap: 26px;
  max-width: 980px;
  margin: 0 auto;
}

.lavoro {
  position: relative;
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra);
  border: 6px solid var(--bianco);
}

.lavoro-alto {
  grid-row: span 2;
}

.lavoro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.lavoro:hover img {
  transform: scale(1.05);
}

.lavoro figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 16px;
  font-family: var(--font-titoli);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--bianco);
  background: linear-gradient(to top, rgba(43, 27, 32, 0.65), transparent);
}

/* scheda disegnata */
.lavoro-arte {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 30px;
  min-height: 280px;
  background: linear-gradient(135deg, var(--lilla) 0%, var(--fucsia-acceso) 55%, var(--rosa-medio) 100%);
  color: var(--bianco);
}

.lavoro-arte .script {
  color: var(--bianco);
}

.arte-titolo {
  font-family: var(--font-titoli);
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
}

.arte-testo {
  max-width: 340px;
  margin-top: 0.8rem !important;
}

.scintilla-card {
  position: absolute;
  fill: var(--bianco);
  opacity: 0.85;
  animation: brilla 3.2s ease-in-out infinite;
}

.a1 { width: 30px; height: 30px; top: 16%; left: 10%; }
.a2 { width: 18px; height: 18px; top: 22%; right: 12%; animation-delay: -1s; }
.a3 { width: 22px; height: 22px; bottom: 14%; right: 18%; animation-delay: -2s; }

/* =========================================================
   5. CHI SONO
   ========================================================= */
.due-colonne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.chi-sono {
  background-color: var(--bianco);
}

.chi-sono-foto {
  position: relative;
  padding-bottom: 60px;
}

.chi-sono-foto::before {
  content: "";
  position: absolute;
  top: -24px;
  left: -24px;
  width: 70%;
  height: 70%;
  border-radius: var(--raggio);
  background: linear-gradient(135deg, var(--rosa-logo), var(--lilla-chiaro));
  z-index: 0;
}

.foto-grande {
  position: relative;
  z-index: 1;
  width: 82%;
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
}

.foto-piccola {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 46%;
  border-radius: var(--raggio);
  border: 6px solid var(--bianco);
  box-shadow: var(--ombra);
}

.chi-sono-stella {
  position: absolute;
  z-index: 3;
  width: 40px;
  height: 40px;
  top: 6%;
  right: 8%;
  fill: url(#oro-rosa);
  animation: brilla 3.4s ease-in-out infinite;
}

.citazione {
  font-family: var(--font-titoli);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--oro-scuro);
  padding-left: 20px;
  border-left: 3px solid var(--oro-chiaro);
  margin-bottom: 1.4rem;
}

.link-ig {
  display: inline-block;
  margin-top: 1.2rem;
  font-weight: 400;
  color: var(--fucsia);
  border-bottom: 1px solid var(--rosa-medio);
  transition: border-color 0.25s ease;
}

.link-ig:hover {
  border-color: var(--fucsia);
}

/* =========================================================
   6. PRENOTA
   ========================================================= */
.prenota {
  background: linear-gradient(135deg, var(--fucsia) 0%, var(--fucsia-acceso) 45%, var(--lilla) 100%);
  color: var(--bianco);
  text-align: center;
  overflow: hidden;
}

.prenota .scintilla {
  fill: rgba(255, 255, 255, 0.85);
}

.p1 { width: 28px; height: 28px; top: 20%; left: 12%; }
.p2 { width: 16px; height: 16px; top: 60%; left: 22%; animation-delay: -1.2s; }
.p3 { width: 24px; height: 24px; top: 26%; right: 14%; animation-delay: -2s; }
.p4 { width: 14px; height: 14px; bottom: 18%; right: 26%; animation-delay: -0.6s; }

.prenota-box {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.prenota h2 {
  color: var(--bianco);
}

.prenota .script {
  color: var(--cipria);
}

.prenota-luogo {
  margin-top: 1.6rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

/* =========================================================
   7. FOOTER
   ========================================================= */
.footer {
  background-color: var(--scuro);
  color: var(--cipria);
  text-align: center;
  padding: 56px 24px 40px;
  font-size: 0.95rem;
}

.footer-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
}

.footer p + p {
  margin-top: 0.4rem;
}

.footer-ig {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legale {
  margin-top: 1.4rem !important;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* =========================================================
   ANIMAZIONI
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .reveal.visibile {
  opacity: 1;
  transform: translateY(0);
}

@keyframes brilla {
  0%, 100% { opacity: 0.25; transform: scale(0.6) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(25deg); }
}

@keyframes gira {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes battito {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes fluttua {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .servizi-griglia {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .navbar {
    padding: 0 18px;
  }

  .navbar-toggle {
    display: flex;
    order: 3;
  }

  .navbar-menu {
    position: fixed;
    top: var(--altezza-navbar);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background-color: var(--cipria-chiaro);
    box-shadow: 0 12px 25px rgba(140, 75, 85, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .navbar-menu.aperto {
    max-height: 340px;
  }

  .navbar-menu a {
    width: 100%;
    text-align: center;
    padding: 16px 0;
    font-size: 0.95rem;
  }

  .navbar-menu a::after {
    display: none;
  }

  .btn-prenota-nav {
    margin-left: auto;
  }

  .hero-contenitore {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-video-cornice {
    max-width: 320px;
  }

  .due-colonne {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .chi-sono-foto {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }

  .chi-sono-testo {
    text-align: center;
  }

  .citazione {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --altezza-navbar: 70px;
  }

  body {
    font-size: 1.02rem;
  }

  .sezione {
    padding: 80px 0;
  }

  .logo-vettoriale {
    width: 170px;
  }

  .btn-prenota-nav {
    padding: 9px 16px;
    font-size: 0.72rem;
  }

  .logo-anello {
    width: 230px;
    height: 230px;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .servizi-griglia {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .lavori-griglia {
    grid-template-columns: 1fr;
  }

  .lavoro-alto {
    grid-row: auto;
  }

  .c1 {
    left: -14px;
    width: 32px;
    height: 32px;
  }

  .c2 {
    right: -10px;
  }

  .b1 {
    width: 280px;
    height: 280px;
  }

  .b2 {
    width: 260px;
    height: 260px;
  }
}