/* =========================================================
   LASH ROOM - Foglio di stile
   Rosa cipria, fucsia e nero
   ========================================================= */

:root {
  --rosa-chiaro: #fdf2f5;
  --rosa-cipria: #fbe4eb;
  --rosa: #f5c6d4;
  --rosa-medio: #ec9bb5;
  --fucsia: #c2185b;
  --fucsia-scuro: #9c1149;
  --fucsia-acceso: #e0307a;
  --nero: #1e1418;
  --testo: #3b2a30;
  --bianco: #ffffff;

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

  --raggio: 22px;
  --ombra: 0 20px 45px rgba(194, 24, 91, 0.14);
  --altezza-navbar: 78px;
}

/* ---------- 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(--rosa-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(--nero);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1.2rem;
}

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

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

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

.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.8rem, 3.5vw, 2.4rem);
  line-height: 1;
  color: var(--fucsia);
  margin-bottom: 0.4rem;
  text-transform: none;
  letter-spacing: 0;
}

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

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-testo);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  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-color: var(--fucsia);
  color: var(--bianco);
  box-shadow: 0 12px 28px rgba(194, 24, 91, 0.35);
}

.btn-fucsia:hover {
  background-color: var(--fucsia-scuro);
  box-shadow: 0 16px 32px rgba(194, 24, 91, 0.45);
}

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

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

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

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

/* =========================================================
   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(253, 242, 245, 0.95);
  box-shadow: 0 6px 22px rgba(194, 24, 91, 0.1);
  backdrop-filter: blur(10px);
}

.navbar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.logo-script {
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--fucsia);
}

.logo-nome {
  font-family: var(--font-titoli);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nero);
}

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

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

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

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

.btn-prenota-nav {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 999px;
  background-color: var(--fucsia);
  color: var(--bianco);
  transition: background-color 0.25s ease;
}

.btn-prenota-nav:hover {
  background-color: var(--fucsia-scuro);
}

.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(--nero);
  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) + 40px) 0 90px;
  background: linear-gradient(160deg, var(--rosa-chiaro) 0%, var(--rosa-cipria) 55%, var(--rosa) 100%);
}

/* bolle colorate sfocate sullo sfondo */
.hero-sfondo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.bolla-1 {
  width: 420px;
  height: 420px;
  background-color: var(--rosa-medio);
  top: -120px;
  left: -100px;
}

.bolla-2 {
  width: 360px;
  height: 360px;
  background-color: var(--fucsia-acceso);
  opacity: 0.28;
  bottom: -80px;
  right: 10%;
  animation-delay: -5s;
}

.bolla-3 {
  width: 260px;
  height: 260px;
  background-color: var(--rosa);
  top: 30%;
  left: 40%;
  animation-delay: -9s;
}

.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 h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero-testo .script {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

.hero-sottotitolo {
  font-family: var(--font-titoli);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--nero);
}

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

.hero-bottoni {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2.2rem;
}

/* cornice ad arco per il video */
.hero-video-cornice {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3 / 4;
  border-radius: 220px 220px var(--raggio) var(--raggio);
  overflow: hidden;
  border: 8px solid var(--bianco);
  box-shadow: 0 30px 60px rgba(194, 24, 91, 0.25);
}

.hero-video-cornice::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(194, 24, 91, 0.15);
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 44px;
  border: 1.5px solid var(--nero);
  border-radius: 20px;
}

.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background-color: var(--fucsia);
  animation: rotella 1.8s ease-in-out infinite;
}

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

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

.servizio-card {
  background-color: var(--rosa-chiaro);
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.servizio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(194, 24, 91, 0.22);
}

/* foto alte: il prima/dopo si vede intero con le scritte */
.servizio-foto {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-color: var(--rosa-cipria);
}

.servizio-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.servizio-card:hover .servizio-foto img {
  transform: scale(1.05);
}

.servizio-testo {
  padding: 24px 22px 28px;
  border-top: 4px solid var(--fucsia);
}

.servizio-testo h3 {
  font-size: 1.3rem;
}

.servizio-testo p {
  font-size: 0.98rem;
}

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

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

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

.lavoro-foto img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.lavoro-foto:hover img {
  transform: scale(1.06);
}

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

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

.chi-sono-foto {
  position: relative;
}

.chi-sono-foto::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: var(--raggio);
  background-color: var(--rosa);
  z-index: 0;
}

.chi-sono-foto img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
}

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

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

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

/* =========================================================
   6. REGOLAMENTO
   ========================================================= */
.regolamento {
  background-color: var(--rosa-cipria);
}

.regolamento-box {
  max-width: 760px;
  text-align: center;
  padding: 60px 44px;
  border-radius: var(--raggio);
  background-color: var(--bianco);
  box-shadow: var(--ombra);
  border: 1px solid var(--rosa);
}

.regolamento-evidenza {
  font-weight: 400;
  color: var(--nero);
  background-color: var(--rosa-chiaro);
  border-radius: 14px;
  padding: 18px 20px;
}

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

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

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

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

.prenota-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2rem;
}

.prenota-social a {
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 4px;
}

.prenota-social a:hover {
  text-decoration-color: var(--bianco);
}

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

/* =========================================================
   8. FOOTER
   ========================================================= */
.footer {
  background-color: var(--nero);
  color: var(--rosa-cipria);
  text-align: center;
  padding: 56px 24px 40px;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer .logo-script {
  color: var(--rosa-medio);
  font-size: 1.4rem;
}

.footer-nome {
  font-family: var(--font-titoli);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bianco);
  margin-bottom: 0.8rem;
}

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

.footer-social a {
  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 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); }
}

@keyframes rotella {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

@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);
  }

  .lavori-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(--rosa-chiaro);
    box-shadow: 0 12px 25px rgba(194, 24, 91, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

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

  .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: 44px;
    text-align: center;
  }

  .hero-bottoni {
    justify-content: center;
  }

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

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

  .chi-sono-foto {
    max-width: 440px;
    margin: 0 auto;
  }

  .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-script {
    font-size: 1rem;
  }

  .logo-nome {
    font-size: 1.25rem;
  }

  .btn-prenota-nav {
    padding: 9px 18px;
    font-size: 0.75rem;
  }

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

  .lavori-griglia {
    gap: 12px;
  }

  .lavoro-foto {
    border-width: 4px;
  }

  .chi-sono-foto::before {
    inset: 14px -14px -14px 14px;
  }

  .regolamento-box {
    padding: 44px 24px;
  }

  .bolla-1 {
    width: 280px;
    height: 280px;
  }

  .bolla-2 {
    width: 240px;
    height: 240px;
  }
}