/* ============================================
   Bahia Wellness Suite × TecnoFerrari
   Landing Page — style.css
   ============================================ */

/* --- Font brand: Arsenal (titoli) + Jost (testi/label) --- */
@import url('https://fonts.googleapis.com/css2?family=Arsenal:ital,wght@0,400;0,700;1,400&family=Jost:wght@300;400;500;600;700&display=swap');

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

:root {
  --beige:  #EFE4DC;
  --oro:    #B69A6E;
  --nero:   #0E0E0E;
  --testo:  #2B2520;
  --bianco: #FFFFFF;
  --wa:     #25D366;
  --font-titolo: 'Arsenal', 'Georgia', serif;
  --font-testo:  'Jost', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-testo);
  color: var(--testo);
  background: var(--bianco);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Testi & label: Jost */
p, input, textarea, select, label, small, .sans {
  font-family: var(--font-testo);
}

/* Titoli: Arsenal — peso 400, leggera spaziatura, nero */
h1, h2, h3, .serif {
  font-family: var(--font-titolo);
  font-weight: 400;
  letter-spacing: .05em;
  color: #000;
  line-height: 1.2em;
  word-wrap: break-word;
}

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

a { color: inherit; }

/* --- Bottone oro --- */
.btn-oro {
  display: inline-block;
  background: var(--oro);
  color: var(--bianco);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-oro:hover {
  background: #9e8460;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(182, 154, 110, 0.4);
}

/* ============================================
   1. HERO
   ============================================ */
.hero {
  width: 100%;
  padding: 0;
}
.hero__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stripe beige sotto hero */
.hero__stripe {
  background: var(--beige);
  padding: 44px 24px;
  text-align: center;
}
.hero__stripe p {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--testo);
}

/* ============================================
   2. CONVENZIONE
   ============================================ */
.convenzione {
  padding: 70px 24px;
  text-align: center;
  background: var(--bianco);
}
.suptitle {
  font-family: var(--font-testo);
  font-size: 13px;
  font-weight: 500;
  line-height: 2em;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 14px;
}
.convenzione h2 {
  font-size: clamp(30px, 5.5vw, 45px);
  color: #000;
  margin-bottom: 20px;
}
.convenzione-loghi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 700px;
  margin: 28px auto 32px;
  flex-wrap: wrap;
}
.conv-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
/* Fade-in in sequenza quando la riga loghi entra in vista */
.convenzione-loghi.is-visible .conv-logo { opacity: 1; transform: none; }
.convenzione-loghi.is-visible .conv-logo:nth-child(1) { transition-delay: 0.10s; }
.convenzione-loghi.is-visible .conv-logo:nth-child(2) { transition-delay: 0.30s; }
.conv-logo img {
  width: 300px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.conv-logo:hover img { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  .conv-logo { opacity: 1; transform: none; transition: none; }
  .conv-logo img { transition: none; }
}

.convenzione .intro-text {
  max-width: 580px;
  margin: 0 auto 44px;
  font-family: 'Jost', sans-serif;
  font-size: 19px;
  line-height: 1.42em;
  font-weight: 300;
  color: #000;
}
.cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}
.card {
  flex: 1 1 280px;
  background: var(--beige);
  padding: 36px 28px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(43, 37, 32, 0.12);
  border-color: var(--oro);
}
.card .card-icon {
  font-size: 36px;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}
.card:hover .card-icon { transform: scale(1.12); }
.card p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--testo);
}

/* ============================================
   3. SERVIZI
   ============================================ */
.servizi {
  background: var(--testo);
  padding: 70px 24px;
  text-align: center;
}
.servizi h2 {
  font-size: clamp(22px, 4.5vw, 34px);
  font-weight: normal;
  color: var(--beige);
  margin-bottom: 48px;
}
.servizi-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.servizio-item {
  flex: 1 1 180px;
  max-width: 220px;
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
/* Entrata in sequenza (stagger) quando la sezione è in vista */
.servizi.is-visible .servizio-item { opacity: 1; transform: none; }
.servizi.is-visible .servizio-item:nth-child(1) { transition-delay: 0.05s; }
.servizi.is-visible .servizio-item:nth-child(2) { transition-delay: 0.20s; }
.servizi.is-visible .servizio-item:nth-child(3) { transition-delay: 0.35s; }

.servizio-item .serv-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--oro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--bianco);
  margin: 0 auto 16px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
/* Hover: il cerchio si riempie d'oro, si solleva e brilla */
.servizio-item:hover .serv-icon {
  background: var(--oro);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 22px rgba(182, 154, 110, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .servizio-item { opacity: 1; transform: none; transition: none; }
  .servizio-item .serv-icon { transition: none; }
}
.servizio-item h3 {
  font-size: 17px;
  font-weight: normal;
  color: var(--bianco);
  letter-spacing: 0.5px;
}

/* ============================================
   4. QUOTE ANNALISA
   ============================================ */
.quote-section {
  background: var(--beige);
  padding: 70px 24px;
}
.quote-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}
.quote-photo {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
}
.quote-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Slider a dissolvenza dentro il cerchio */
.quote-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.quote-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.quote-slider img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .quote-slider img { transition: none; }
}
.quote-body { flex: 1; }
.quote-mark {
  font-size: 64px;
  line-height: 0.6;
  color: var(--oro);
  font-family: Georgia, serif;
  margin-bottom: 10px;
  display: block;
}
.quote-body blockquote {
  font-size: 17px;
  line-height: 1.75;
  font-style: italic;
  color: var(--testo);
  margin-bottom: 18px;
}
.quote-firma {
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.quote-firma strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--testo);
}
.quote-firma span {
  font-size: 12px;
  color: #7a6e68;
  letter-spacing: 0.5px;
}

/* Mobile: colonna */
@media (max-width: 640px) {
  .quote-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .quote-mark { display: none; }
}

/* ============================================
   4b. CONTATTO RAPIDO WHATSAPP
   ============================================ */
.contatto-rapido {
  background: var(--bianco);
  padding: 64px 24px 8px;
  text-align: center;
}
.contatto-rapido h2 {
  font-size: clamp(24px, 4.5vw, 34px);
  margin-bottom: 12px;
}
.contatto-rapido .cr-sub {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 15px;
  color: #7a6e68;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--wa);
  color: #fff;
  font-family: var(--font-testo);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 50px;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
}
.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
}
.btn-whatsapp svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }

/* ============================================
   5. FORM PRENOTAZIONE
   ============================================ */
.form-section {
  background: var(--bianco);
  padding: 70px 24px 80px;
  text-align: center;
}
.form-section h2 {
  font-size: clamp(28px, 5.5vw, 45px);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
/* Sottolineatura oro che si "disegna" */
.form-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 0;
  height: 2px;
  background: var(--oro);
  transform: translateX(-50%);
  transition: width 0.7s ease 0.45s;
}
.form-section h2.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.form-section h2.is-visible::after { width: 80px; }

/* Se l'utente preferisce ridurre le animazioni, mostra subito senza moto */
@media (prefers-reduced-motion: reduce) {
  .form-section h2 { opacity: 1; transform: none; transition: none; }
  .form-section h2::after { transition: none; }
}
.form-section .form-sub {
  font-size: 15px;
  color: #7a6e68;
  margin-bottom: 40px;
}
.form-wrap {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7a6e68;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid #d0c8c0;
  background: #faf8f5;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--testo);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--oro);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* Honeypot nascosto */
.hp-field { display: none !important; visibility: hidden !important; }

.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 13px;
  color: #7a6e68;
  line-height: 1.5;
}
.privacy-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--oro);
  cursor: pointer;
}
.privacy-row a { color: var(--oro); text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: 18px;
  font-size: 13px;
  letter-spacing: 2.5px;
}

.form-message {
  margin-top: 20px;
  padding: 16px 20px;
  font-size: 14px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  display: none;
}
.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 3px solid #43a047;
  display: block;
}
.form-message.error {
  background: #fce4e4;
  color: #b71c1c;
  border-left: 3px solid #e53935;
  display: block;
}

@media (max-width: 560px) {
  .form-row { flex-direction: column; gap: 0; }
  .form-group { margin-bottom: 18px; }
}

/* ============================================
   6. DOVE CI TROVI
   ============================================ */
.dove {
  background: var(--beige);
  padding: 60px 24px;
  text-align: center;
}
.dove h2 {
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 28px;
  color: var(--testo);
}
.dove-info {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 2;
  color: var(--testo);
}
.dove-info a {
  color: var(--oro);
  text-decoration: none;
}
.dove-info a:hover { text-decoration: underline; }
/* Link mappa: stesso colore del testo */
.dove-info a.map-link { color: inherit; }
.dove-info a.map-link:hover { text-decoration: underline; }

/* ============================================
   7. FOOTER
   ============================================ */
footer {
  background: var(--nero);
  color: var(--bianco);
  padding: 56px 24px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 40px;
}
.footer-col { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; line-height: 1.9; }
.footer-col .footer-logo { max-width: 140px; margin-bottom: 10px; }
.footer-col .tagline { font-size: 11px; letter-spacing: 1px; color: #888; text-transform: uppercase; }
.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 12px;
}
.footer-col a { color: #aaa; text-decoration: none; display: block; }
.footer-col a:hover { color: var(--bianco); }
.footer-col address { font-style: normal; color: #aaa; }

.footer-copy {
  border-top: 1px solid #222;
  padding-top: 20px;
  text-align: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  color: #555;
  letter-spacing: 0.5px;
  max-width: 1000px;
  margin: 0 auto;
}

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

/* ============================================
   8. STICKY CTA MOBILE
   ============================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.sticky-cta a {
  display: block;
  background: var(--oro);
  color: var(--bianco);
  text-align: center;
  padding: 18px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
}
@media (max-width: 1024px) {
  .sticky-cta { display: block; }
}

/* ============================================
   9. FLOATING WHATSAPP
   ============================================ */
.whatsapp-floating {
  position: fixed;
  right: 18px;
  bottom: 82px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  z-index: 9999;
  transition: transform 0.2s ease;
}
.whatsapp-floating:hover { transform: translateY(-2px); }
.whatsapp-floating svg { width: 30px; height: 30px; fill: #fff; }

@media (max-width: 1024px) {
  .whatsapp-floating { bottom: 86px; right: 14px; }
}
/* Su desktop: torna in basso a destra senza sticky */
@media (min-width: 1025px) {
  .whatsapp-floating { bottom: 28px; }
}
