/* ====================
   STILI GENERALI
   ==================== */
 body {
    font-family: Arial, sans-serif; 
    margin: 0px; 
    padding: 0px; /* Rimuove la spaziatura interna del corpo della pagina */
    background-color: #f5f5f5; 
    color: #333; 
    overflow-x: hidden; /* Nasconde lo scorrimento orizzontale */
}

/* =====================================
HEADER - BASE
======================================== */

header {
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000;  /* sopra a tutti */
    display: flex; 
    align-items: center;
    justify-content: space-between; /* Spazio tra gli elementi */
    background: #a61921;
    padding: 0 3%; 
    height: 90px; 
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1); /* Aggiunge ombra sotto */
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
}

.logo img {
    width: 200px; 
    height: auto; 
}

/* NAVBAR */
.navbar ul {
    list-style: none; /* No liste */
    display: flex; 
    gap: 40px; /* Spazio di 40px tra ogni voce di menu */
    margin: 0;
    padding: 0;
}

.navbar ul li a {
    font-size: 18px; 
    padding: 10px 12px; 
    color: white;
    text-decoration: none; /* Rimuove la sottolineatura */
    font-weight: normal;
    display: block;
    transition: all 0.3s ease; /* Transizione fluida per hover */
}

.navbar ul li a:hover {
    font-weight: bold; 
}

.navbar ul li a.active {
    font-weight: bold; 
}

.subnav {
    float: left; /* Fa fluttuare il blocco a sinistra */
    position: relative; 
}

.subnav .subnavbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: white;
    padding: 10px 24px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    display: block;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease;
}

.navbar ul li a:hover,
.subnav:hover .subnavbtn {
    color: white;
    font-weight: bold;
}

.subnav-content {
    display: none; /* Nasconde il menu a discesa */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #a61921;
    border-radius: 5px;
    z-index: 1001;
    width: 100%;
    box-sizing: border-box;
    min-width: 150px;/* Larghezza minima del menu a discesa */
}

.subnav-content a {
	padding: 10px 20px;
	color: white;
    font-size: 15px;
	text-decoration: none;
	display: block;
	text-align: left;
	white-space: nowrap; /* Evita il ritorno a capo nei link */

}

.subnav-content a:hover {
    color: white; /* Mantiene il colore bianco anche al passaggio del mouse */
}


.subnav:hover .subnav-content {
    display: block; /* Mostra il contenuto del sottomenù al passaggio del mouse */
}


@media screen and (max-width: 1024px) {
    header {
        height: 80px;
        padding: 0 2%;}

    .logo img {
        width: 160px; }

    .navbar ul {
        gap: 25px; }

    .navbar ul li a {
        font-size: 14px;
        padding: 8px 10px; }

    .subnav .subnavbtn {
        font-size: 14px;
        padding: 8px 10px; }

    .subnav-content {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #a61921;
        display: none;
        width: auto;
        min-width: 120px;
        padding: 0;
        margin: 0;}

    .subnav-content a {
        font-size: 14px;
        padding: 8px 15px;
        text-align: left;}
}

@media screen and (max-width: 768px) {
    header {
        height: 70px;
        padding: 0 2%;  }

    .logo img {
        width: 140px;}

    .navbar ul {
        gap: 15px;}

    .navbar ul li a {
        font-size: 12px;
        padding: 6px 8px;}

    .subnav .subnavbtn {
        font-size: 12px;
        padding: 6px 8px; }

    .subnav-content {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #a61921;
        display: none;
        width: 100%;
        min-width: auto;
        padding: 0;
        margin: 0; }

    .subnav-content a {
        font-size: 12px;
        padding: 8px 15px;
        text-align: left; }
}

/* ====================
HAMBURGER MENU
==================== */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;}

.hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    border-radius: 2px;}


@media screen and (max-width: 767px) {
    .hamburger {
        display: flex; }

    .navbar ul {
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: #a61921;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 10px 0; }

    .navbar ul.show {
        display: flex;}

    .navbar ul li {
        width: 100%;
        text-align: center; }

    .navbar ul li a,
    .subnav .subnavbtn {
        padding: 10px;
        font-size: 14px;
        width: 100%;}

    .subnav-content {
        position: relative;
        top: 0;
        box-shadow: none;
        border-radius: 0;
        width: 100%;}

    .subnav:hover .subnav-content {
        display: block; }

    .subnav-content a {
        font-size: 14px;
        padding: 10px;
        text-align: center;}
}

.banner-background {
    background-color: #a61921;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 93%;
    z-index: -1;
}



/* =======================================
   SEZIONE HERO
   ======================================= */
.hero {
    position: relative;
    width: 100%;
    padding-top: 90px;
}

.hero-container {
    position: relative;
    width: 100%;
}

.hero-image img {
    width: 88%;
    height: auto;
    margin: 0 auto;
    display: block;
    z-index: 1;
    margin-top: 0;
}

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

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    word-wrap: break-word;
}

.hero-text p {
    margin: 0;
    font-style: italic;
    font-size: 30px;
	line-height:normal;
}

.hero-text h1 {
    margin: 10px 0;
    font-size: 28px;
    font-weight: normal;
	line-height: 1.2;
}

.hero-text .btn {
    background-color: white;
    color: #a61921;
    font-size: 20px;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 30px;
    display: inline-block;
    text-align: center;
}

.hero-text .btn:hover {
    background-color: #ddd;
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 80px;}

    .hero-text p {
        font-size: 22px;}

    .hero-text h1 {
        font-size: 22px;}

    .hero-text .btn {
        font-size: 16px;
        padding: 14px 20px;
        border-radius: 10px;
        margin-top: 20px;}

    .hero-image img {
        width: 90%;}

    .hero-text {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);}
}

@media (max-width: 820px) {
    .hero {
        padding-top: 70px;}

    .hero-text p {
        font-size: 14px;}

    .hero-text h1 {
        font-size: 14px;}

    .hero-text .btn {
        font-size: 10px;
        padding: 8px 18px;
        border-radius: 10px;
        margin-top: 10px;}

    .hero-image img {
        width: 92%;}
}



/* ==================================
   SEZIONE PRODOTTI - BASE
   ================================== */

.products {
    text-align: center;
    padding: 3em 6%;
    background-color: #f5f5f5;
    margin: 0 auto;
    box-sizing: border-box;
}

.products-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 1.5rem;
}

.ceccato-title {
    color: #a61921;
    font-size: 1.30rem;
    font-weight: lighter;
    text-align: center;
    margin: 0;
}

.prodotti-title {
    color: #a61921;
    font-size: 2.5rem;
    text-align: center;
    margin: 1rem 0;
	font-weight: bold;
}


/* ===================================================
   SEZIONE PRODOTTI - ELEMENTI
   ================================================== */

.product {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

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

.product img {
    width: 40%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
}

.product .text {
    width: 60%;
    padding: 4rem 5%;
    text-align: justify;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.product .text h3 {
    font-size: 2.4rem;
    color: #a61921;
    margin: 0 0 0.5rem 0;
	font-weight: bold;
}

.product .text p {
    font-size: 1.2rem;
    margin: 0 0 2rem 0;
	line-height:normal;
}

.product .text a {
    font-size: 1.2rem;
    color: gray;
    text-decoration: underline;
    margin-top: auto;
}

.product .text a:hover {
    color: #a61921;
    font-weight: bold;
}


@media (max-width: 1024px) {
    .products {
        padding: 2rem 3%;
    }

    .product {
        background-color: #f5f5f5;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    .prodotti-title {
        margin-bottom: 1rem;
        font-size: 1.9rem;
    }

    .product,
    .product.reverse {
        flex-direction: column;
        transform: scale(0.9);
        transform-origin: top center;
    }

    .product img {
        width: 100%;
        object-fit: cover;
        margin-bottom: 1rem;
    }

    .product .text {
        width: 100%;
        padding: 1.2rem;
    }

    .ceccato-title {
        font-size: 1.4rem;
    }

    .product .text h3 {
        font-size: 1.9em;
    }

    .product .text p {
        font-size: 1.2rem;
    }

    .product .text a {
        font-size: 1.1rem;
        text-align: center;
    }
}


@media (max-width: 767px) {
    .products {
        padding: 1.5rem 2%;
    }

    .prodotti-title {
        margin-bottom: 0.8rem;
        font-size: 1.6rem;
    }

    .product,
    .product.reverse {
        flex-direction: column;
        transform: scale(0.85);
        transform-origin: top center;
    }

    .product img {
        width: 100%;
        object-fit: cover;
        margin-bottom: 1rem;
    }

    .product .text {
        width: 100%;
        padding: 1rem;
    }

    .ceccato-title {
        font-size: 1rem;
    }

    .product .text h3 {
        font-size: 1.2rem;
    }

    .product .text p {
        font-size: 1rem;
    }

    .product .text a {
        font-size: 1rem;
    }
}


/* =============================================
   SEZIONE QUALITÀ
   =============================================== */
.quality {
    background-color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 10%;
    margin-top: 90px;
}

.quality h2 {
    font-size: 38px;
    color: #a61921;
    margin-bottom: 20px;
    margin-top: 0;
	font-weight: bold;
}

.quality p {
    font-size: 19px;
    margin-bottom: 20px;
	line-height: 1.2;
}

.quality .btn {
    background-color: #a61921;
    color: white;
    font-size: 20px;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 15px;
    margin-top: 20px;
    display: inline-block;
    text-align: center;
}

.quality .btn:hover {
    background-color: #8c161b;
}

@media screen and (max-width: 1024px) {
    .quality {
        padding: 60px 5%;
    }

    .quality h2 {
        font-size: 32px;
    }

    .quality p {
        font-size: 18px;
		
    }

    .quality .btn {
        font-size: 18px;
        padding: 16px 30px;
    }
}

@media screen and (max-width: 767px) {
    .quality {
        padding: 40px 5%;
    }

    .quality h2 {
        font-size: 20px;
    }

    .quality p {
        font-size: 12px;
		text-align: justify;
		
    }

    .quality .btn {
        font-size: 16px;
        padding: 14px 25px;
    }
}


/* =============================================
   SEZIONE CONTATTI
   ============================================= */
.contact {
    background-color: #a61921;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 10%;
    text-align: center;
}

.contact h2 {
    font-size: 38px;
    color: white;
    margin-bottom: 40px;
	font-weight: bold;
}

.contact p {
    font-size: 20px;
    margin-bottom: 40px;
	
	
}

.contact .btn {
    background-color: white;
    color: #a61921;
    font-size: 20px;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 15px;
    margin-top: 20px;
    display: inline-block;
    text-align: center;
}

.contact .btn:hover {
    background-color: #ddd;
}


@media (max-width: 1024px) {
    .contact {
        padding: 60px 5%;
    }

    .contact h2 {
        font-size: 32px;
    }

    .contact p {
        font-size: 18px;
    }

    .contact .btn {
        font-size: 18px;
        padding: 16px 30px;
    }
}


@media (max-width: 768px) {
    .contact {
        padding: 60px 5%;
    }

    .contact h2 {
        font-size: 28px;
        margin-bottom: 30px;
		font-weight: bold;
    }

    .contact p {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .contact .btn {
        font-size: 18px;
        padding: 14px 18px;
    }
}

/* ======================================
   FOOTER
   ====================================== */
footer {
    background-color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 10%;
}

footer .footer-title {
    font-size: 38px;
    color: black;
    margin-bottom: 20px;
	font-weight: bold;
}

footer p {
    font-size: 20px;
    margin-bottom: 40px;
}

footer .instagram-icon {
    font-size: 100px;
    color: black;
    margin: 10px 0;
}

footer .footer-contact {
    font-size: 17px;
    color: #333;
    margin: 5px 0;
}

@media (max-width: 1024px) {
    .footer {
        padding: 60px 5%;
    }

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

    footer .instagram-icon {
        font-size: 80px;
    }

    footer p {
        font-size: 24px;
    }
}

@media screen and (max-width: 768px) {
    footer {
        padding: 60px 5%;
    }

    footer .footer-title {
        font-size: 25px;
    }

    footer .instagram-icon {
        font-size: 60px;
    }

    footer p {
        font-size: 12px;
        margin-bottom: 20px;
    }

    footer .footer-contact {
        font-size: 12px;
        text-align: center;
    }
}