/* css */
/* =========================================
   ShowRoom Infissi - Design System
   ========================================= */

:root {
    /* Colors */
    --primary: #4C8A71;
    --primary-dark: #3A6E59;
    --primary-light: #E8F5EE;
    --text-main: #1A1A2E;
    --text-muted: #6B7280;
    --bg-white: #FFFFFF;
    --bg-alt: #F8F9FA;
    --accent: #D4A853;
    --mint-green: #6fc49d;
    --hero-dark: #13181b;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-brand: 'Inter', sans-serif;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Layout */
    --container-max: 1400px;
    --header-height: auto;
}

/* =========================================
   Reset & Base Styles
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility: Focus visible */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 138, 113, 0.3);
}

.btn-secondary {
    background-color: var(--text-main);
    color: white;
}

.btn-secondary:hover {
    background-color: #2A2A3E;
    transform: translateY(-2px);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* =========================================
   Utility Classes
   ========================================= */
.bg-alt {
    background-color: var(--bg-alt);
}

.bg-white {
    background-color: var(--bg-white);
}

.text-center {
    text-align: center;
}

/* Scroll Reveal Initial states */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   1. Announcement Bar
   ========================================= */

.announcement-bar {
    background-color: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 100;
}

.announcement-socials {
    position: absolute;
    right: 40px;
    display: flex;
    gap: 12px;
}

.announcement-socials a {
    background-color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.announcement-socials a[aria-label="Facebook"] {
    color: #1877F2;
}

.announcement-socials a[aria-label="Instagram"] {
    color: #E1306C;
}

.announcement-socials a:hover {
    transform: scale(1.15);
}

@media (max-width: 992px) {
    .announcement-socials {
        right: 12px;
        gap: 8px;
    }

    .announcement-socials a {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }
}

/* =========================================
   2. Header
   ========================================= */

.header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 99;
    width: 100%;
}

.header-top {
    border-bottom: 1px solid #E5E7EB;
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 992px) {
    .header-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 12px 16px;
    }

    .mobile-menu-btn {
        grid-column: 1;
        justify-self: start;
    }

    .header-logo {
        grid-column: 2;
        justify-self: center;
        flex-grow: 0;
    }

    .header-search {
        grid-column: 3;
        justify-self: end;
        min-width: unset;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 70px;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}

.header-logo {
    flex-grow: 1;
    text-align: center;
}

.header-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 112px;
    width: auto;
    object-fit: contain;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 100px;
}

.header-search button {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-search button:hover {
    color: var(--primary);
}

.header-nav {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.nav-list li a {
    display: block;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 100%;
}

/* =========================================
   3. Hero Slider
   ========================================= */


.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 700px;
    max-height: 1000px;
    overflow: hidden;
    background-color: var(--hero-dark);
}

.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(99deg, var(--hero-dark) 40%, rgba(19, 24, 27, 0.61) 75%);
    display: flex;
    align-items: center;
    z-index: 2;
    font-family: var(--font-body);
}

.container-hero {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-bottom: 80px;
    margin-left: 0;
    max-width: 100%;
    padding-left: 60px;
    /* Consistent left spacing */
}

.hero-content-left {
    max-width: 700px;
    text-align: left;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(111, 196, 157, 0.1);
    color: var(--mint-green);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(111, 196, 157, 0.2);
}

.hero-title {
    font-size: 75px;
    line-height: 1.1;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: none;
}

.mint-green {
    color: var(--mint-green);
}

.hero-desc {
    font-size: 16px;
    line-height: 1.4;
    color: #e5e7eb;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-mint {
    background-color: var(--mint-green);
    color: var(--hero-dark);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 100px;
}

.btn-mint:hover {
    background-color: #5ab089;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp i {
    font-size: 20px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: white;
}


.btn-outline-white {
    background-color: #ffffff;
    color: var(--hero-dark);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 100px;
}

.btn-outline-white:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

/* Bottom Feature Boxes */
.hero-features {
    position: absolute;
    bottom: 40px;
    left: 60px;
    display: flex;
    gap: 20px;
    width: auto;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 250px;
}

.feature-box i {
    font-size: 28px;
    color: var(--mint-green);
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-value {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.feature-label {
    color: #9ca3af;
    font-size: 14px;
}

/* Base slide and video positioning */
.slides-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.slide.active {
    display: block;
}

.slide-video,
.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 56px;
    }

    .hero-features {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 38px;
    }

    .hero-desc {
        font-size: 18px;
    }

    .hero-content-overlay {
        background: linear-gradient(to bottom, rgba(19, 24, 27, 0.9) 0%, rgba(19, 24, 27, 0.6) 100%);
    }

    .container-hero {
        align-items: center;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-content-left {
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }
}

.hero-btns.center {
    justify-content: center;
}

.btn-outline-white.hero-btn {
    border: 2px solid white;
    color: white;
}

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

.mt-30 {
    margin-top: 30px;
}

.btn-white {
    background-color: white !important;
    color: var(--primary) !important;
}

/* =========================================
   4. Category Pages
   ========================================= */

.category-hero {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: white;
    position: relative;
}

@media (max-width: 768px) {
    .category-hero {
        padding: 80px 0;
    }
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.category-hero .container {
    position: relative;
    z-index: 1;
}

/* Category Hero Backgrounds */
.hero-finestre {
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-porte-blindate {
    background-image: url('https://images.unsplash.com/photo-1628745277861-129b46ba1ec3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-persiane {
    background-image: url('https://plus.unsplash.com/premium_photo-1680287178349-f06b649d8e6a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-avvolgibili {
    background-image: url('immaginiAvvolgibili/avvolgibiliHero.jpg');
}

.hero-veneziane {
    background-image: url('https://images.unsplash.com/photo-1582200882103-68e4bf96f30a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-cassonetti {
    background-image: url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-grate-sicurezza {
    background-image: url('https://images.unsplash.com/photo-1550989460-0adf9ea622e2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-zanzariere {
    background-image: url('https://images.unsplash.com/photo-1598928506311-c55ded91a20c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-tende-da-sole {
    background-image: url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.category-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

@media (max-width: 480px) {
    .category-hero h1 {
        font-size: 28px;
    }
}

.category-hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.category-layout {
    padding: 80px 0;
}

.category-container {
    display: flex;
    gap: 40px;
}

.category-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h3 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.filter-label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-label input {
    margin-right: 8px;
}

.category-products {
    flex-grow: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sort-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    will-change: transform;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.product-img-wrapper {
    height: 250px;
    background: #f8f9fa;
    position: relative;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.product-tag.sale {
    background: var(--accent);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.page-btn:hover {
    background: var(--bg-alt);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =========================================
   4. Alternating Sections
   ========================================= */

.product-split-section {
    display: flex;
    width: 100%;
}

.product-split-section.row-reverse {
    flex-direction: row-reverse;
}

.split-image {
    width: 50%;
    position: relative;
    min-height: 500px;
}

.split-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-content {
    width: 50%;
    display: flex;
    align-items: center;
    padding: 80px 10%;
}

.split-content .content-wrapper h2 {
    font-size: 38px;
    margin-bottom: 24px;
}

.split-content .content-wrapper p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 35px;
}

/* =========================================
   5. Blog Section
   ========================================= */

.blog-section {
    padding: 100px 0;
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 36px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-img-wrapper {
    position: relative;
    padding-top: 60%;
    /* 16:10 aspect ratio */
    overflow: hidden;
}

.blog-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    color: var(--primary);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.4;
}

.blog-content p {
    font-size: 14px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

/* =========================================
   6. Newsletter Section
   ========================================= */

.newsletter-section {
    padding: 100px 0;
    background-color: var(--primary);
    background-image: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.newsletter-content h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 40px;
    font-size: 16px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 15px 25px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    white-space: nowrap;
}

/* =========================================
   7. Footer
   ========================================= */

.footer {
    background-color: #1A1A2E;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    height: 90px;
}

.company-desc {
    color: #9CA3AF;
    margin-bottom: 25px;
    font-size: 15px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #E5E7EB;
    font-size: 15px;
}

.contact-list i {
    color: var(--primary);
    font-size: 20px;
}

.footer-col h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9CA3AF;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 20px;
}

.social-links a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #9CA3AF;
    font-size: 14px;
}

/* =========================================
   Responsive Design
   ========================================= */

@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-nav {
        display: none;
        /* Hide default nav */
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-logo {
        text-align: center;
        margin-left: 0;
    }

    /* Mobile slide-in menu logic via JS classes */
    .header-nav.mobile-active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1000;
        padding: 80px 20px 20px;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .nav-list li a::after {
        display: none;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .nav-overlay.active {
        display: block;
    }

    .product-split-section,
    .product-split-section.row-reverse {
        flex-direction: column;
    }

    .split-image,
    .split-content {
        width: 100%;
    }

    .split-image {
        min-height: 350px;
        order: 1;
        /* Always image on top on mobile */
    }

    .split-content {
        padding: 60px 20px;
        order: 2;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content-wrapper {
        padding: 0 5%;
        background: rgba(0, 0, 0, 0.3);
        align-items: flex-end;
        padding-bottom: 80px;
    }

    .slide-content {
        padding: 30px 25px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .announcement-bar {
        font-size: 11px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Styles */
.contact-hero {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: white;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

.contact-hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    padding: 80px 0;
    background-color: var(--bg-alt);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mint-green);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-item {
    text-align: center;
}

.info-item i {
    font-size: 2rem;
    color: var(--mint-green);
    margin-bottom: 10px;
}

.info-item h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-muted);
}

/* =========================================
   7. Company Intro Section
   ========================================= */

.company-intro {
    padding: 120px 0;
    background-color: #f8fafb;
}

.intro-title {
    font-size: 56px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: 2px;
    font-family: var(--font-heading);
}

.intro-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #4a4a4a;
    letter-spacing: 4px;
    margin-bottom: 35px;
    text-transform: uppercase;
}

.flag-circles {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 45px;
}

.flag-circles span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
}

.circle-green {
    background-color: #008C45;
    border-color: #008C45 !important;
}

.circle-white {
    background-color: #ffffff;
}

.circle-red {
    background-color: #CD212A;
    border-color: #CD212A !important;
}

.intro-description {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.intro-description p {
    font-size: 16px;
    line-height: 1.85;
    color: #7a7a7a;
    font-weight: 400;
}

.intro-description strong {
    color: #333;
    font-weight: 700;
}

.intro-action {
    display: flex;
    justify-content: center;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid #5a7d87;
    color: #5a7d87;
    padding: 14px 45px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.btn-outline-dark:hover {
    background-color: #5a7d87;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 125, 135, 0.2);
}

@media (max-width: 992px) {
    .intro-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .company-intro {
        padding: 80px 0;
    }

    .intro-title {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .intro-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .intro-description p {
        font-size: 15px;
    }

    .btn-outline-dark {
        padding: 12px 35px;
    }
}

/* =========================================
   8. Partners Section
   ========================================= */

.partners-section {
    padding: 100px 0;
    background-color: #0d1117;
    /* Dark background matching the image */
    color: #ffffff;
}

.partners-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #ffffff;
}

.partners-subtitle {
    max-width: 800px;
    margin: 0 auto 60px;
    color: #a0a0a0;
    font-size: 18px;
    line-height: 1.6;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.partner-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.partner-logo-box {
    background-color: #ffffff;
    height: 90px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    padding: 20px;
    overflow: hidden;
}

.brand-logo {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-card:hover .brand-logo {
    transform: scale(1.1);
}

.partner-logo-box.logo-fallback {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-logo-box.logo-fallback::after {
    content: attr(data-initial);
    font-size: 36px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: -1px;
    font-family: var(--font-heading);
}

.partner-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-card p {
    font-size: 14px;
    color: #808080;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 60px 0;
    }

    .partners-title {
        font-size: 32px;
    }

    .partners-subtitle {
        font-size: 15px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================================
   9. Porte Blindate Specific Styles
   ========================================= */

.security-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-detail-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 25px;
}

.feature-detail-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-detail-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.class-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.class-card.active-class {
    border: 2px solid var(--primary);
    background: var(--primary-light);
}

.class-card h4 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.class-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.gallery-section {
    padding: 100px 0;
    image-rendering: auto;
    content-visibility: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    will-change: transform;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .classes-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Brands Showcase */
.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.brand-item {
    max-width: 150px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.brand-img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-item:hover .brand-img {
    filter: grayscale(0%);
}

.brand-section-header {
    margin-bottom: 20px;
}

.brand-section-header h2 {
    font-size: 28px;
}

.brand-showcase-section {
    border-bottom: 1px solid #eee;
}

/* =========================================
   Product Detail & Category Pages Styles
   ========================================= */

.badge-light {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 60px;
}

.product-feature-list {
    list-style: none;
    margin-top: 20px;
    font-size: 14px;
}

.product-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.product-feature-list i {
    color: var(--primary);
    font-size: 18px;
}

/* Comparison Table */
.comparison-container {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    min-width: 800px;
}

.comparison-table thead {
    background: var(--primary);
    color: white;
}

.comparison-table th, .comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    text-align: center;
    font-weight: 600;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-main);
}

.comparison-table tr:nth-child(even) {
    background: #fafafa;
}

.comparison-table td {
    text-align: center;
}

.comparison-table .star-rating {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
}

/* Split Section Refinement */
.product-detail-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.product-split-content {
    flex: 1;
}

.product-split-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.product-split-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-item i {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.benefit-item span strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 2px;
}

.expert-advice {
    margin-top: 30px;
    padding: 30px;
    background-color: var(--bg-alt);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--primary);
}

.expert-advice h4 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.expert-advice p {
    font-size: 15px;
    font-style: italic;
    color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
    background: var(--primary);
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
}

@media (max-width: 576px) {
    .cta-banner {
        padding: 40px 20px;
    }
}

.cta-banner h2 {
    color: white !important;
    font-size: 42px !important;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Utility Classes */
.mb-50 { margin-bottom: 50px; }
.mb-100 { margin-bottom: 100px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

@media (max-width: 992px) {
    .product-detail-split {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    .product-detail-split.row-reverse {
        flex-direction: column !important;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-banner h2 {
        font-size: 32px !important;
    }
    
    .product-split-image img {
        height: 350px;
    }
}

.comparison-table tr.highlight-row {
    background: var(--primary-light) !important;
}

.comparison-table tr.highlight-row td {
    color: var(--primary-dark) !important;
    font-weight: 600;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    content-visibility: auto;
}

/* Removed duplicate gallery-grid definition */

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: 200;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--primary);
}

/* Finestre & Portefinestre Specific Styles */
.finestre-hero {
    position: relative;
    background: linear-gradient(135deg, #0d1f17 0%, #1a3a2a 50%, #0d1f17 100%);
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
    overflow: hidden;
}
.finestre-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=60') center/cover;
    opacity: 0.15;
}
.finestre-hero .container { position: relative; z-index: 1; }
.finestre-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.finestre-hero .breadcrumb a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.finestre-hero .breadcrumb a:hover { color: #4ade80; }
.finestre-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin: 0; }
.finestre-products-section { background: #111827; padding: 4rem 0 5rem; }
.finestre-products-section .section-header h2 { color: #fff; }
.finestre-products-section .section-header p { color: rgba(255, 255, 255, 0.7); }
.finestre-products-section .section-header em { color: #4ade80; font-style: normal; }
.fp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.fp-card {
    background: #1e2d3d;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.06);
    will-change: transform;
}
.fp-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.fp-card-img {
    position: relative;
    background: #162030;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    min-height: 180px;
}
.fp-card-img img { max-width: 100%; max-height: 140px; width: auto; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)); }
.fp-badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; gap: 0.4rem; flex-wrap: wrap; z-index: 10; }
.fp-badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 20px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.fp-badge.brand { background: #4ade80; color: #0d1f17; }
.fp-badge.material { background: rgba(255, 255, 255, 0.15); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.fp-card-body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.fp-card-body h3 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 0.75rem; }
.fp-specs { display: flex; gap: 0.5rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.fp-spec { display: flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; color: rgba(255, 255, 255, 0.75); }
.fp-spec i { color: #4ade80; font-size: 0.85rem; }
.fp-features { list-style: none; padding: 0; margin: 0 0 1rem; flex: 1; }
.fp-features li { font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); padding: 0.2rem 0 0.2rem 1rem; position: relative; line-height: 1.4; }
.fp-features li::before { content: '●'; position: absolute; left: 0; color: #4ade80; font-size: 0.5rem; top: 0.35rem; }
.fp-btn { display: block; width: 100%; padding: 0.6rem 1rem; background: #fff; color: #111; border-radius: 8px; font-size: 0.82rem; font-weight: 600; text-align: center; text-decoration: none; transition: background 0.2s; }
.fp-btn:hover { background: #4ade80; color: #0d1f17; }

@media (max-width: 1200px) { .fp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .fp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .fp-grid { grid-template-columns: 1fr; } }

/* Cassonetti Specific Styles */
.sp-hero {
    position: relative;
    background: linear-gradient(135deg, #0d1f17 0%, #1a3a2a 50%, #0d1f17 100%);
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
    overflow: hidden;
}
.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1600&q=60') center/cover;
    opacity: 0.18;
}
.sp-hero .container { position: relative; z-index: 1; }
.sp-hero p { color: rgba(255, 255, 255, 0.7); font-size: 1.05rem; max-width: 680px; margin: 0; line-height: 1.6; }

@media (max-width: 480px) {
    .sp-hero h1 { font-size: 28px; }
}

.sp-content { background: #111827; padding: 4rem 0 5rem; }
.sp-energy-section { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.sp-energy-text h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 1.25rem; }
.sp-energy-text h2 span { color: #4ade80; }
.sp-energy-text p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; line-height: 1.8; margin-bottom: 2rem; }
.sp-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.sp-stat-box { background: #1e2d3d; padding: 1.5rem 1rem; border-radius: 12px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.05); }
.sp-stat-box i { font-size: 1.8rem; color: #4ade80; margin-bottom: 1rem; display: block; }
.sp-stat-box strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 0.4rem; }
.sp-stat-box span { color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; line-height: 1.4; display: block; }
.sp-energy-img img { width: 100%; border-radius: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }

.sp-section-label { color: #4ade80; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.sp-section-title { color: #fff; font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; margin: 0; }
.sp-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sp-feature-card { background: #1e2d3d; border-radius: 14px; padding: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.06); transition: transform 0.3s; will-change: transform; }
.sp-feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3); }
.sp-feature-icon { font-size: 2rem; color: #4ade80; margin-bottom: 1rem; }
.sp-feature-card h3 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; }
.sp-feature-card p { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; margin: 0; line-height: 1.6; }

.sp-faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sp-faq-question { width: 100%; background: none; border: none; text-align: left; color: #fff; font-size: 0.95rem; font-weight: 600; padding: 1.1rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.sp-faq-question i { color: #4ade80; font-size: 1.1rem; }
.sp-faq-answer { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; line-height: 1.7; padding-bottom: 1rem; }

@media(max-width:960px) { 
    .sp-energy-section { grid-template-columns: 1fr; text-align: center; gap: 2rem; margin-bottom: 2rem; } 
    .sp-energy-text h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
}
@media(max-width:860px) { .sp-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:540px) { .sp-stats-grid { grid-template-columns: 1fr; } }
@media(max-width:500px) { .sp-features-grid { grid-template-columns: 1fr; } }

/* Persiane Specific Styles */
.sp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 3.5rem;
}
.sp-stat { background: #1e2d3d; padding: 1.5rem; text-align: center; }
.sp-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: #4ade80; }
.sp-stat span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }
.sp-intro { background: #1e2d3d; border-radius: 14px; padding: 2rem; border-left: 4px solid #4ade80; margin-bottom: 3.5rem; }
.sp-intro p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; line-height: 1.8; margin: 0; }
.sp-gallery { margin-bottom: 4rem; }
.gallery-grid-mt { margin-top: 2rem; }

@media(max-width:540px) { .sp-stats { grid-template-columns: 1fr; } }

.badge-primary { color: white; background-color: var(--primary); border: 1px solid var(--primary); }

/* =========================================
   Gamma Finestre Section (REHAU)
   ========================================= */
.gamma-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.gamma-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-main);
}

.gamma-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gamma-card {
    display: flex;
    flex-direction: column;
}

.gamma-card-link {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.gamma-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f3f4f6;
}

.gamma-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gamma-card:hover .gamma-image-container img {
    transform: scale(1.05);
}

.gamma-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #2D9C8D;
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 4px;
    z-index: 2;
    text-transform: none;
    letter-spacing: normal;
}

.gamma-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.gamma-image-overlay h3 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.gamma-info {
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gamma-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.gamma-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.gamma-text-link {
    font-size: 14px;
    font-weight: 700;
    color: #e3005b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.gamma-text-link:hover {
    color: #b00046;
}

.gamma-text-link .arrow {
    transition: transform 0.3s ease;
}

.gamma-text-link:hover .arrow {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .gamma-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .gamma-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .gamma-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}
