 /* =========================================================
       1. PALETTE E COLORI (Natura & Marmo Lucido)
       ========================================================= */
    :root {
      --sage-green: #3B604B;
      --leaf-green: #2E7D32;
      --soft-mint: #EBF3ED;
      --sand-bg: #F8F6F0;
      --marble-white: #FFFFFF;
      --marble-vein: #E2E8F0;
      --charcoal: #232D28;
      --gold-accent: #D4AF37;
      --gold-dark: #B38F24;
      
      /* Colori Fasce Calcolatore */
      --tier-red-bg: #FEE2E2;
      --tier-red-text: #991B1B;
      --tier-orange-bg: #FFEDD5;
      --tier-orange-text: #C2410C;
      --tier-green-bg: #D1FAE5;
      --tier-green-text: #065F46;
      --tier-promo-bg: #1B4332;
      --tier-promo-text: #D4AF37;

      --radius-lg: 16px;
      --radius-md: 10px;
      --shadow-soft: 0 10px 30px rgba(0,0,0,0.04);
      --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    }

 /* 🖥️ Configurazione perfetta per Computer / Desktop */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px; /* Mantiene la distanza che su PC funziona perfettamente */
}

/* 📱 Configurazione specifica per Smartphone (schermi fino a 850px) */
@media (max-width: 850px) {
  html {
    scroll-padding-top: 200px; /* Aumenta il valore per far scendere di più la pagina solo sui telefoni */
  }
}


    /* =========================================================
       STRUTTURA GENERALE & BASE
       ========================================================= */
    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Open Sans', sans-serif;
      background-color: var(--sand-bg);
      color: var(--charcoal);
      line-height: 1.6;
    }

    h1, h2, h3, h4 {
      font-family: 'Montserrat', sans-serif;
      color: var(--charcoal);
    }

    .serif-title {
      font-family: 'Cinzel', serif;
    }

    a { text-decoration: none; color: inherit; }

    /* =========================================================
       2. HEADER & STILI NAVIGAZIONE
       ========================================================= */
    .top-bar {
      background-color: var(--charcoal);
      color: #D1E0D7;
      font-size: 0.82rem;
      padding: 8px 5%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
    }

    .top-bar-item { display: flex; align-items: center; gap: 6px; }

    header {
      position: sticky;
      top: 0;
      background-color: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(10px);
      z-index: 1000;
      box-shadow: 0 2px 15px rgba(0,0,0,0.05);
      border-bottom: 1px solid var(--marble-vein);
    }

    nav {
      max-width: 1250px;
      margin: 0 auto;
      padding: 12px 5%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 15px;
    }

    .brand-container {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .brand-logo {
      height: 52px;
      width: auto;
      border-radius: 6px;
      object-fit: contain;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .brand-text .company-name {
      font-family: 'Cinzel', serif;
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--sage-green);
      letter-spacing: 0.5px;
      line-height: 1.1;
    }

    .brand-text .company-sub {
      font-size: 0.75rem;
      color: #666;
      display: block;
      margin-top: 2px;
    }

    .nav-links {
      display: flex;
      list-style: none;
      gap: 22px;
      align-items: center;
    }

    .nav-links a {
      font-weight: 600;
      font-size: 0.9rem;
      transition: color 0.2s;
    }

    .nav-links a:hover { color: var(--leaf-green); }

    .header-contacts {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .btn-header-call {
      background-color: var(--leaf-green);
      color: white !important;
      padding: 9px 18px;
      border-radius: 25px;
      font-weight: 600;
      font-size: 0.88rem;
      transition: transform 0.2s, background-color 0.2s;
      box-shadow: 0 3px 10px rgba(46, 125, 50, 0.2);
    }

    .btn-header-call:hover {
      background-color: #236327;
      transform: translateY(-1px);
    }

    /* =========================================================
       3. CORPO, HERO & CONTENUTI SEZIONI
       ========================================================= */
    .section-padding { padding: 70px 5%; }
    .max-container { max-width: 800px; margin: 0 auto; }

    /* Hero */
    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
    }

    .badge-eco-group {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }

    .badge-eco {
      background-color: var(--soft-mint);
      color: var(--sage-green);
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.82rem;
      font-weight: 600;
      border: 1px solid rgba(59, 96, 75, 0.15);
    }

    .hero-title {
      font-size: 2.4rem;
      line-height: 1.25;
      margin-bottom: 20px;
    }

    .hero-title span { color: var(--sage-green); }

    .hero-desc {
      font-size: 1.05rem;
      color: #4A5568;
      margin-bottom: 30px;
    }

    .hero-image-card {
      background: white;
      padding: 12px;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-soft);
      border: 1px solid var(--marble-vein);
    }

    .hero-image-card img {
      width: 100%;
      height: 380px;
      object-fit: cover;
      border-radius: var(--radius-md);
    }

    /* Valori / Punti di forza */
    .values-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
    }

    .value-card {
      background: white;
      padding: 30px;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-card);
      border-top: 4px solid var(--sage-green);
    }

    .value-icon { font-size: 2rem; margin-bottom: 15px; }

    .value-card h3 {
      font-size: 1.15rem;
      margin-bottom: 10px;
    }

    /* Guida SEO */
    .seo-guide-box {
      background: white;
      border-left: 6px solid var(--sage-green);
      border-radius: var(--radius-md);
      padding: 35px;
      box-shadow: var(--shadow-card);
    }

    .seo-guide-box h2 {
      color: var(--sage-green);
      margin-bottom: 15px;
      font-size: 1.6rem;
    }

    .seo-guide-box ol { margin-left: 22px; margin-top: 15px; }
    .seo-guide-box li { margin-bottom: 10px; }

    /* Recensioni */
    .reviews-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
      gap: 25px;
      margin-top: 35px;
    }

    .review-card {
      background: white;
      padding: 25px;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-card);
      border: 1px solid var(--marble-vein);
    }

    .review-stars { color: var(--gold-accent); margin-bottom: 10px; }

    /* =========================================================
       4. CALCOLATORE PREVENTIVI (Sfondi & Scaglioni Dinamici)
       ========================================================= */
    .calc-section {
      background-color: var(--soft-mint);
      border-top: 1px solid var(--marble-vein);
      border-bottom: 1px solid var(--marble-vein);
    }

    .calc-wrapper {
      max-width: 820px;
      margin: 0 auto;
      background: white;
      border-radius: var(--radius-lg);
      padding: 40px;
      box-shadow: 0 15px 35px rgba(0,0,0,0.06);
      border: 1px solid rgba(0,0,0,0.05);
    }

    .calc-header { text-align: center; margin-bottom: 30px; }
    .calc-header h2 { font-size: 1.8rem; color: var(--charcoal); }

    .postilla-alert {
      background-color: #FFFBEB;
      border: 1px solid #FCD34D;
      color: #92400E;
      padding: 12px 16px;
      border-radius: var(--radius-md);
      font-size: 0.85rem;
      margin-top: 10px;
      line-height: 1.4;
      text-align: left;
    }

    .field-group { margin-bottom: 28px; }

    .field-label {
      font-weight: 700;
      font-size: 0.95rem;
      margin-bottom: 10px;
      display: block;
      color: var(--charcoal);
    }

    /* Slider Mq e Box Dinamico */
    .slider-container-card {
      padding: 22px;
      border-radius: var(--radius-md);
      transition: all 0.3s ease;
      border: 2px solid transparent;
    }

    .slider-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .mq-badge-tag {
      padding: 4px 12px;
      border-radius: 20px;
      font-weight: 700;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .mq-value-display {
      font-size: 1.8rem;
      font-weight: 700;
      font-family: 'Cinzel', serif;
    }

    input[type="range"] {
      width: 100%;
      height: 8px;
      border-radius: 4px;
      background: #CBD5E1;
      outline: none;
      cursor: pointer;
      -webkit-appearance: none;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--sage-green);
      border: 2px solid white;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      cursor: pointer;
      transition: transform 0.1s;
    }

    input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

    /* Griglia Opzioni Interattive */
    .options-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
    }

    .option-card {
      border: 1px solid var(--marble-vein);
      background: #FAFAFA;
      padding: 14px;
      border-radius: var(--radius-md);
      cursor: pointer;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      transition: all 0.2s ease;
    }

    .option-card:hover { border-color: var(--sage-green); }

    .option-card.selected {
      border-color: var(--sage-green);
      background-color: var(--soft-mint);
      box-shadow: 0 2px 8px rgba(59, 96, 75, 0.12);
    }

    .option-card input[type="radio"],
    .option-card input[type="checkbox"] {
      margin-top: 3px;
      accent-color: var(--sage-green);
    }

    .option-info { font-size: 0.88rem; }
    .option-title { font-weight: 600; display: block; }
    .option-price { font-size: 0.8rem; color: #666; }

    /* Riquadro Risultato */
    .summary-box {
      background-color: #F8FAFC;
      border: 1px solid var(--marble-vein);
      border-radius: var(--radius-md);
      padding: 24px;
      margin-top: 30px;
    }

    .summary-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 0.92rem;
      color: #475569;
    }

    .summary-total-row {
      border-top: 2px dashed var(--marble-vein);
      padding-top: 14px;
      margin-top: 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .total-title {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--charcoal);
    }

    .total-price {
      font-size: 2rem;
      font-weight: 700;
      color: var(--sage-green);
      font-family: 'Cinzel', serif;
    }

    .extras-list-container {
      margin-top: 15px;
      padding-top: 12px;
      border-top: 1px solid #E2E8F0;
      font-size: 0.85rem;
    }

    .extras-list-title {
      font-weight: 700;
      color: var(--charcoal);
      margin-bottom: 6px;
    }

    .extra-item-tag {
      display: inline-block;
      background-color: #E2E8F0;
      color: #334155;
      padding: 3px 10px;
      border-radius: 12px;
      margin-right: 6px;
      margin-bottom: 6px;
    }

    .btn-submit-calc {
      display: block;
      width: 100%;
      background-color: var(--leaf-green);
      color: white;
      text-align: center;
      padding: 16px;
      border-radius: var(--radius-md);
      font-weight: 700;
      font-size: 1.05rem;
      border: none;
      cursor: pointer;
      margin-top: 20px;
      transition: background-color 0.2s, transform 0.1s;
      box-shadow: 0 4px 14px rgba(46, 125, 50, 0.25);
    }

    .btn-submit-calc:hover {
      background-color: #236327;
      transform: translateY(-1px);
    }
	
	.tabella-marmo {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin: 20px 0;
  }
  .tabella-marmo th, .tabella-marmo td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
  }
  .tabella-marmo th {
    background-color: #f4f4f4;
    font-weight: bold;
  }
  .tabella-marmo tr:nth-child(even) {
    background-color: #f9f9f9;
  }

        /* =========================================================
       5. FOOTER & TASTI FLOAT
       ========================================================= */
    footer {
      background-color: var(--charcoal);
      color: #D1E0D7;
      padding: 60px 5% 25px;
      border-top: 3px solid var(--sage-green);
    }

    .footer-grid {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
      margin-bottom: 40px;
    }

    .footer-col h4 {
      color: white;
      font-size: 1.1rem;
      margin-bottom: 18px;
    }

    .footer-bottom {
      max-width: 1200px;
      margin: 0 auto;
      border-top: 1px solid rgba(255,255,255,0.1);
      padding-top: 20px;
      text-align: center;
      font-size: 0.85rem;
      color: #94A3B8;
    }

    .floating-cta-box {
      position: fixed;
      bottom: 25px;
      right: 25px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      z-index: 9999;
    }

    .float-btn {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.5rem;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      transition: transform 0.2s;
    }

    .float-btn:hover { transform: scale(1.1); }
    .float-wa { background-color: #25D366; }
    .float-phone { background-color: var(--leaf-green); }

   

   

   /* Media Queries */
    @media (max-width: 850px) {
      .hero-grid { grid-template-columns: 1fr; }
      nav { flex-direction: column; align-items: flex-start; }
      .nav-links { flex-wrap: wrap; gap: 12px; }
      .calc-wrapper { padding: 22px;}
      
     
    }