/* ==========================================================================
   Stile Morbido, Salvia & Sabbia - I Fiori di Miriam (Pulito e Ottimizzato)
   ========================================================================== */

/* 1. Variabili Globali */
:root {
  --font-main: 'Outfit', sans-serif;

  /* Palette Calda & Naturale */
  --bg-page: #f7f5f0;
  --bg-card: #ffffff;
  --bg-soft: #ece8df;
  
  --primary-sage: #526e5e;        /* Verde Salvia elegante */
  --primary-sage-hover: #405749;
  --accent-warm: #d68c67;         /* Terracotta/Sabbia dorata */
  
  --text-main: #2d3330;          /* Antracite organico scuro */
  --text-muted: #626a65;
  --text-light: #8e9690;
  
  --border-soft: #e3decb;
  
  /* Raggi e Ombre Morbide */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
  
  --shadow-soft: 0 10px 30px rgba(82, 110, 94, 0.06);
  --shadow-hover: 0 16px 35px rgba(82, 110, 94, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

/* 3. Tipografia */
h1, h2, h3 {
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
}

h1 { font-size: 2.8rem; margin: 0.8rem 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

p { color: var(--text-muted); font-size: 0.95rem; font-weight: 400; }

.sub-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-sage);
  display: block;
  margin-bottom: 0.3rem;
}

/* 4. Navigation & Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 8%;
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  flex-shrink: 0;
}

.logo-brand:hover .logo-icon {
  background-color: var(--primary-sage);
  color: #ffffff;
  transform: scale(1.05);
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  flex-shrink: 0;
}

.logo-brand:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-sage);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-sage); }

/* Tasti Navigazione */
.btn-nav {
  padding: 0.5rem 1.4rem;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  color: var(--primary-sage) !important;
  font-weight: 600 !important;
}

.btn-nav:hover {
  background: var(--primary-sage);
  color: #fff !important;
}

.btn-call-highlight {
  background-color: var(--primary-sage);
  color: #ffffff !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(82, 110, 94, 0.25);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-call-highlight:hover {
  background-color: var(--primary-sage-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(82, 110, 94, 0.35);
}

/* Pulsante Hamburger Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  margin-left: auto; /* Mantiene l'allineamento a destra */
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 5. Banner Copertina Full-Width */
.hero-cover {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 6. Hero Section */
.hero { padding: 2rem 8%; }

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.pill-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--bg-soft);
  color: var(--primary-sage);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-sage);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--primary-sage-hover);
  box-shadow: 0 8px 20px rgba(82, 110, 94, 0.25);
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text-main);
}
.btn-secondary:hover { background: var(--border-soft); }

.btn-full { width: 100%; }

.hero-image-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* 7. Pills Bar */
.pills-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 8%;
}

.pill-item {
  background: var(--bg-card);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* 8. Struttura Sezioni & Grid */
.section { padding: 4rem 8%; }
.section-soft { background: var(--bg-soft); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.grid { display: grid; gap: 1.8rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Card Prodotto */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  position: relative;
  height: 220px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: var(--primary-sage);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.card-content { padding: 1.5rem; }

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-warm);
  display: block;
  margin-bottom: 0.2rem;
}

/* Service Card */
.service-card {
  background: var(--bg-card);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-sage);
}

.service-icon-box {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* 9. Orari & Contatti Panel */
.contact-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.hours-block,
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--primary-sage);
  font-weight: 500;
}

.hours-table td.closed {
  color: var(--accent-warm);
  font-weight: 600;
}

.hours-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.contact-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.contact-box-cta {
  background: var(--bg-soft);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.contact-box-cta p { margin: 0.6rem 0 1.5rem; }

/* 10. Footer & Cookie Bar */
.footer {
  padding: 2.5rem 8%;
  background: var(--bg-page);
  border-top: 1px solid var(--border-soft);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--primary-sage); }

.cookie-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  z-index: 1000;
}

.cookie-bar button {
  background: var(--primary-sage);
  color: #fff;
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
}

/* 11. Media Queries (Mobile & Tablet Responsive) */
@media (max-width: 992px) {
  .hero-card, 
  .contact-panel { 
    grid-template-columns: 1fr; 
    padding: 2rem; 
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }

  /* Navbar Mobile */
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.08);
    z-index: 999;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links a {
    margin: 0.6rem 0;
  }

  /* Cover Banner Mobile */
  .hero-cover {
    height: 180px;
  }

  /* Footer Mobile */
  .footer-wrap {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links a {
    margin: 0 0.8rem;
  }
}

/* Styling Icone Contatti & Social */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.contact-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-soft);
  border-radius: 50%;
  color: var(--primary-sage);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item a {
  color: var(--primary-sage);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-warm);
  text-decoration: underline;
}

/* Colori al passaggio del mouse sulle icone Social */
.contact-item:hover .whatsapp-icon {
  background-color: #25d366;
  color: #ffffff;
}

.contact-item:hover .instagram-icon {
  background-color: #e1306c;
  color: #ffffff;
}

.contact-item:hover .facebook-icon {
  background-color: #1877f2;
  color: #ffffff;
}

.pills-bar a.pill-item {
    text-decoration: none;
    color: #0066cc; /* Puoi cambiare questo codice colore con quello che preferisci */
}