/* ==========================================================================
   RIGENERA RUOTE - MASTER ATELIER CSS (Versione Definitiva 30.0)
   SISTEMA DI CLASSI ISOLATE E UNIVOCHE PER TUTTE LE 20 PAGINE
   FIX: Parentesi Media Query, Logo Visibile, Asfalto Footer
   ========================================================================== */

/* --- 1. GLOBAL BASE --- */
:root {
    --primary: #e31e24;
    --secondary: #00008b;
    --success: #25d366;
    --bg-white: #fff;
    --bg-light: #f4f6f8;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    background: var(--bg-white);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 60px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: transparent;
    color: var(--primary) !important;
    transform: translateY(-3px);
}

/* --- 2. HEADER & FOOTER --- */
header.site-hdr-main {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 9000;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.site-hdr-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

/* FIX LOGO SEMPRE VISIBILE E NON COMPRESSO */
.site-hdr-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 9999;
}

.site-hdr-logo img {
    max-height: 50px !important;
    width: auto;
    display: block;
}

.site-hdr-nav > ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.site-hdr-nav a {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-main);
}

.site-hdr-nav a:hover, .site-hdr-nav a.active {
    color: var(--primary);
}

.site-hdr-has-dropdown {
    position: relative;
}

.site-hdr-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    border-top: 3px solid var(--primary);
    transition: var(--transition);
    z-index: 9100;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-hdr-has-dropdown:hover .site-hdr-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-hdr-dropdown-menu li {
    width: 100%;
    display: block;
    list-style: none;
}

.site-hdr-dropdown-menu a {
    padding: 10px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--bg-light);
    text-transform: none;
    width: 100%;
    justify-content: flex-start;
}

.site-hdr-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.site-hdr-bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary);
    margin: 5px 0;
    border-radius: 3px;
}

/* FOOTER ASFALTO SCORREVOLE */
footer.site-ftr-main {
    background: #0f172a url('../img/sfondo-asfalto.jpg') repeat fixed;
    position: relative;
    padding: 40px 0 0;
    color: #cbd5e1;
    border-top: 6px solid var(--primary);
}

footer.site-ftr-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.2);
    z-index: 1;
}

footer.site-ftr-main .container {
    position: relative;
    z-index: 2;
}

.site-ftr-logo-cont {
    text-align: center;
    margin-bottom: 25px;
}

.site-ftr-logo-cont img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.site-ftr-logo-cont img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(227, 30, 36, 0.3);
}

.site-ftr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.site-ftr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-ftr-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.site-ftr-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin-top: 10px;
}

.site-ftr-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #94a3b8;
}

.site-ftr-prov {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
}

.site-ftr-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.site-ftr-contacts li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #e2e8f0;
}

.site-ftr-contacts li i {
    font-size: 1.4rem;
    color: var(--primary);
}

.site-ftr-contacts li a {
    color: #e2e8f0;
    transition: var(--transition);
}

.site-ftr-contacts li a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-ftr-sub-wrapper {
    background: #020617;
    padding: 25px 0;
    margin-top: 50px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.site-ftr-sub-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-ftr-copy {
    color: #64748b;
    font-weight: 600;
}

.site-ftr-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-ftr-legal a {
    color: #94a3b8;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-ftr-legal a:hover {
    color: #fff;
}

.site-ftr-sep {
    color: #334155;
}

.site-ftr-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #334155;
    padding: 8px 15px;
    border-radius: 6px;
    transition: var(--transition);
}

.site-ftr-admin-link:hover {
    background: #1e293b;
    color: #fff;
    border-color: #64748b;
}

/* --- 3. BANNERS (CONDIVISI MA ISOLATI) --- */
.page-title-banner, .pg-home-hero, .pg-about-banner, .pg-contact-banner, .pg-merc-banner, .pg-port-banner, .pg-portdet-banner, .pg-prev-banner, .pg-lav-banner, .pg-sped-banner, .pg-tempi-banner, .pg-faq-banner, .pg-warr-banner, .pg-priv-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 50px 20px;
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

.page-title-banner h1, .pg-home-hero h1, .pg-about-banner h1, .pg-contact-title, .pg-merc-banner h1, .pg-port-banner h1, .pg-portdet-title, .pg-prev-banner h1, .pg-lav-banner h1, .pg-sped-banner h1, .pg-tempi-banner h1, .pg-faq-banner h1, .pg-warr-banner h1, .pg-priv-title {
    color: #fff !important;
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-title-banner p, .pg-home-hero p, .pg-about-banner p, .pg-contact-intro, .pg-merc-banner p, .pg-port-banner p, .pg-prev-banner p, .pg-lav-banner p, .pg-sped-banner p, .pg-tempi-banner p, .pg-faq-banner p, .pg-warr-banner p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 10px auto 0;
}

.page-title-breadcrumbs, .pg-about-breadcrumbs, .pg-contact-breadcrumbs, .pg-merc-breadcrumbs, .pg-port-breadcrumbs, .pg-portdet-breadcrumbs, .pg-prev-breadcrumbs, .pg-lav-breadcrumbs, .pg-sped-breadcrumbs, .pg-tempi-breadcrumbs, .pg-faq-breadcrumbs, .pg-warr-breadcrumbs, .pg-priv-breadcrumbs {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #aaa;
    text-transform: uppercase;
}

.page-title-breadcrumbs a, .pg-about-breadcrumbs a, .pg-contact-breadcrumbs a, .pg-merc-breadcrumbs a, .pg-port-breadcrumbs a, .pg-portdet-breadcrumbs a, .pg-prev-breadcrumbs a, .pg-lav-breadcrumbs a, .pg-sped-breadcrumbs a, .pg-tempi-breadcrumbs a, .pg-faq-breadcrumbs a, .pg-warr-breadcrumbs a, .pg-priv-breadcrumbs a {
    color: #fff;
}

/* --- 4. HOMEPAGE --- */
.pg-home-srv-sec {
    padding: 70px 0;
    background: var(--bg-light);
}

.pg-home-srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pg-home-srv-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.pg-home-srv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.pg-home-srv-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pg-home-srv-content {
    padding: 25px;
    text-align: center;
}

.pg-home-srv-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
}

.pg-home-cta-bar {
    background: var(--secondary);
    color: #fff;
    padding: 30px 45px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    box-shadow: 0 12px 30px rgba(0, 0, 139, 0.2);
}

.pg-home-cta-bar span {
    font-weight: 700;
    font-size: 1.25rem;
}

.pg-home-why-sec {
    padding: 60px 0;
    background: var(--bg-light);
}

.pg-home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pg-home-why-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.pg-home-why-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

/* FIX EMOZIONALE: STACCO DI 5px E LIMITI IMMAGINE */
.pg-home-emo-hero {
    background: #0000a0;
    color: #fff;
    padding: 90px 0;
    border-top: 5px solid var(--bg-white);
}

.pg-home-emo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.pg-home-emo-gallery img {
    width: 100%;
    max-width: 550px;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.pg-home-seo-footer {
    padding: 60px 0;
    background: #fff;
}

.pg-home-seo-wrapper {
    max-width: 950px;
    margin: 0 auto;
    line-height: 1.9;
    color: var(--text-muted);
}

.pg-home-seo-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.pg-home-seo-wrapper h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: var(--primary);
}

/* --- 5. CHI SIAMO & CONTATTO (FIX FORM) --- */
.pg-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.pg-about-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.pg-about-text {
    margin-bottom: 20px;
    color: #555;
}

.pg-about-mission-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    margin-top: 30px;
}

.pg-about-mission-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
}

.pg-about-logo-box {
    text-align: center;
    margin-bottom: 40px;
}

.pg-about-logo-img {
    max-width: 200px;
    margin-bottom: 20px;
}

.pg-about-cert-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.pg-about-cert-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 15px;
}

.pg-about-cta-sec {
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--border-light);
    padding-top: 40px;
}

.pg-contact-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.pg-contact-layout-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}

.pg-contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.pg-contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg-contact-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 15px 0;
}

.pg-contact-btn-wa {
    background: var(--success);
    border-color: var(--success);
    width: 100%;
}

.pg-contact-log-badge {
    background: var(--bg-light);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-top: 15px;
}

.pg-contact-frame {
    background: #fff;
    padding: 45px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-hover);
}

.pg-contact-frame-header {
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.pg-contact-frame-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

.pg-contact-form-row {
    margin-bottom: 25px;
}

.pg-contact-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pg-contact-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
    text-transform: uppercase;
}

.pg-contact-input-group input, .pg-contact-input-group select, .pg-contact-input-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-family: var(--font-body);
    background: var(--bg-light);
    font-size: 1rem;
    transition: var(--transition);
}

.pg-contact-input-group input:focus, .pg-contact-input-group select:focus, .pg-contact-input-group textarea:focus {
    background: #fff;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
}

.pg-contact-form-footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pg-contact-privacy-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
}

.pg-contact-privacy-input {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    cursor: pointer;
}

.pg-contact-privacy-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 700;
}

#pg-contact-submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 12px;
}

#pg-contact-submit-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* --- 6. MERCATINO & PORTFOLIO --- */
.pg-merc-grid, .pg-port-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.pg-merc-card, .pg-port-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.pg-merc-card:hover, .pg-port-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pg-merc-img-cont, .pg-port-img-cont {
    height: 240px;
    position: relative;
    background: #000;
    overflow: hidden;
}

.pg-merc-img-cont img, .pg-port-img-cont img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-merc-tags-row {
    display: flex;
    gap: 8px;
    padding: 12px 25px 0 25px;
}

.pg-merc-badge, .pg-merc-tag-cond {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pg-merc-badge {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.tag-rigenerato { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; } /* Azzurro */
.tag-nuovo { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }      /* Verde */
.tag-usato { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }      /* Arancio */

.pg-merc-content, .pg-port-content {
    padding: 25px;
}

.pg-merc-brand {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pg-merc-title, .pg-port-title {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.pg-merc-compat {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    gap: 6px;
}

.pg-merc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
}

.pg-merc-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.pg-merc-btn {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.pg-port-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pg-port-tag {
    background: var(--bg-light);
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
}

.pg-port-filters {
    text-align: center;
    margin-bottom: 40px;
}

.pg-port-filter-btn {
    padding: 10px 22px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    margin: 5px;
}

.pg-port-filter-btn.active, .pg-port-filter-btn:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

/* Dettaglio Prodotto / Portfolio */
.pg-proddet-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.pg-proddet-main-img img {
    width: 100%;
    border-radius: 15px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.pg-proddet-thumbs {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.pg-proddet-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pg-proddet-thumbs img:hover, .pg-proddet-thumbs img.active {
    opacity: 1;
    border-color: var(--primary);
}

.pg-proddet-badge {
    display: inline-flex;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.pg-proddet-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.pg-proddet-model-name {
    font-weight: 300;
    color: #666;
}

.pg-proddet-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
}

.pg-proddet-tech-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.pg-proddet-tech-table {
    width: 100%;
    border-collapse: collapse;
}

.pg-proddet-tech-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pg-proddet-tech-value {
    text-align: right;
    font-weight: 700;
    color: var(--secondary);
}

.pg-proddet-notes-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    margin: 30px 0;
}

.pg-proddet-btn-wa {
    background: var(--success);
    border-color: var(--success);
    width: 100%;
    font-size: 1.1rem;
    padding: 20px;
}

.pg-portdet-layout {
    max-width: 900px;
    margin: 0 auto;
}

.pg-portdet-desc {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
}

.pg-portdet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.pg-portdet-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.pg-portdet-thumb:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.pg-portdet-works-box {
    background: var(--bg-light);
    padding: 35px;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    margin-bottom: 50px;
}

.pg-portdet-works-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg-portdet-works-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    list-style: none;
}

.pg-portdet-works-list li {
    font-weight: 700;
    display: flex;
    gap: 10px;
}

.pg-portdet-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pg-portdet-cta-box {
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
}

.pg-portdet-cta-red {
    background: var(--primary);
}

.pg-portdet-cta-blue {
    background: var(--secondary);
}

.pg-portdet-cta-title {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.pg-portdet-btn-yellow {
    background: #ffcc00;
    color: #000 !important;
    border-color: #ffcc00;
    margin-top: 20px;
}

/* --- 7. PREVENTIVO --- */
.pg-prev-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
}

/* Box Prezzi Premium */
.pg-prev-price-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.pg-prev-price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.pg-prev-price-hdr {
    padding: 25px 15px;
    text-align: center;
    color: #fff;
}

.pg-prev-price-hdr h3 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pg-prev-price-body {
    padding: 30px 25px;
    text-align: center;
    background: #fff;
}

.pg-prev-val {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.pg-prev-currency {
    font-size: 1.4rem;
    font-weight: 700;
    vertical-align: top;
    margin-right: 3px;
}

.pg-prev-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    margin-top: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pg-prev-divider {
    border: 0;
    border-top: 1px dashed #e2e8f0;
    margin: 20px 0;
}

.pg-prev-list {
    list-style: none;
    text-align: left;
    margin-top: 15px;
    font-size: 0.95rem;
    color: #475569;
}

.pg-prev-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.pg-prev-list li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--success);
    font-size: 1.2rem;
}

/* Overlay Popup di Caricamento Migliorato */
.pg-prev-loading-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(5px);
}

.pg-prev-loading-box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pg-prev-loading-title {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pg-prev-loading-text {
    color: #666;
    font-size: 0.95rem;
}

/* Quadro Form Preventivo */
.pg-prev-form-frame {
    background: #fff;
    padding: 45px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.pg-prev-step-box {
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.pg-prev-step-odd {
    background: var(--bg-light);
    border: 1px solid transparent;
}

.pg-prev-step-even {
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.pg-prev-form-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary);
}

.pg-prev-form-row {
    margin-bottom: 25px;
}

.pg-prev-sec-title {
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 20px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

.pg-prev-sec-title i {
    color: var(--primary);
    font-size: 1.3rem;
}

.pg-prev-input-grp label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
    text-transform: uppercase;
}

.pg-prev-input-grp input, .pg-prev-input-grp select, .pg-prev-input-grp textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-family: var(--font-body);
    background: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.pg-prev-input-grp input:focus, .pg-prev-input-grp select:focus, .pg-prev-input-grp textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
}

.pg-prev-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pg-prev-chk-box {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 15px;
}

.pg-prev-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.pg-prev-photo-item {
    aspect-ratio: 1;
    border: 2px dashed #ccc;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.pg-prev-photo-item:hover {
    border-color: var(--primary);
    background: #fff5f5;
}

.pg-prev-photo-icon i {
    font-size: 1.8rem;
    color: var(--text-muted);
}

.pg-prev-spin-icon {
    font-size: 4rem;
    color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* --- 8. LAVORAZIONI & GARANZIA --- */
.pg-lav-layout, .pg-warr-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.pg-lav-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.pg-lav-intro-hl {
    display: flex;
    gap: 15px;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    margin-bottom: 30px;
}

.pg-lav-intro-icon {
    color: var(--primary);
    font-size: 1.6rem;
}

.pg-lav-text p {
    margin-bottom: 20px;
}

.pg-lav-text h3 {
    margin: 40px 0 20px;
}

.pg-lav-underline {
    text-decoration: underline;
}

.pg-lav-danger-txt {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
}

.pg-lav-alert {
    display: flex;
    gap: 15px;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.pg-lav-success {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
}

.pg-lav-warning {
    background: #fff4f4;
    border-left: 4px solid var(--primary);
}

.pg-lav-info {
    background: #eef2ff;
    border-left: 4px solid var(--secondary);
}

.pg-lav-alert-icon {
    font-size: 1.8rem;
}

.pg-lav-alert-title {
    font-weight: 800;
    margin-bottom: 5px;
}

.pg-lav-quote {
    padding: 25px;
    background: var(--bg-light);
    border-left: 5px solid var(--primary);
    font-style: italic;
    border-radius: 12px;
    margin: 30px 0;
}

.pg-lav-sidebar-box, .pg-warr-sb-box {
    background: var(--secondary);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 110px;
    box-shadow: var(--shadow-hover);
}

.pg-lav-sb-box h3, .pg-warr-sb-box h3 {
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.pg-lav-sb-btn {
    background: var(--success);
    border-color: var(--success);
    width: 100%;
    margin: 20px 0;
}

.pg-lav-sb-list ul {
    list-style: none;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.pg-lav-sb-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 700;
}

.pg-lav-sb-list i {
    color: var(--success);
    font-size: 1.3rem;
}

.pg-warr-sec {
    margin-bottom: 50px;
}

.pg-warr-sec-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pg-warr-sec-title h2 {
    font-size: 1.6rem;
    margin: 0;
}

.pg-warr-sec-title i {
    font-size: 2.2rem;
    color: var(--primary);
}

.pg-warr-list {
    list-style: none;
    margin-top: 20px;
}

.pg-warr-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.pg-warr-icon-check {
    color: var(--success);
    font-size: 1.3rem;
}

.pg-warr-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.pg-warr-info-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.pg-warr-info-title {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pg-warr-alert {
    background: #fff5f5;
    border-left: 5px solid var(--primary);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.pg-warr-alert-hdr {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.pg-warr-alert-hdr h2 {
    color: var(--primary);
    margin: 0;
    font-size: 1.4rem;
}

.pg-warr-alert-hdr i {
    color: var(--primary);
    font-size: 2rem;
}

.pg-warr-list-dots {
    list-style: none;
    margin-top: 20px;
}

.pg-warr-list-dots li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.pg-warr-icon-dot {
    color: var(--primary);
    font-size: 1.3rem;
}

.pg-warr-sb-pay {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px;
}

.pg-warr-pay-icons {
    display: flex;
    gap: 15px;
    font-size: 1.8rem;
    margin: 15px 0;
}

.pg-warr-sb-contact {
    margin-top: 30px;
    padding: 25px;
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    text-align: center;
}

/* --- 9. SPEDIZIONE & TEMPI --- */
.pg-sped-logistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.pg-sped-card-propria {
    background: var(--bg-light);
    padding: 35px;
    border-radius: 12px;
}

.pg-sped-card-gls {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.pg-sped-card-hdr {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pg-sped-icon-primary {
    font-size: 2.2rem;
    color: var(--primary);
}

.pg-sped-icon-secondary {
    font-size: 2.2rem;
    color: var(--secondary);
}

.pg-sped-prov-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    font-weight: 700;
    color: var(--secondary);
}

.pg-sped-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.pg-sped-table th, .pg-sped-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.pg-sped-price {
    text-align: right;
    font-weight: 800;
}

.pg-sped-price-hl {
    text-align: right;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
}

.pg-sped-sec-title {
    text-align: center;
    margin: 40px 0;
}

.pg-sped-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.pg-sped-step-card {
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.pg-sped-step-num {
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 15px;
}

.pg-sped-carousel {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid var(--border-light);
}

.pg-sped-carousel-track {
    display: flex;
    width: 400%;
    height: 100%;
}

.pg-sped-carousel-track img {
    width: 25%;
    height: 100%;
    object-fit: cover;
}

.pg-sped-step-img-box {
    text-align: center;
    margin-top: 30px;
}

.pg-sped-cta-sec {
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    margin-top: 60px;
    text-align: center;
}

.pg-sped-cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.pg-sped-btn-wa {
    background: var(--success);
    border-color: var(--success);
}

.pg-tempi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.pg-tempi-card {
    background: #fff;
    padding: 45px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border-top: 5px solid;
}

.pg-tempi-card-red {
    border-top-color: var(--primary);
}

.pg-tempi-card-blue {
    border-top-color: var(--secondary);
}

.pg-tempi-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.pg-tempi-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pg-tempi-subtitle {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 5px;
}

.pg-tempi-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--success);
    line-height: 1;
    margin: 10px 0;
}

.pg-tempi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.pg-tempi-advisory {
    max-width: 850px;
    margin: 50px auto 0;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-light);
}

.pg-tempi-adv-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.pg-tempi-emo-hero {
    background: #0000a0;
    color: #fff;
    margin-top: 60px;
    text-align: center;
}

.pg-tempi-emo-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.pg-tempi-emo-wrap h2 {
    color: #fff;
    font-size: 2.3rem;
    margin-bottom: 20px;
}

/* --- 10. FAQ ACCORDION --- */
.pg-faq-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0;
}

.pg-faq-cat-hdr {
    margin: 45px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}

.pg-faq-cat-hdr i {
    font-size: 1.5rem;
    color: var(--primary);
}

.pg-faq-cat-hdr h3 {
    font-size: 1.3rem;
    text-transform: uppercase;
}

.pg-faq-block {
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: var(--transition);
}

.pg-faq-trigger {
    width: 100%;
    padding: 22px 30px;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.pg-faq-trigger span {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pg-faq-trigger span i {
    font-size: 1.3rem;
    color: var(--primary);
}

.pg-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fcfcfc;
}

.pg-faq-content p {
    padding: 0 30px 25px 70px;
    color: #475569;
}

.pg-faq-block.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.pg-faq-block.active .pg-faq-content {
    max-height: 1000px;
}

.pg-faq-block.active .ph-caret-down {
    transform: rotate(180deg);
    color: var(--primary);
}

/* --- 11. UTILITY & GESTIONE PREVENTIVO --- */
.pg-priv-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.pg-thanks-banner {
    text-align: center;
}

.pg-gestprev-err {
    text-align: center;
    padding: 100px 20px;
}

.pg-gestprev-err-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.pg-gestprev-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

.pg-gestprev-riepilogo {
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 110px;
}

.pg-gestprev-riepilogo-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.pg-gestprev-riepilogo-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pg-gestprev-info-box {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.pg-gestprev-info-box span {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2px;
}

.pg-gestprev-info-box strong {
    font-size: 1rem;
    color: var(--secondary);
}

.pg-gestprev-riepilogo-gal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pg-gestprev-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.pg-gestprev-riepilogo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.pg-gestprev-img-wrap:hover .pg-gestprev-riepilogo-img {
    transform: scale(1.05);
}

.pg-gestprev-chat {
    background: #fff;
    border-radius: 15px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 750px;
    width: 100%;
    min-width: 0;
}

.pg-gestprev-chat-hdr {
    background: var(--bg-light);
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg-gestprev-chat-hdr-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pg-gestprev-chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pg-gestprev-chat-title {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
}

.pg-gestprev-chat-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
}

.pg-gestprev-chat-area {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pg-gestprev-msg-row {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.pg-gestprev-msg-adm {
    align-self: flex-start;
    align-items: flex-start;
}

.pg-gestprev-msg-cli {
    align-self: flex-end;
    align-items: flex-end;
}

.pg-gestprev-msg-bubble {
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.pg-gestprev-msg-adm .pg-gestprev-msg-bubble {
    background: #fff;
    border: 1px solid var(--border-light);
    border-top-left-radius: 0;
    color: var(--text-main);
}

.pg-gestprev-msg-cli .pg-gestprev-msg-bubble {
    background: var(--primary);
    color: #fff;
    border-top-right-radius: 0;
}

.pg-gestprev-msg-gal {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.pg-gestprev-msg-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.pg-gestprev-msg-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 5px;
    padding: 0 5px;
}

.pg-gestprev-chat-input {
    background: #fff;
    padding: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.pg-gestprev-upload-wrap {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.pg-gestprev-upload-wrap input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.pg-gestprev-icon-btn {
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.pg-gestprev-icon-btn:hover {
    color: var(--primary);
}

.pg-gestprev-chat-txt {
    flex-grow: 1;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    resize: none;
    max-height: 48px;
    transition: var(--transition);
}

.pg-gestprev-chat-txt:focus {
    border-color: var(--primary);
    background: #fff;
}

.pg-gestprev-chat-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(227, 30, 36, 0.3);
}

.pg-gestprev-chat-btn:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
}

#pg-gestprev-file-prev {
    position: absolute;
    top: -35px;
    left: 20px;
    background: var(--secondary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: none;
}

#pg-gestprev-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

#pg-gestprev-lb-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

#pg-gestprev-lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 2;
}

.pg-gestprev-lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    z-index: 2;
}

.pg-gestprev-lb-btn:hover {
    opacity: 1;
}

#pg-gestprev-lb-prev {
    left: 30px;
}

#pg-gestprev-lb-next {
    right: 30px;
}

/* --- 12. RESPONSIVE (MOBILE OPTIMIZATION) --- */
@media (max-width: 992px) {
    /* HEADER FIX MOBILE */
    header.site-hdr-main {
        height: auto;
        padding: 10px 0;
    }

    .site-hdr-menu-toggle {
        display: block;
        order: 2;
    }

    .site-hdr-logo {
        margin-right: auto;
    }

    .site-hdr-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        border-top: 2px solid var(--primary);
        box-shadow: var(--shadow-hover);
    }

    .site-hdr-nav.active {
        display: block;
    }

    .site-hdr-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-hdr-nav a {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
        padding: 12px 0;
        font-size: 0.95rem;
    }

    /* FISARMONICA SOTTOMENU MOBILE */
    .site-hdr-dropdown-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 25px;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        width: 100%;
        border-top: 1px solid var(--border-light);
        margin-top: 10px;
    }

    .site-hdr-has-dropdown.mobile-open .site-hdr-dropdown-menu {
        display: flex;
    }

    .site-hdr-has-dropdown.mobile-open > a {
        color: var(--primary);
    }

    .site-hdr-dropdown-menu a {
        padding: 10px 20px;
        border-bottom: 1px solid var(--border-light);
        font-size: 0.85rem;
    }

    .site-hdr-dropdown-menu li:last-child a {
        border-bottom: none;
    }

    /* TUTTE LE GRIGLIE A 1 COLONNA */
    .pg-home-srv-grid, .pg-home-why-grid, .pg-home-emo-grid,
    .pg-about-grid, .pg-contact-layout-grid, .pg-contact-row-grid,
    .pg-merc-grid, .pg-port-grid, .pg-proddet-layout, .pg-portdet-cta-grid,
    .pg-prev-layout, .pg-prev-grid-row, .pg-prev-chk-box,
    .pg-lav-layout, .pg-warr-layout, .pg-warr-info-grid,
    .pg-sped-logistics-grid, .pg-sped-steps-grid,
    .pg-tempi-grid, .site-ftr-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .pg-gestprev-layout {
        display: block;
        width: 100%;
    }

    .pg-gestprev-riepilogo {
        position: static;
        padding: 25px;
        margin-bottom: 30px;
        width: 100%;
    }

    .pg-gestprev-riepilogo-title {
        justify-content: center;
    }

    .pg-gestprev-chat {
        height: 650px;
        text-align: left; /* Reset allineamento per sicurezza */
    }

    /* SPECIFICHE MOBILE */
    .pg-prev-photo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pg-home-emo-grid {
        text-align: center;
    }

    /* MANTIENI ALLINEAMENTO A SINISTRA NEI FORM E FAQ */
    .pg-prev-sec-title, .pg-prev-input-grp label,
    .pg-contact-input-group label, .pg-contact-frame-header h2, .pg-contact-frame-header p,
    .pg-faq-trigger {
        text-align: left;
    }

    /* FOOTER MOBILE FIXES */
    .site-ftr-sub-wrapper {
        padding: 30px 0 100px 0;
    }

    /* Spazio per non far coprire WhatsApp */
    .site-ftr-sub-flex {
        flex-direction: column;
        text-align: center;
    }

    .site-ftr-legal {
        flex-direction: column;
        gap: 10px;
    }

    .site-ftr-sep {
        display: none;
    }

    .site-ftr-admin-link {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* RIDUZIONE SPAZI E TESTI PER SMARTPHONE */
    .section-padding {
        padding: 40px 0;
    }

    .page-title-banner h1, .pg-home-hero h1, .pg-about-banner h1,
    .pg-contact-title, .pg-merc-banner h1, .pg-port-banner h1,
    .pg-portdet-title, .pg-prev-banner h1, .pg-lav-banner h1,
    .pg-sped-banner h1, .pg-tempi-banner h1, .pg-faq-banner h1,
    .pg-warr-banner h1, .pg-priv-title {
        font-size: 1.9rem;
    }

    .pg-home-emo-text h2, .pg-proddet-title {
        font-size: 2rem;
    }

    .pg-tempi-number {
        font-size: 3rem;
    }

    .pg-prev-val {
        font-size: 2rem;
    }

    .pg-prev-form-frame, .pg-contact-frame {
        padding: 25px;
    }

    .pg-prev-step-box {
        padding: 20px;
    }

    /* WHATSAPP FLOAT COMPATTO */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        border-radius: 50%;
    }

    .wa-text {
        display: none;
    }

    .whatsapp-float i {
        font-size: 1.8rem;
        margin: 0;
    }
}

/* WIDGETS */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: #fff;
    border-radius: 50px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Allineamento a sinistra solo da tablet in su */
@media (min-width: 768px) {
    .site-ftr-col {
        text-align: left;
    }

    .site-ftr-title::after {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .site-ftr-contacts li {
        justify-content: flex-start !important;
    }
}

/* ==========================================
   MODIFICHE LAYOUT FOOTER (3 COLONNE)
   ========================================== */

/* Impostazioni di base per Mobile (Tutto centrato, 1 colonna) */
@media (max-width: 767px) {
    .site-ftr-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .site-ftr-col-logo img {
        margin: 0 auto;
        display: block;
    }

    .site-ftr-title {
        text-align: center;
    }

    .site-ftr-title::after {
        margin: 0 auto;
    }

    .site-ftr-contacts li {
        justify-content: center;
    }
}

/* Impostazioni per Tablet e Desktop (3 colonne, allineato a sinistra) */
@media (min-width: 768px) {
    .site-ftr-grid {
        display: grid;
        /* La prima colonna (logo) prende 1 frazione di spazio, le altre due prendono più spazio (1.5) per far respirare il testo */
        grid-template-columns: 1fr 1.5fr 1.5fr;
        gap: 40px;
        align-items: start; /* Allinea tutto in alto */
    }

    .site-ftr-col {
        text-align: left;
    }

    /* Allinea i titoli a sinistra */
    .site-ftr-title {
        text-align: left;
    }

    /* Sposta la linea rossa decorativa a sinistra */
    .site-ftr-title::after {
        margin-left: 0;
        margin-right: auto;
    }

    /* Allinea le icone e i testi dei contatti a sinistra */
    .site-ftr-contacts li {
        justify-content: flex-start;
    }

    /* Assicura che il logo stia fermo a sinistra e non diventi gigantesco */
    .site-ftr-col-logo img {
        margin-left: 0;
        max-width: 140px;
        display: block;
    }
}