:root {
  --bg-cream: #f7f6f1;
  --bg-surface: #ffffff;
  --bg-muted: #eef1eb;
  --forest-950: #112418;
  --forest-900: #183322;
  --forest-800: #23402a;
  --forest-700: #2f5739;
  --forest-600: #3d724b;
  --olive-accent: #5a8f47;
  --gold-accent: #c59434;
  --gold-light: #f6ecd7;
  --text-main: #18221b;
  --text-secondary: #4a574e;
  --text-muted: #6c7a70;
  --border-subtle: #d8e0d9;
  --danger: #c92a2a;
  --danger-bg: #fff5f5;
  --success: #1b7a43;
  --success-bg: #ebfbee;
  --shadow-sm: 0 2px 8px rgba(17, 36, 24, 0.06);
  --shadow-md: 0 12px 32px rgba(17, 36, 24, 0.09);
  --shadow-lg: 0 20px 48px rgba(17, 36, 24, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-w: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-cream);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* Topbar Orari & Contatti Rapidi */
.topbar {
  background: var(--forest-950);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(90, 143, 71, 0.25);
  color: #a3e689;
  border: 1px solid rgba(163, 230, 137, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
}

.status-badge.closed {
  background: rgba(201, 42, 42, 0.22);
  color: #ffc9c9;
  border-color: rgba(255, 201, 201, 0.3);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--forest-800);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(35, 64, 42, 0.25);
}

.btn-primary:hover {
  background: var(--forest-700);
  box-shadow: 0 6px 20px rgba(35, 64, 42, 0.32);
}

.btn-gold {
  background: var(--gold-accent);
  color: #ffffff;
}

.btn-gold:hover {
  background: #b08227;
}

.btn-outline {
  background: transparent;
  color: var(--forest-800);
  border: 1.5px solid var(--forest-800);
}

.btn-outline:hover {
  background: var(--bg-muted);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--forest-950) 0%, var(--forest-800) 100%);
  color: #ffffff;
  padding: 84px 0 92px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(197, 148, 52, 0.18), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a3e689;
  background: rgba(163, 230, 137, 0.12);
  border: 1px solid rgba(163, 230, 137, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest-600);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: #a3e689;
}

.hero-lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-card strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-card span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-media {
  position: relative;
}

.hero-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: var(--forest-900);
}

.hero-image-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 310px;
}

.hero-floating-badge .badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-light);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
}

/* Deferred Offscreen Sections (modern-web-guidance: defer-rendering-heavy-content) */
.deferred-section {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 650px;
}

/* Services Section */
.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-header {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: var(--forest-950);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.section-header p {
  font-size: 1.06rem;
  color: var(--text-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--forest-600);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-muted);
  color: var(--forest-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.28rem;
  color: var(--forest-950);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  margin-bottom: 24px;
}

.service-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--olive-accent);
  font-weight: 800;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest-700);
}

.service-link:hover {
  color: var(--forest-950);
}

/* Deep-Dive Feature Rows */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse > * {
  direction: ltr;
}

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.feature-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Appointment Booking Section */
.booking-section {
  background: linear-gradient(180deg, var(--forest-950) 0%, var(--forest-900) 100%);
  color: #ffffff;
  padding: 92px 0;
}

.booking-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.hours-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 28px;
}

.hours-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a3e689;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hours-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 9px 4px;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.hours-table tr.today-row {
  color: #a3e689;
  font-weight: 700;
}

.booking-form-card {
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
}

.booking-form-card h3 {
  font-size: 1.45rem;
  color: var(--forest-950);
  margin-bottom: 6px;
}

.booking-form-card .subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest-950);
  margin-bottom: 4px;
}

/* modern-web-guidance: validate-input-after-interaction (hint above input) */
.hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #ffffff;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(61, 114, 75, 0.15);
}

.error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 5px;
}

/* modern-web-guidance: :user-invalid and :user-valid with WeakMap fallback */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid,
.field input.user-invalid-fallback,
.field select.user-invalid-fallback,
.field textarea.user-invalid-fallback {
  border-color: var(--danger);
  background-color: var(--danger-bg);
}

.field input:user-invalid + .error-msg,
.field select:user-invalid + .error-msg,
.field textarea:user-invalid + .error-msg,
.field input.user-invalid-fallback + .error-msg,
.field select.user-invalid-fallback + .error-msg,
.field textarea.user-invalid-fallback + .error-msg {
  display: block;
}

.field input:user-valid,
.field select:user-valid,
.field textarea:user-valid,
.field input.user-valid-fallback,
.field select.user-valid-fallback,
.field textarea.user-valid-fallback {
  border-color: var(--success);
}

/* Slot Buttons Grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.slot-btn {
  padding: 10px 8px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--forest-600);
  background: var(--bg-muted);
}

.slot-btn.selected {
  background: var(--forest-800);
  color: #ffffff;
  border-color: var(--forest-800);
}

.slot-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slot-notice {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--gold-light);
  color: #6e4e10;
  font-size: 0.88rem;
  font-weight: 500;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 16px 0 22px;
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--forest-800);
}

.booking-result {
  display: none;
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--success-bg);
  border: 1.5px solid var(--success);
  color: var(--forest-950);
}

.booking-result.visible {
  display: block;
}

.booking-result h4 {
  color: var(--success);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.booking-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* FAQ Section */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest-950);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--forest-600);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  border-top: 1px solid var(--bg-muted);
  padding-top: 16px;
}

/* Contact & Map Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.contact-info-list {
  list-style: none;
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-muted);
  color: var(--forest-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  min-height: 380px;
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--forest-950);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #a3e689;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  background: #25d366;
  color: #ffffff;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.38);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-float:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .feature-split,
  .booking-wrapper,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-floating-badge {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* Blog Section & Article Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--forest-600);
}

.blog-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-card-body {
  padding: 26px 24px 18px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-tag {
  background: var(--bg-muted);
  color: var(--forest-800);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.blog-card h3 {
  font-size: 1.22rem;
  line-height: 1.35;
  color: var(--forest-950);
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.blog-card-footer {
  padding: 0 24px 24px;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-sm);
}

.article-content h2 {
  font-size: 1.55rem;
  color: var(--forest-950);
  margin: 32px 0 14px;
}

.article-content h3 {
  font-size: 1.25rem;
  color: var(--forest-900);
  margin: 24px 0 10px;
}

.article-content p {
  margin-bottom: 18px;
  color: var(--text-main);
  font-size: 1.03rem;
}

.article-content ul {
  margin: 0 0 20px 22px;
}

.article-content li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .article-container {
    padding: 28px 20px;
  }
}
