@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Elegant Color Palette */
  --color-primary-dark: #093c4a;   /* Profondo blu medico per eccellenza e fiducia */
  --color-primary: #0d5c75;        /* Blu/Teal dentale primario */
  --color-primary-light: #1682a3;  /* Blu/Teal luminoso */
  --color-primary-soft: #e6f3f6;   /* Sfondo azzurrato leggerissimo */
  --color-accent: #c99d4e;         /* Champagne Gold caldo ed elegante per l'estetica */
  --color-accent-hover: #b58c42;   /* Oro scuro per gli stati hover */
  --color-accent-soft: #fcf8f0;    /* Tonalità champagne crema molto morbida */
  
  --color-bg-warm: #FAF8F5;        /* Sfondo principale alabastro caldo, riposante ed elegante */
  --color-bg-card: #ffffff;        /* Sfondo card bianco puro */
  --color-text: #1a2a2e;           /* Grigio antracite con punta di teal per ottima leggibilità */
  --color-text-muted: #556c73;     /* Testo secondario */
  
  --color-whatsapp: #25D366;       /* Verde WhatsApp ufficiale */
  --color-whatsapp-hover: #20ba56;
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 4px 12px rgba(13, 92, 117, 0.03);
  --shadow-md: 0 12px 32px rgba(13, 92, 117, 0.06);
  --shadow-lg: 0 24px 64px rgba(13, 92, 117, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transition */
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-warm);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary-dark);
  font-weight: 600;
  line-height: 1.25;
}

p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent) !important;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Header & Glassmorphic Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 92, 117, 0.06);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  font-weight: 600;
  margin-top: -2px;
}

.nav-contact-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  transition: var(--transition-smooth);
}

.nav-contact-btn:hover {
  background: var(--color-primary);
  color: white;
}

/* Layout Utilities */
section {
  padding: 6rem 1.5rem;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 3.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #dcae5b 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(201, 157, 78, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: 0.75s;
  opacity: 0;
}

.btn-primary:hover::after {
  left: 120%;
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201, 157, 78, 0.45);
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: white;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 80% 20%, var(--color-accent-soft) 0%, var(--color-bg-warm) 60%);
  padding: 4rem 1.5rem 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-content p.hero-intro {
  font-size: 1.3rem;
  font-family: var(--font-serif);
  color: var(--color-primary-dark);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary-dark);
}

.hero-feature-icon {
  color: var(--color-accent);
  display: flex;
  align-items: center;
}

/* Interactive Before/After Whitening Slider */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  display: block;
}

/* Problem/Desire Section */
.problem-section {
  background-color: var(--color-accent-soft);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.problem-illustration {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--color-accent);
}

.problem-illustration h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.problem-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.problem-point-item {
  display: flex;
  gap: 1rem;
}

.problem-point-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-accent);
  line-height: 1;
}

.problem-point-text h4 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.35rem;
}

/* Benefits Section */
.benefits-section {
  background-color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.benefit-card {
  background: var(--color-bg-warm);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  gap: 1.5rem;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: var(--color-accent-soft);
}

.benefit-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon-box {
  background: var(--color-accent);
  color: white;
}

.benefit-card h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-dark);
}

/* Offer Section */
.offer-section {
  background: radial-gradient(circle at 10% 10%, var(--color-primary-soft) 0%, var(--color-bg-warm) 100%);
}

.offer-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 157, 78, 0.2);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--color-accent);
}

.offer-info h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.offer-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.offer-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Form Container */
.booking-form-container {
  background-color: var(--color-accent-soft);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201, 157, 78, 0.15);
}

.booking-form-container h4 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
  text-align: center;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(13, 92, 117, 0.15);
  background: white;
  color: var(--color-text);
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 157, 78, 0.15);
}

.btn-form-submit {
  width: 100%;
  margin-top: 1rem;
}

/* Form Success State */
.form-success-message {
  display: none;
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

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

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: rgba(37, 211, 102, 0.15);
  color: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-title {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

.success-text {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.success-whatsapp-container {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.success-whatsapp-container p {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Trust Section */
.trust-section {
  background: white;
  border-bottom: 1px solid rgba(13, 92, 117, 0.06);
}

.trust-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.trust-quote-icon {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.trust-quote {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--color-primary-dark);
  margin-bottom: 2rem;
}

.trust-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.trust-badge-line {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--color-accent-soft);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent-hover);
}

/* Studio & Location Map Section */
.studio-section {
  background-color: var(--color-bg-warm);
}

.studio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: stretch;
}

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

.studio-address {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.address-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-primary-dark);
}

.address-icon {
  color: var(--color-accent);
}

.map-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  height: 400px;
  border: 1px solid rgba(13, 92, 117, 0.05);
  position: relative;
  overflow: hidden;
}

/* The actual Leaflet map container */
#studio-map {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  z-index: 5;
}

/* Footer Section */
footer {
  background-color: var(--color-primary-dark);
  color: white;
  padding: 5rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-about .logo-main {
  color: white;
  font-size: 1.3rem;
}

.footer-about .logo-sub {
  color: var(--color-accent);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links-list a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-icon {
  color: var(--color-accent);
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Floating WhatsApp Quick Action Button for Mobile */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--color-whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition-smooth);
  animation: pulse-ring 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background-color: var(--color-whatsapp-hover);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), 0 4px 16px rgba(37, 211, 102, 0.3);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), 0 4px 16px rgba(37, 211, 102, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 16px rgba(37, 211, 102, 0.3);
  }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  h1 { font-size: 3rem !important; }
  .section-title { font-size: 2.2rem; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  
  .hero-features {
    align-items: center;
  }
  
  .hero-image-container {
    margin: 0 auto;
  }
  
  .problem-grid, .studio-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .offer-card {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .footer-contact-item {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 1rem;
  }
  
  .nav-contact-btn {
    display: none; /* Keep header ultra clean on mobile */
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .benefit-card {
    padding: 1.75rem;
  }
  
  .floating-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 54px;
    height: 54px;
  }
  
  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
}

/* Specific optimizations for mobile phones */
@media (max-width: 576px) {
  .logo-main {
    font-size: 1.15rem;
    text-align: center;
    width: 100%;
    line-height: 1.3;
  }
  
  .nav-container {
    justify-content: center;
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
  }
  
  .section-title {
    font-size: 1.8rem !important;
  }
  
  .hero-grid {
    gap: 2rem !important;
  }
  
  .hero-content p.hero-intro {
    font-size: 1.1rem !important;
    margin-bottom: 1.25rem !important;
  }
  
  p {
    font-size: 0.98rem !important;
  }
  
  .benefit-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem !important;
    gap: 1rem !important;
  }
  
  .benefit-icon-box {
    width: 48px;
    height: 48px;
  }
  
  .benefit-card h3 {
    font-size: 1.2rem;
  }
  
  .problem-illustration {
    padding: 1.5rem !important;
  }
  
  .problem-illustration h3 {
    font-size: 1.4rem;
  }
  
  .offer-card {
    padding: 2rem 1rem !important;
    border-radius: var(--radius-md) !important;
  }
  
  .offer-info h3 {
    font-size: 1.6rem !important;
  }
  
  .booking-form-container {
    padding: 1.5rem 1.1rem !important;
  }
  
  .booking-form-container h4 {
    font-size: 1.25rem;
  }
  
  .form-input {
    padding: 0.8rem 1rem;
  }
  
  .trust-quote {
    font-size: 1.35rem !important;
  }
  
  .address-item {
    font-size: 0.95rem;
  }
  
  .map-card {
    height: 280px;
  }
  
  .btn {
    width: 100%;
    padding: 0.95rem 1.8rem;
    font-size: 1rem;
  }
  
  .floating-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }
  
  .floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }
}

