/* IMPACT */
@font-face {
    font-family: 'Impact';
    src: url('../fonts/impact.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* MONTSERRAT REGULAR */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
}

/* MONTSERRAT BOLD */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
}

body{
    background-color: #eaeaea;
}

body, a {
    font-family: 'Montserrat', sans-serif;
}
p{
    font-size: 15px;
}
h1, h2, h3, button, .btn {
    font-family: 'Impact', sans-serif;
    text-trans_form: uppercase;
    font-weight: 400;
}

.navbar-brand{
    position: absolute;
    top: 30%;
    right: calc(50% - 100px);
    margin: 0;
    padding: 0;
}

.nav-item{
    text-transform: uppercase;
}

.subtitle-banner{
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: -3px;
    line-height: 0.9;
}

.btn{
    border-radius: 0;
    padding: 1rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 20px;
}

.btn:hover{
    background-color: transparent;
    border: solid 1px white;
    color: white;
}

.btn-sec{
    border-radius: 0;
    padding: 1rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 20px;
    border: solid 1px black;
    color: black;
    background-color: transparent;
}

.btn-sec:hover{
    background-color: #ca0c0c;
    border: 1px solid #ca0c0c;
    color: white;
}

/* HERO */
.hero {
    position: relative;
    height: 90vh;
    _background: url('../img/hero.jpg') center/cover no-repeat;
    color: white;
    border-radius: 5px;
    margin: 56px 0.5rem 0.5rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 20px;
    letter-spacing: 2px;
}

.custom-navbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: #eaeaea !important;
}

/* --- WELCOME HERO --- */
.welcome-hero {
    background-color: rgba(0, 45, 91, 0.9); /* Overlay blu sul pattern di sfondo */
    color: var(--white);
    padding-right:  20px;
    padding-left:   20px;
    padding-top:    60px;
    padding-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--tnt-light-blue);
}
.welcome-hero h1 { font-family: 'Montserrat'; font-size: 2.8rem; margin: 0; text-trans_form: uppercase; letter-spacing: 2px; }
.welcome-hero p { font-size: 1.2rem; font-weight: 300; margin-top: 15px; font-style: italic; }

/* CLAIM */
.claim {
    padding: 80px 0;
    background: #eaeaea;
}

.claim h2 {
    font-size: 50px;
    font-weight: 900;
}

.claim h3{
    text-transform: none;
    font-size: 50px;
    line-height: 1
}

.claim span {
    color: #ca0c0c;
}

/* PRODUCT */
.product {

height: 85vh;

    background: #fff;
}

.vertical-menu {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-weight: bold;
    background: #f1f1f1;
}

.vertical-menu div {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.product-image img {
    width: 100%;
}

section.product div.vertical-accordion {
        height: 85vh;
}

/* CONTENITORE */
.vertical-accordion {
    display: flex;
    width: 100%;
    overflow: hidden;
    flex-direction: column;
}

/* ITEM */
.va-item {
    display: flex;
    height: 100%;
}

/* HEADER */
.va-header {
    min-width: 120px;
    background: white;
    padding: 1rem;

    border: solid 2px #eaeaea;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    cursor: pointer;
    transition: 0.3s;

    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 40px;
}

.va-header:hover {
    background: #ca0c0c;
    color: white;
}

/* CONTENUTO */
.va-content {
    height: 0;
    flex-grow: 0;
    overflow: hidden;
    position: relative;
    border: 2px solid #eaeaea;
    border-right-width: 1px;
    border-left-width: 1px;
}

/* ITEM ATTIVO */
.va-item.active .va-content {
    width: 100%;
    flex-grow: 1;
    height: 100%;
}

/* IMMAGINE */
.va-content img {
    width: 100%;
    height: 85%;
    object-fit: cover;
    object-position: bottom;

    transition: transform 0.4s ease;
}

.va-desc{
    display: block;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    height: 15%;
}

.va-desc p {
    display: block;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-bottom: 0px;
    font-size: 15px;
}

/* DEFAULT (chiuso) */
.va-item {
    display: flex;
    flex: 0;
    overflow: hidden;

    transition: flex 0.6s cubic-bezier(.77,0,.18,1);
}

/* ATTIVO (aperto) */
.va-item.active {
    flex: 1;
    transition: all 0.4s linear;
}

/* GALLERY */
.gallery {
    padding: 80px 0;
}

.gallery h2 {
    font-size: 50px;
    font-weight: 400;
    line-height: 1;
}

.gallery span {
    color: #ca0c0c;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.footer p:first-child {
    font-size: 15px;
}

.footer p {
    font-size: 12px;
}

.footer img{
    height: 150px;
}

.product{
    display: none;
}

.product-mobile{
    display: block;
}

.va-item{
    display: block;
}

.va-header img{
    display: none;
    transform: rotate(180deg);
}

.modal-title{
    color: #ca0c0c;
}

a{
    color: #ca0c0c;
}

/* VIDEO */
.video-section {
    padding: 0.5rem;
    margin-top: 3rem;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video {
    width: 100%;
    height: 300px;
    border-radius: 10px;
}


/* tablet */
@media (min-width: 768px) {

    p{
        font-size: 20px;
    }

    .va-header img{
        display: block;
    }

    .va-desc{
        display: flex;
    }

    .va-desc p {
        display: block;
        justify-content: flex-start;
        align-items: center;
        width: 50%;
        height: 100%;
        font-size: 20px;
    }

    .gallery h2, .video-section h2 {
        font-size: 90px;
    }

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

    .claim h3{
        font-size: 90px;
    }


    .footer p:first-child {
        font-size: 25px;
    }

    .footer p {
        font-size: 15px;
    }


    .footer img{
        height: 200px;
    }

    .video {
        width: 100%;
        height: 85vh;
    }

}

/* desktop */
@media (min-width: 992px) {

    .va-item{
        display: flex;
    }

    .va-content {
        width: 0;
        height: 100%;
    }

    .va-content img {
        width: 100%;
        height: 85%;
        object-fit: cover;

        transition: transform 0.4s ease;
    }

    .va-header {
        width: 120px;
        min-width: 120px;
        background: white;
        padding: 1rem;

        border: solid 2px #eaeaea;

        display: flex;
        align-items: flex-start;
        justify-content: space-between;

        writing-mode: vertical-rl;
        transform: rotate(180deg);

        cursor: pointer;
        transition: 0.3s;

        font-family: 'Impact', sans-serif;
        text-transform: uppercase;
        font-weight: 400;
        font-size: 40px;
    }

    .vertical-accordion {
        height: 80vh;
        flex-direction: row;
    }

    /* DEFAULT (chiuso) */
    .va-item {
        flex: 0;
        overflow: visible;
    }

    /* ATTIVO (aperto) */
    .va-item.active {
        flex: 1;
        transition: all 0.4s linear;
    }


    .product{
        display: block;
    }

    .product-mobile{
        display: none;
    }

    .gallery h2, .video-section h2 {
        font-size: 90px;
    }
}

/* BUTTON */
    .btn-filter {
        background: var(--white);
        border: 1px solid #ccc;
        color: var(--tnt-blue);
        padding: 10px 22px;
        cursor: pointer;
        font-weight: 1 !important;
        text-transform: uppercase;
        fo_nt-size: 0.75rem;
        font-size: 1.0rem;
        transition: 0.2s;
        letter-spacing: 0.2em;
    }
    .btn-filter.active, .btn-filter:hover { background: var(--tnt-blue); color: var(--white); border-color: var(--tnt-blue); }

    /* --- CONTROLLER SELEZIONE --- */
    .main-container { max-width: 1100px; margin: -30px auto 60px; padding: 0 20px; flex-grow: 1; }
    
    .selector-card {
        background: var(--white);
        padding: 35px;
        border-radius: 2px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        border: 1px solid #ddd;
    }

    .section-label {
        font-family: 'Montserrat';
        font-weight: 700;
        color: var(--tnt-blue);
        border-left: 5px solid var(--tnt-light-blue);
        padding-left: 15px;
        margin-bottom: 20px;
        text-transform: uppercase;
        fo_nt-size: 0.9rem;
        font-size: 1.2rem;
    }

    .btn-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

    #subfamily-area { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }

    /* --- PRODOTTI --- */
    .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 35px; }
    .product-item {
        background: var(--white);
        border: 1px solid #ddd;
        pad_ding: 25px;
        padding: 0px;
        border-top: 5px solid var(--tnt-blue);
        transition: 0.3s;
    }
    .product-item:hover { border-top-color: var(--tnt-light-blue); transform: translateY(-3px); }
    .product-item h3 { 
        color: var(--tnt-blue); 
        margin-top: 0; 
        font_-family: 'Montserrat'; 
        font-family: 'Impact', sans-serif;
        font-size: x-large;
        }
    .product-item p { 
        font-size: 0.9rem; 
        color: #555; 
        line-height: 1.6; 
        text-align: center;
        }
    .product-item img { 
        hei_ght: 10vh;
        width: 39%;
        }

    /* --- VESTE PRINCIPALE --- */
            :root {
                --tnt-blue: #002d5b;      /* Blu Istituzionale */
                --tnt-light-blue: #0056b3; /* Azzurro Dettagli */
                --tnt-gray-bg: #e6e7e8;    /* Grigio Sfondo */
                --white: #ffffff;
            }
    
            body { 
                font-fa_mily: 'Open Sans', sans-serif; 
                margin: 0; 
                /* Sfondo ufficiale del sito */
                background: url('https://tuscanynonwovenstechnology.com') repeat;
                background-color: var(--tnt-gray-bg);
                color: #333;
                display: flex;
                flex-direction: column;
                min-height: 100vh;
            }
    
            /* --- NAVBAR --- */
            .navbar {
                background: var(--white);
                height: 70px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 5%;
                border-bottom: 4px solid var(--tnt-blue);
                position: sticky;
                top: 0;
                z-index: 1000;
            }
            .logo { font-family: 'Montserrat'; font-weight: 700; color: var(--tnt-blue); font-size: 1.3rem; text-decoration: none; text-transform: uppercase; }
            .nav-links { list-style: none; display: flex; gap: 25px; }
            .nav-links a { text-decoration: none; color: var(--tnt-blue); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
    
            /* --- FOOTER --- */
            footer {
                background-color: var(--tnt-blue);
                color: var(--white);
                padding: 50px 5% 30px;
                margin-top: auto;
            }
            .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
            .footer-col h4 { font-family: 'Montserrat'; text-transform: uppercase; border-bottom: 1px solid var(--tnt-light-blue); display: inline-block; padding-bottom: 5px; margin-bottom: 20px; }
            .footer-col p { font-size: 0.85rem; color: #bdc3c7; }
            .footer-copy { text-align: center; margin-top: 40px; font-size: 0.75rem; color: #7f8c8d; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
