

    /* =========================================================

       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);

    }



    * { 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; }/* 1200*/



    /* 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 Layout Desktop */
    .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; }
      
      /* 📱 FIX TABELLA MARMO: Trasformazione da griglia a schede verticali per smartphone */
      .tabella-marmo, 
      .tabella-marmo tbody, 
      .tabella-marmo tr, 
      .tabella-marmo td { 
        display: block; 
        width: 100%; 
      }
      
      .tabella-marmo thead { 
        display: none; /* Nasconde l'intestazione orizzontale classica */
      }
      
      .tabella-marmo tr { 
        margin-bottom: 18px; 
        border: 1px solid var(--marble-vein); 
        border-radius: var(--radius-md); 
        background-color: white;
        padding: 8px;
        box-shadow: var(--shadow-card);
      }
      
      .tabella-marmo td { 
        border: none; 
        position: relative; 
        padding-left: 45%; 
        margin-bottom: 6px; 
        font-size: 0.9rem;
      }
      
      .tabella-marmo td:last-child { 
        margin-bottom: 0; 
      }
      
      /* Generazione etichette dinamiche tramite attributo HTML data-label */
      .tabella-marmo td::before { 
        content: attr(data-label); 
        position: absolute; 
        left: 10px; 
        width: 40%; 
        font-weight: bold; 
        color: var(--charcoal); 
      }
      
      /* Evidenzia il nome del trattamento come titolo primario della scheda */
      .tabella-marmo td:first-child { 
        background-color: var(--soft-mint); 
        font-weight: bold; 
        font-size: 1rem; 
        color: var(--sage-green); 
        padding-left: 10px; 
        border-radius: 4px;
        margin-bottom: 10px;
      }
      
      .tabella-marmo td:first-child::before { 
        display: none; 
      }
      
      /* Ottimizzazione pulsanti float per schermi ridotti */
      .floating-cta-box {
        bottom: 15px;
        right: 15px;
        gap: 8px;
      }
      .float-btn {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
      }
      
      /* ==========================================================================
   OTTIMIZZAZIONE SMARTPHONE: TABELLA E POPUP DI CONFERMA
   ========================================================================== */
.tabella-marmo {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background-color: var(--marble-white, #FFFFFF);
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0,0,0,0.06));
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
}

.tabella-marmo th, .tabella-marmo td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--marble-vein, #E2E8F0);
}

.tabella-marmo th {
    background-color: var(--soft-mint, #EBF3ED);
    font-weight: 700;
    color: var(--sage-green, #3B604B);
}

@media screen and (max-width: 768px) {
    .tabella-marmo thead { display: none !important; }
    .tabella-marmo, .tabella-marmo tbody, .tabella-marmo tr, .tabella-marmo td { display: block !important; width: 100% !important; }
    .tabella-marmo tr { margin-bottom: 20px !important; border: 1px solid var(--marble-vein, #E2E8F0) !important; border-radius: var(--radius-md, 10px) !important; background: #fff !important; padding: 12px !important; box-shadow: var(--shadow-card, 0 4px 20px rgba(0,0,0,0.06)) !important; }
    .tabella-marmo td { border: none !important; position: relative !important; padding-left: 45% !important; margin-bottom: 8px !important; font-size: 14px !important; }
    .tabella-marmo td::before { content: attr(data-label); position: absolute; left: 10px; width: 40%; font-weight: bold; color: #4a5568; }
    .tabella-marmo td:first-child { background-color: var(--soft-mint, #EBF3ED) !important; font-weight: bold !important; font-size: 16px !important; color: var(--sage-green, #3B604B) !important; padding-left: 10px !important; margin-bottom: 12px !important; border-radius: 4px !important; }
    .tabella-marmo td:first-child::before { display: none !important; }
}

/* [INIZIO STILI CSS POPUP - RIMOZIONE SICURA] */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.popup-overlay.active { opacity: 1; pointer-events: auto; }
.popup-content { background: white; padding: 35px; border-radius: var(--radius-lg, 16px); max-width: 500px; width: 90%; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.2); transform: scale(0.8); transition: transform 0.3s ease; }
.popup-overlay.active .popup-content { transform: scale(1); }
.popup-icon { font-size: 3rem; color: var(--leaf-green, #2E7D32); margin-bottom: 15px; }
.popup-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; color: var(--charcoal, #232D28); }
.popup-text { color: #475569; margin-bottom: 25px; line-height: 1.5; }
.btn-close-popup { background-color: var(--sage-green, #3B604B); color: white; padding: 12px 30px; border: none; border-radius: var(--radius-md, 10px); font-weight: 600; cursor: pointer; font-size: 1rem; }
/* [FINE STILI CSS POPUP - RIMOZIONE SICURA] */

    }