/* ==========================================================================
   STILI PAGINA PRODOTTI GSI - LAYOUT 3 COLONNE "SPALMATO" E PREMIUM
   ========================================================================== */

/* --- Contenitore Principale --- */
.gsi-page-wrapper {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333333;
    width: 100%;
    /* Un grigio ultra-chiaro di sfondo fa risaltare le card bianche */
    background-color: #ffffff; 
    overflow-x: hidden;
    padding-top: 80px; 
}

/* --- 1. HEADER (Top Bar) --- */
.gsi-page-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 20px 30px 20px; 
    background-color: #f4f6f8; 
}

.gsi-main-title {
    font-size: 38px; 
    font-weight: 900;
    margin: 0;
    color: #222f3e;
    text-transform: uppercase;
    letter-spacing: 3px; 
    text-align: center;
    margin-top: 3%;
}

/* --- 2. BANNER HERO BACKGROUND --- */
.gsi-hero-section {
    width: 100%;
    height: 150vw; /* Ripristinato 35vw per non renderlo esageratamente alto */
    min-height: 250px; 
    max-height: 800px; 
    background-size: cover; 
    background-position: bottom center; 
    background-repeat: no-repeat;
    background-color: #e8e8e8; 
    border-bottom: 1px solid #dddddd;
}

/* --- 3. SEZIONE PRODOTTI (Griglia) --- */
.gsi-products-section {
    /* LA CHIAVE DELLO "SPALMATO": Container larghissimo per far respirare le 3 card */
    max-width: 1450px; 
    margin: 60px auto 100px auto; 
    padding: 0 20px;
}

/* Intestazione Sezione */
.gsi-section-heading {
    text-align: center;
    margin-bottom: 70px;
}

.gsi-pre-title {
    font-size: 14px;
    font-weight: 800;
    color: #7f8c8d;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.gsi-section-title {
    font-size: 38px;
    font-weight: 900;
    color: #2c3e50; 
    margin: 0;
    line-height: 1.2;
}

.gsi-heading-divider {
    width: 60px;
    height: 4px;
    background-color: #e67e22; 
    margin: 25px auto 0 auto;
    border-radius: 2px;
}

/* Layout a Griglia (3 Colonne Mantenute) */
.gsi-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px; /* Spazio abbondante tra le colonne */
}

/* --- SCHEDA PRODOTTO (Design Premium e Moderno) --- */
.gsi-product-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 20px; /* Angoli più morbidi e moderni */
    border: 1px solid #eaeaea; /* Bordo sottile di definizione */
    overflow: hidden;
    text-decoration: none !important; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03); 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.gsi-product-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08); 
    border-color: #e67e22; /* Il bordo si accende leggermente di arancione */
}

/* Contenitore Immagine (Ora con uno sfondo leggermente grigio-azzurro per staccare dal bianco) */
.gsi-product-image-wrapper {
    height: 320px; /* Più alto per dare ariosità */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #f8fbff; /* Colore freddo tecnico molto leggero */
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.gsi-product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.gsi-product-card:hover .gsi-product-image-wrapper img {
    transform: scale(1.05);
}

/* Contenitore Testi dentro la Card */
.gsi-product-content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Allineato a sinistra per un look editoriale */
    text-align: left;
    flex-grow: 1; 
}

/* Nuovi Badge Squadrati */
.gsi-product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.gsi-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 4px; /* Non pillole, ma rettangoli morbidi */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.outline-dark { 
    color: #2c3e50;
    border: 1px solid #2c3e50;
    background-color: transparent;
}
.solid-orange { 
    color: #ffffff;
    background-color: #e67e22; 
    border: 1px solid #e67e22;
}

/* Testi Prodotto */
.gsi-product-name {
    font-size: 24px;
    font-weight: 900;
    color: #1a252f;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.gsi-product-desc {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 35px 0;
}

/* Bottone "Scopri di più" a forma di pillola piena */
.gsi-discover-btn {
    margin-top: auto; 
    padding: 12px 25px;
    font-size: 13px;
    font-weight: 800;
    color: #e67e22;
    background-color: rgba(230, 126, 34, 0.08); /* Fondo arancione trasparente */
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.gsi-product-card:hover .gsi-discover-btn {
    background-color: #e67e22;
    color: #ffffff;
    transform: translateX(5px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1150px) {
    /* Su schermi medi, riduciamo un po' i gap per non schiacciarle troppo */
    .gsi-product-grid { gap: 30px; }
    .gsi-product-content { padding: 30px 20px; }
}

@media (max-width: 991px) {
    /* Su Tablet passiamo a 2 colonne (altrimenti 3 sono microscopiche) */
    .gsi-main-title { font-size: 32px; }
    .gsi-section-title { font-size: 34px; }
    .gsi-product-grid { grid-template-columns: repeat(2, 1fr); }
    .gsi-hero-section { height: 45vw; }
}

@media (max-width: 768px) {
    .gsi-main-title { font-size: 28px; }
    .gsi-section-title { font-size: 30px; }
}

@media (max-width: 576px) {
    /* Su cellulare passiamo a 1 colonna */
    .gsi-page-wrapper { padding-top: 80px; }
    .gsi-section-heading { margin-bottom: 50px; }
    .gsi-section-title { font-size: 28px; }
    .gsi-product-grid { grid-template-columns: 1fr; gap: 40px; }
    .gsi-product-image-wrapper { height: 260px; }
}