/*
Theme Name: DeaMadre
Theme URI: https://deamadre.it
Author: DeaMadre Centro Estetico
Author URI: https://deamadre.it
Description: Tema one-page elegante per DeaMadre Centro Estetico Selargius. Design lussuoso con tonalità terracotta, cipria e oro.
Version: 2.5.0
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 7.4
License: Private
Text Domain: deamadre
Tags: one-page, beauty, wellness, responsive, custom-colors
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --color-primary:    #C08B6E;   /* terracotta dorato */
  --color-secondary:  #E8D5C4;   /* cipria chiaro */
  --color-accent:     #8B5E52;   /* mogano profondo */
  --color-gold:       #BFA07A;   /* oro antico */
  --color-dark:       #2C1A14;   /* marrone notte */
  --color-light:      #FAF6F2;   /* bianco crema */
  --color-white:      #FFFFFF;
  --color-text:       #3D2B23;
  --color-muted:      #9E8070;

  --font-display:     'Cormorant Garamond', Georgia, serif;
  --font-body:        'Raleway', 'Helvetica Neue', sans-serif;

  --spacing-xs:   0.5rem;
  --spacing-sm:   1rem;
  --spacing-md:   2rem;
  --spacing-lg:   4rem;
  --spacing-xl:   7rem;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 30px;
  --radius-full: 999px;

  --shadow-soft: 0 8px 40px rgba(44, 26, 20, 0.10);
  --shadow-card: 0 4px 24px rgba(44, 26, 20, 0.08);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p { font-size: 1rem; color: var(--color-muted); max-width: 68ch; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  display: block;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  width: 90%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: var(--spacing-xl) 0;
}

.section--alt {
  background: var(--color-secondary);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-light);
}

.section--dark h2,
.section--dark h3 { color: var(--color-secondary); }
.section--dark p   { color: rgba(232, 213, 196, 0.75); }
.section--dark .section-label { color: var(--color-gold); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 139, 110, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}
.btn-light:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 1.4rem 0;
}

.site-header.scrolled {
  background: rgba(250, 246, 242, 0.97);
  box-shadow: 0 2px 20px rgba(44, 26, 20, 0.08);
  padding: 0.9rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--color-white);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.site-header.scrolled .site-logo { color: var(--color-dark); }

.site-nav ul {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  transition: color var(--transition);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.site-nav a:hover::after,
.site-nav a.active::after { width: 100%; }

.site-header.scrolled .site-nav a { color: var(--color-text); }

.nav-cta {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.site-header.scrolled .menu-toggle span { background: var(--color-dark); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

/* Slider container */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
}

/* Gradient overlay sopra le slide */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(44,26,20,0.78) 0%, rgba(139,94,82,0.45) 60%, rgba(192,139,110,0.25) 100%);
  pointer-events: none;
}

/* Dots di navigazione */
.hero-dots {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  border-color: rgba(255,255,255,0.8);
}

.hero-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  transform: scale(1.2);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  animation: float 10s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: var(--color-primary);
  top: -200px; right: -150px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: var(--color-gold);
  bottom: -100px; left: -100px;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.6;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-secondary);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(232, 213, 196, 0.80);
  margin: 0 auto 2.4rem;
  max-width: 55ch;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-sub p {
  margin: 0 0 0.5rem;
  color: inherit;
  font-size: inherit;
  max-width: none;
}

/* Richtext output — contenuti dall'editor visuale */
.richtext p {
  margin-bottom: 1rem;
}

.richtext p:last-child {
  margin-bottom: 0;
}

.richtext strong, .richtext b {
  font-weight: 700;
  color: var(--color-text);
}

.richtext em, .richtext i {
  font-style: italic;
}

.richtext ul, .richtext ol {
  margin: 0.8rem 0;
  padding-left: 1.4rem;
}

.richtext li {
  margin-bottom: 0.3rem;
}

.footer-richtext p {
  color: rgba(232, 213, 196, 0.65);
  font-size: 0.88rem;
  max-width: none;
}

.section--dark .richtext strong,
.section--dark .richtext b {
  color: var(--color-secondary);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll svg { width: 22px; height: 22px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   INTRO / ABOUT
   ============================================= */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.about-img-accent {
  position: absolute;
  width: 55%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  bottom: -2rem;
  right: -2rem;
  border: 6px solid var(--color-light);
  box-shadow: var(--shadow-soft);
}

.about-badge {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 110px;
  height: 110px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 8px 32px rgba(192,139,110,0.4);
}

.about-badge strong { font-size: 1.8rem; font-family: var(--font-display); line-height: 1; }
.about-badge span   { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }

.about-text h2 { margin-bottom: 1.2rem; }
.about-text p  { margin-bottom: 1.4rem; line-height: 1.8; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.value-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.value-item h4 { font-size: 0.95rem; margin-bottom: 0.2rem; font-family: var(--font-body); font-weight: 700; }
.value-item p  { font-size: 0.82rem; margin: 0; }

/* =============================================
   SERVIZI
   ============================================= */
.servizi-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.servizi-header p { margin: 1rem auto 0; }

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.servizio-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.servizio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.servizio-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.servizio-img-wrap { overflow: hidden; }

.servizio-body {
  padding: 1.5rem;
}

.servizio-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  margin-top: -3rem;
  position: relative;
  box-shadow: 0 4px 16px rgba(192,139,110,0.35);
  color: white;
}

.servizio-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.servizio-body p {
  font-size: 0.88rem;
  margin: 0 0 1.2rem;
  line-height: 1.6;
}

.servizio-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}

.servizio-link:hover { gap: 0.8rem; }

/* =============================================
   PERCHÉ NOI (USP strip)
   ============================================= */
.usp-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  padding: 4rem 0;
  color: var(--color-white);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.usp-item {}

.usp-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.3rem;
}

.usp-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

/* =============================================
   TRATTAMENTI FEATURED
   ============================================= */
.trattamenti-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.trattamento-visual {
  position: relative;
  min-height: 500px;
}

.trattamento-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.trattamento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,26,20,0.7) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.trattamento-overlay blockquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-secondary);
  font-style: italic;
  line-height: 1.4;
  border-left: 3px solid var(--color-gold);
  padding-left: 1rem;
}

.trattamento-list {
  background: var(--color-white);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trattamento-list h2 { margin-bottom: 0.6rem; }
.trattamento-list > p { margin-bottom: 2rem; }

.trattamento-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-secondary);
  transition: padding-left var(--transition);
}

.trattamento-item:hover { padding-left: 0.5rem; }
.trattamento-item:last-child { border-bottom: none; }

.tratt-icon {
  width: 44px;
  height: 44px;
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--transition);
}

.trattamento-item:hover .tratt-icon {
  background: var(--color-primary);
}

.tratt-info h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.tratt-info p {
  font-size: 0.82rem;
  margin: 0;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-section { padding: var(--spacing-xl) 0; }

.gallery-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; height: 420px; }
.gallery-item:nth-child(2),
.gallery-item:nth-child(3) { height: 200px; }
.gallery-item:nth-child(4),
.gallery-item:nth-child(5) { height: 200px; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,26,20,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-overlay { background: rgba(44,26,20,0.35); }

.gallery-overlay svg {
  color: white;
  opacity: 0;
  transform: scale(0.7);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* =============================================
   RECENSIONI
   ============================================= */
.recensioni-track {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.recensione-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232,213,196,0.12);
  border-radius: var(--radius-md);
  padding: 2rem;
  flex: 1;
  min-width: 0;
}

.stars {
  color: var(--color-gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.recensione-card blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.reviewer-date {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* =============================================
   PRENOTAZIONE / CONTATTI
   ============================================= */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 2.5rem; }

.contact-items { display: flex; flex-direction: column; gap: 1.4rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.contact-item-text p,
.contact-item-text a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
}

.contact-item-text a:hover { color: var(--color-primary); }

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

/* FORM */
.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.contact-form-wrap h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.contact-form-wrap > p {
  margin-bottom: 1.8rem;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(192,139,110,0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.88rem;
}

/* =============================================
   MAP
   ============================================= */
.map-section {
  height: 380px;
  background: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: sepia(20%) saturate(80%);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-dark);
  color: var(--color-light);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .site-logo { font-size: 1.6rem; color: var(--color-secondary); }
.footer-brand p { font-size: 0.88rem; color: rgba(232,213,196,0.55); margin-top: 0.8rem; max-width: 32ch; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col a {
  font-size: 0.88rem;
  color: rgba(232,213,196,0.6);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--color-secondary); }

.footer-bottom {
  border-top: 1px solid rgba(232,213,196,0.1);
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(232,213,196,0.4);
  margin: 0;
  max-width: none;
}

.footer-bottom .social-links .social-link {
  background: rgba(255,255,255,0.06);
}

.footer-bottom .social-link:hover {
  background: var(--color-primary);
}

/* =============================================
   FLOATING WHATSAPP
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wa 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37,211,102,0.55);
  animation: none;
}

.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 6px 36px rgba(37,211,102,0.65); }
}

/* =============================================
   IUBENDA — sposta il widget a sinistra
   (evita sovrapposizione con WhatsApp a destra)
   ============================================= */
.iubenda-tp-btn[data-tp-float="bottom-right"],
.iubenda-tp-btn,
.iubenda-cs-preferences-link {
  right: auto !important;
  left: 20px !important;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .about-wrap      { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual    { order: -1; }
  .about-img-main  { height: 380px; }
  .contact-wrap    { grid-template-columns: 1fr; gap: 3rem; }
  .trattamenti-wrap { grid-template-columns: 1fr; }
  .trattamento-visual { min-height: 320px; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --spacing-xl: 3.5rem; }

  .container { width: 92%; }

  /* Nav mobile */
  .menu-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-dark);
    z-index: 800;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 6rem 1.5rem 2rem;
  }

  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 1.5rem; text-align: center; }
  .site-nav a { font-size: 1.1rem; color: var(--color-secondary); }
  .site-nav .nav-cta { padding: 0.85rem 1.4rem; }

  .site-header { padding: 0.95rem 0; }
  .site-logo, .footer-brand .site-logo { font-size: 1.4rem; }

  /* Hero */
  .hero-content { padding: 1.5rem; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-dots { bottom: 4.5rem; }
  .hero-scroll { bottom: 1.8rem; }
  .btn { padding: 0.8rem 1.8rem; font-size: 0.82rem; }

  /* About */
  .about-img-main { height: 300px; }
  .about-img-accent { width: 45%; height: 160px; right: 0; bottom: -1rem; border-width: 4px; }
  .about-badge { top: -1rem; left: -0.5rem; width: 90px; height: 90px; }
  .about-badge strong { font-size: 1.4rem; }
  .about-badge span { font-size: 0.58rem; }
  .about-values { grid-template-columns: 1fr; }

  /* USP */
  .usp-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .usp-number { font-size: 2.5rem; }

  /* Servizi */
  .servizi-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 2; height: 240px; grid-row: auto; }

  /* Recensioni */
  .recensioni-track { flex-direction: column; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Trattamenti */
  .trattamento-visual { min-height: 260px; }

  /* Mappa */
  .map-section { height: 300px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  /* Overflow prevention */
  .contact-wrap, .footer-inner, .about-wrap, .trattamenti-wrap { overflow: hidden; }
}

/* ── SMALL PHONES (< 480px) ── */
@media (max-width: 480px) {
  :root { --spacing-xl: 2.5rem; }

  .container { width: 94%; }

  /* Hero */
  .hero-content { padding: 1rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-dots { bottom: 3.8rem; gap: 8px; }
  .hero-dot { width: 8px; height: 8px; }
  .hero-scroll { bottom: 1.2rem; font-size: 0.6rem; }
  .hero-scroll svg { width: 18px; height: 18px; }

  /* About */
  .about-img-main { height: 240px; }
  .about-img-accent { width: 40%; height: 130px; }
  .about-badge { width: 76px; height: 76px; top: -0.8rem; left: 0; }
  .about-badge strong { font-size: 1.2rem; }
  .about-badge span { font-size: 0.5rem; }

  /* USP — single column */
  .usp-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem 0.5rem; }
  .usp-number { font-size: 2rem; }
  .usp-label { font-size: 0.65rem; }

  /* Gallery — single column */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 1; height: 220px; }
  .gallery-item { height: 200px; }

  /* Buttons */
  .btn { padding: 0.75rem 1.5rem; font-size: 0.78rem; width: 100%; justify-content: center; }
  .hero-actions .btn { width: auto; min-width: 200px; }

  /* Servizio card */
  .servizio-img-wrap { height: 200px; }
  .servizio-img { height: 100%; object-fit: cover; }

  /* Trattamenti */
  .trattamento-visual { min-height: 220px; }
  .tratt-icon { width: 36px; height: 36px; min-width: 36px; font-size: 1rem; }

  /* Mappa */
  .map-section { height: 240px; }

  /* Recensioni */
  .recensione-card { padding: 1.2rem; }

  /* Contact items */
  .contact-item-icon { width: 36px; height: 36px; min-width: 36px; font-size: 1rem; }

  /* Form */
  .form-submit { padding: 0.85rem 1.2rem; }

  /* Footer */
  .site-footer { padding: 2.5rem 0 1.5rem; }

  /* Section label */
  .section-label { font-size: 0.65rem; letter-spacing: 0.18em; }

  /* Prevent horizontal overflow */
  body { overflow-x: hidden; }
  .about-visual { position: relative; overflow: visible; }
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1200;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-full);
  transform: translateY(-200%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
}

.custom-logo-link,
.custom-logo {
  display: block;
}

.custom-logo {
  max-height: 64px;
  width: auto;
}

body.menu-open {
  overflow: hidden;
}

.dm-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-item-text p,
.contact-item-text a,
.footer-col li,
.footer-col a {
  overflow-wrap: anywhere;
}

.map-section iframe {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.site-logo--image img{max-height:64px;width:auto;display:block;}

/* =============================================
   FOOTER LOGOS
   ============================================= */
.footer-logos {
  text-align: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-logos-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.footer-logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
}

.footer-logo-item {
  display: block;
  transition: opacity var(--transition);
}

.footer-logo-item img {
  max-height: 48px;
  width: auto;
  filter: brightness(0) invert(0.75);
  transition: filter var(--transition);
}

.footer-logo-item:hover img {
  filter: brightness(0) invert(1);
}

a.footer-logo-item:hover {
  opacity: 1;
}

/* =============================================
   ELEMENTOR ZONES
   ============================================= */
.dm-elementor-zone {
  width: 100%;
}

.dm-elementor-zone:empty {
  display: none;
}

.dm-elementor-zone-raw {
  width: 100%;
  margin: 1.5rem 0;
}

.dm-elementor-zone-raw:empty {
  display: none;
}

/* Container dentro le zone — centra e dispone i widget */
.dm-zone-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

/* Se c'è un solo widget blocco (testo lungo, form, ecc), va full width */
.dm-zone-content > .dm-zone-widget:only-child {
  width: 100%;
}

.dm-zone-widget {
  width: 100%;
  margin-bottom: 1.5rem;
  text-align: center;
}

.dm-zone-widget:last-child {
  margin-bottom: 0;
}

/* Immagini multiple in un widget — allinea a griglia centrata */
.dm-zone-widget .widget_media_image,
.dm-zone-widget img {
  display: inline-block;
  vertical-align: middle;
}

/* Se usi widget HTML personalizzato con più immagini */
.dm-zone-widget .textwidget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.dm-zone-widget .textwidget img {
  max-height: 60px;
  width: auto;
}

.dm-zone-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Widget HTML personalizzato — stili base */
.dm-zone-widget img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.dm-zone-widget p {
  margin-bottom: 1rem;
  color: var(--color-muted);
}

.dm-zone-widget h2,
.dm-zone-widget h3,
.dm-zone-widget h4 {
  margin-bottom: 0.8rem;
}

/* ── Responsive footer logos ── */
@media (max-width: 768px) {
  .footer-logos-grid {
    gap: 1.2rem 1.5rem;
  }
  .footer-logo-item img {
    max-height: 36px;
  }
}

@media (max-width: 480px) {
  .footer-logos-grid {
    gap: 1rem;
  }
  .footer-logo-item img {
    max-height: 30px;
  }
}
