/* Christmas Collection 2025 - Gemar */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

:root {
    --red: #d43843;
    --green: #47aa51;
    --black: #000000;
    --white: #ffffff;
}


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

/* Hero Section */
.hero {
    background: var(--white);
    padding: 40px 20px;
}

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

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    color: var(--red);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--black);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-text {
    color: var(--black);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.gemar-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s;
    display: inline-block;
    cursor: pointer;
}

.gemar-btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #305a4e;
    color: var(--white);
    border: none;
}

 .btn-primary:active, .btn-primary:focus {
    color: #fff;
    background-color: #41584f;
    border-color: #41584f;
}

.btn-secondary {
    background: transparent;
    color: #3a594f;
    border: 2px solid #3a594f;
}

.btn-primary:hover {
    color: #fff;
    background-color: #62a85b;
    border-color: #62a85b;
}

/* Intro Section */
.intro {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Product Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.category-card {
    background: var(--red);
    border-radius: 30px;
    padding: 40px 30px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 350px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.category-card-dark {
    background: var(--green);
}

.category-card-dark:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.category-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.category-title {
    font-size: 2rem;
    color: var(--white);
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    margin: 0;
}

.category-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    margin: auto auto 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

.product-section{
    margin-bottom: 100px;
}

/* Product Title Banner */
.product-title-banner {
    background: var(--red);
    padding: 30px 40px;
    border-radius: 30px;
    margin: 0 20px 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-table img {
    width: 80px;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.banner-icon {
    width: 30px;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.banner-subtitle {
    color: var(--white);
    font-size: 1.5rem;
    font-style: italic;
    margin: 5px 0 0 0;
}

.banner-decoration {
    flex-shrink: 0;
}

.banner-product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
}


.banner-dark {
    background: var(--green);
}

.banner-dark .balloon {
    border-color: var(--green);
}




.product-content {
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-placeholder {
    background: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    color: #999;
    font-size: 1.2rem;
}

/* Products Row */
.products-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.products-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Products Grid (4 columns for Prints) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    background: var(--white);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

.product-image-box{
    min-height: 240px;
}

.product-content.prints img{
    width: 230px;
}

.product-item.single-product {
    max-width: 400px;
    margin: 0 auto;
}



.product-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
}





/* Product Table */
.product-table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
}

.toggle-table-btn {
    background: linear-gradient(135deg, var(--red) 0%, #912e30 100%);
    color: var(--white);
    border: none;
    width: 200px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.toggle-table-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.toggle-table-btn:active {
    transform: translateY(0);
}

.toggle-table-btn.active {
    background: linear-gradient(135deg, var(--green) 0%, #3d3d3d 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toggle-table-btn.active:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.product-table tbody {
    display: none;
}

.product-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
}

.product-table tr.black{
    background: var(--green);
    color: var(--white);
}
.product-table tr.red{
    background: var(--red);
    color: var(--white);
}


.product-table td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.product-table tbody tr:nth-child(even):not(.row-orange):not(.separator-row) {
    background: #fff;
}

.product-table tbody tr:nth-child(odd):not(.row-orange):not(.separator-row) {
    background: #f9f9f9;
}

.row-orange {
    background: #FF6B35 !important;
    color: var(--white);
    font-weight: 600;
}

.row-green {
    background: #1E5B4D !important;
    color: var(--white);
    font-weight: 600;
}

.row-green2 {
    background: #47aa51 !important;
    color: var(--white);
    font-weight: 600;
}

.separator-row {
    background: var(--white) !important;
    height: 40px;
}

.separator-icon {
    width: 30px;
    height: auto;
}

.icon-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 5px;
}

.table-icon {
    width: 25px;
    height: 25px;
}


/* Two Column Banners */
.two-column-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
    box-sizing: border-box;
}

.two-column-banners .product-title-banner {
    margin: 0 0 20px 0;
    padding: 20px 25px;
}

.two-column-banners .product-content {
    padding: 0 0 20px 0;
}

.two-column-banners .banner-title {
    font-size: 2rem;
}

.two-column-banners .banner-subtitle {
    font-size: 1.2rem;
}

.two-column-banners .balloon {
    width: 30px;
    height: 30px;
}

.two-column-banners .balloon.large {
    width: 45px;
    height: 45px;
}

.two-column-banners .balloon.small {
    width: 25px;
    height: 25px;
}

/* Four Column Banners */
.four-column-banners {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
    box-sizing: border-box;
}

.four-column-banners .product-title-banner {
    margin: 0 0 20px 0;
    padding: 30px 40px;
}

.four-column-banners .product-content {
    padding: 0 0 20px 0;
}

.four-column-banners .banner-title {
    font-size: 2rem;
}

.four-column-banners .banner-subtitle {
    font-size: 1.2rem;
}

.four-column-banners .banner-decoration {
    display: flex;
}

/* Final CTA */
.final-cta {
    background: #c34548;
    padding: 80px 20px;
    text-align: center;
    border-top: 4px solid #c34548;
}

.final-cta .cta-buttons {
    justify-content: center;
}

.final-cta-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
}

.final-cta-text {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 20px 15px;
    }

    .hero-image {
        border-radius: 20px;
        margin-bottom: 25px;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 1rem;
    }

    .intro {
        padding: 50px 15px;
    }

    .intro-text {
        font-size: 1.05rem;
        margin-bottom: 40px;
    }

    .final-cta {
        padding: 50px 15px;
    }

    .final-cta-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .final-cta-text {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
    }

    .category-card {
        padding: 30px 20px;
        height: auto;
        min-height: 280px;
    }

    .category-title {
        font-size: 1.6rem;
    }

    .category-image {
        height: 200px;
        max-width: 250px;
    }

    .product-title-banner {
        margin: 0 10px 25px;
        padding: 20px 15px;
        border-radius: 20px;
    }

    .banner-content {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .banner-icon {
        width: 25px;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .banner-product-image {
        width: 70px;
        height: 70px;
    }

    .two-column-banners {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 30px;
    }

    .two-column-banners > div {
        width: 100%;
    }

    .two-column-banners .product-title-banner {
        margin: 0 0 20px 0;
        width: 100%;
    }

    .two-column-banners .product-content {
        width: 100%;
    }

    .four-column-banners {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 30px;
    }

    .four-column-banners > div {
        width: 100%;
        overflow: hidden;
    }

    .four-column-banners .product-title-banner {
        margin: 0 0 20px 0;
        width: 100%;
    }

    .four-column-banners .product-content {
        width: 100%;
        padding: 0;
        overflow: visible;
    }

    .products-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-item {
        padding: 12px;
    }

    .product-image-box {
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-image-box img {
        max-width: 100%;
        height: auto;
    }

    /* Prints Grid - 2 colonne su mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
        overflow: hidden;
    }

    .products-grid .product-item {
        padding: 10px;
        min-width: 0;
    }

    .products-grid .product-image-box {
        min-height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        overflow: hidden;
    }

    .product-content.prints img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .product-item-title {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    /* Tabelle - miglior scroll orizzontale */
    .product-table-wrapper {
        padding: 10px;
        margin: 0;
        border-radius: 10px;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .product-table {
        font-size: 0.7rem;
        min-width: 500px;
        width: 100%;
    }

    .product-table th,
    .product-table td {
        padding: 6px 4px;
        white-space: nowrap;
    }

    /* Fix per header tabella con palloncini */
    .product-table thead tr:first-child th {
        padding: 10px 4px 8px 4px;
        vertical-align: bottom;
    }
    
    /* Contenitore palloncino */
    .balloon-placeholder {
        width: 35px;
        height: 45px;
        margin: 0 auto 8px;
        position: relative;
    }
    
    .balloon-placeholder img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* Testo sotto il palloncino */
    .product-table thead tr:first-child th > div:last-child {
        margin-top: 8px;
        font-size: 0.7rem;
        line-height: 1.2;
        min-height: 18px;
    }
    
    /* Margine superiore per il pulsante */
    .toggle-table-btn {
        margin-top: 25px;
        margin-bottom: 20px;
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    /* Più spazio nella product-content */
    .four-column-banners .product-content {
        padding: 0 0 30px 0;
    }
    
    /* Altezza minima per le celle con palloncini */
    .product-table thead tr:first-child th {
        min-height: 85px;
    }

    .balloon-placeholder::after {
        border-left: 3px solid transparent;
        border-right: 3px solid transparent;
        border-top: 6px solid currentColor;
        bottom: -4px;
    }

    .table-icon {
        width: 18px;
        height: 18px;
    }

    /* Nasconde decorazioni su mobile per risparmiare spazio */
    .banner-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .banner-title {
        font-size: 1.3rem;
    }

    .banner-subtitle {
        font-size: 0.9rem;
    }

    .product-table {
        font-size: 0.65rem;
    }

    .category-card {
        min-height: 250px;
    }

    .balloon-placeholder {
        width: 32px;
        height: 42px;
        margin: 0 auto 6px;
    }
    
    .product-table thead tr:first-child th > div:last-child {
        font-size: 0.65rem;
        margin-top: 6px;
    }
    
    .toggle-table-btn {
        margin-top: 20px;
        padding: 11px 24px;
        font-size: 0.9rem;
    }
}