/* ============================================
   ANURA - armonia di corpo e mente
   Design tokens
   ============================================ */
:root {
  --terracotta: #E1885D;
  --terracotta-dark: #C36B42;
  --giallo: #FDCE6E;
  --giallo-chiaro: #FEE7B8;
  --bianco: #FFFFFF;
  --crema: #FFF8EF;
  --testo: #4A342A;
  --testo-soft: #7A6355;

  --font-display: 'Baloo 2', 'Quicksand', sans-serif;
  --font-body: 'Nunito Sans', 'Work Sans', sans-serif;
  --font-script: 'Caveat', cursive;

  --radius-lg: 40px;
  --radius-md: 20px;
  --max-width: 1120px;
}

@font-face {
  font-family: 'Baloo 2';
  src: local('Baloo 2');
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--testo);
  background: var(--bianco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--giallo-chiaro);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: block;
  text-decoration: none;
}

.logo svg,
.logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.logo-short {
  display: none;
  height: 30px;
}

.logo .logo-short {
  display: none;
}

.site-header.is-scrolled .logo .logo-short {
  display: block;
}

/* Header che si restringe allo scroll: passa dal logo lungo al monogramma */
.site-header .wrap {
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .wrap {
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header.is-scrolled .logo-full { display: none; }

.nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--testo);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--terracotta);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bianco);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid var(--giallo-chiaro);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--giallo-chiaro); }
}

/* ============================================
   HERO (con arco decorativo, richiama la locandina)
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--giallo-chiaro);
  padding: 72px 0 96px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.14;
}

/* Watermark: il monogramma "nu" gigante che sbircia dal bordo della sezione */
.logo-watermark {
  content: "";
  position: absolute;
  pointer-events: none;
  background: url('../img/logo-corto.svg') center / contain no-repeat;
}

.hero .logo-watermark {
  left: -140px;
  bottom: -200px;
  width: 560px;
  height: 560px;
  opacity: 0.07;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--terracotta-dark);
  margin: 0 0 4px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--testo);
}

.hero h1 em {
  font-style: normal;
  color: var(--terracotta);
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--testo-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--terracotta);
}

.hero-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--terracotta);
  color: var(--bianco);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}

.btn-outline:hover { background: var(--terracotta); color: var(--bianco); }

/* ============================================
   SEZIONI GENERICHE
   ============================================ */
.section { padding: 88px 0; }
.section.alt { background: var(--crema); }

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}

.section-head .kicker {
  font-family: var(--font-script);
  color: var(--terracotta);
  font-size: 1.3rem;
  margin: 0 0 2px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0;
  color: var(--testo);
}

.section-head p {
  color: var(--testo-soft);
  margin-top: 12px;
}

/* ============================================
   BOX TRATTAMENTI
   ============================================ */
.trattamenti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.trattamento-box {
  background: var(--bianco);
  border: 1px solid var(--giallo-chiaro);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.trattamento-box .icona {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--giallo-chiaro);
  margin-bottom: 18px;
  position: relative;
}

.trattamento-box .icona::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  background-color: var(--terracotta);
  -webkit-mask: url('../img/logo-corto.svg') center / contain no-repeat;
  mask: url('../img/logo-corto.svg') center / contain no-repeat;
}

.trattamento-box h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--terracotta-dark);
}

.trattamento-box p {
  margin: 0;
  color: var(--testo-soft);
  font-size: 0.98rem;
}

/* ============================================
   PRENOTAZIONE (Home)
   ============================================ */
.prenota {
  background: var(--terracotta);
  color: var(--bianco);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.prenota-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prenota .logo-watermark {
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  opacity: 0.1;
  filter: brightness(0) invert(1);
}

.prenota h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 14px;
}

.prenota p { color: var(--giallo-chiaro); margin: 0 0 22px; }

.calendar-embed {
  position: relative;
  background: var(--bianco);
  border-radius: var(--radius-md);
  height: 650px;
  overflow: hidden;
}

.calendar-embed iframe {
  position: absolute;
  top: -235px;
  left: 0;
  width: 100%;
  height: calc(100% + 235px);
  border: none;
}

/* Box "Dove si svolgono le visite" dentro al riquadro di prenotazione */
.dove-visite {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 22px 0;
}

.dove-visite-titolo {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--bianco);
  font-size: 0.95rem;
}

.dove-visite ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.dove-visite li {
  color: var(--giallo-chiaro);
  font-size: 0.92rem;
  line-height: 1.5;
}

.dove-visite li strong {
  color: var(--bianco);
  font-weight: 700;
}

.dove-visite .giorno {
  display: inline-block;
  background: var(--bianco);
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 8px;
}

@media (max-width: 860px) {
  .prenota { grid-template-columns: 1fr; padding: 36px 24px; }
}

/* ============================================
   RECENSIONI
   ============================================ */
.recensioni-embed {
  min-height: 140px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--terracotta);
  color: var(--giallo-chiaro);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--bianco);
}

.site-footer p, .site-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.site-footer a:hover { color: var(--giallo); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PAGINA CHI SIAMO
   ============================================ */
.bio-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .bio-layout { grid-template-columns: 1fr; }
}

.valori-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.valori-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.valori-list .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
  margin-top: 8px;
  flex-shrink: 0;
}

.valori-list strong {
  display: block;
  color: var(--terracotta-dark);
  font-family: var(--font-display);
  margin-bottom: 4px;
}

/* ============================================
   CONSENSO COOKIE - blocchi placeholder
   (calendar-embed e recensioni-embed diventano
   "clicca per attivare" finché non c'è consenso)
   ============================================ */
[data-consent-service] {
  position: relative;
}

[data-consent-service] .consent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 28px;
  background: var(--crema);
  border-radius: inherit;
  z-index: 2;
}

[data-consent-service] .consent-overlay p {
  margin: 0;
  color: var(--testo-soft);
  max-width: 40ch;
  font-size: 0.95rem;
}

[data-consent-service].consent-active .consent-overlay {
  display: none;
}

.recensioni-embed[data-consent-service] .consent-overlay {
  position: static;
  background: transparent;
  padding: 40px 0;
}
