/* ====================
   STILI GENERALI
   ==================== */

   body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #333;
    overflow-x: hidden;
}

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

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

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

.navbar ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.navbar ul li a {
    font-size: 18px;
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    font-weight: normal;
    display: block;
    transition: all 0.3s ease;
}

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

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

.subnav {
    float: left;
    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;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #a61921;
    border-radius: 5px;
    z-index: 1001;
    width: 100%;
    box-sizing: border-box;
    min-width: 150px;
}

.subnav-content a {

    padding: 10px 20px;

    color: white;

    font-size: 15px;

    text-decoration: none;

    display: block;

    text-align: left;

    white-space: nowrap;

}

.subnav-content a:hover {
    color: white;
}

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

/* ====================
MEDIA QUERIES
==================== */

@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-size: 20px;
	
}

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

.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-separator {
    width: 25rem; 
    height: 2px; 
    background-color: white;
    margin: 1rem auto; 
    opacity: 0.7; 
}

/* ==========================
   Media Queries per Tablet
   ========================== */

/* Media Query per Tablet (sotto 1024px) */
@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 Query per iPad normale (sotto 768px) */
@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%;
    }
}

@media (max-width: 600px) {
    .hero-separator,
    .hero-text p {
      display: none;
    }
  
    .hero-text h1 {
      font-size: 13px;
      line-height: 1.4;
    }
  }



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

   .products {
    text-align: center;
    padding: 3rem 6%; 
    background-color: white;
    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.2rem;
    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 CERTIFICAZIONI 
   ==================== */
   .ceccato-title {
    font-size: 1.4rem;
    }
   .certificazioni {
    text-align: center; 
    background-color: white;
    margin: 0 auto;
    box-sizing: border-box;
}

.certificazione {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    background-color: #f5f5f5; 
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease;
    margin-bottom: 2rem; 
    padding: 5rem 5%; 
    text-align: left; 
}

.certificazione h2 {
    font-size: 2.4rem; 
    color: #a61921;
    margin: 0 0 0.5rem 0; 
    text-align: center; 
    width: 100%; 
	font-weight: bold;
	
}

.certificazione p {
    font-size: 1.2rem; 
    margin: 1rem 0 2rem 0; 
    text-align: justify;
	padding: 0px 10px;
	line-height: 1.2;
}

.immagini-certificazione {
    width: 100%;
    height: 150px; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin-top: 1rem;
}

.immagini-certificazione img {
    max-width: 80%; 
    max-height: 100%;
    height: auto;
    object-fit: contain; 
}

/* ====================
   MEDIA QUERIES - CERTIFICAZIONI (BASATE SU CHI SIAMO)
   ==================== */

/* Schermi fino a 1024px (tablet e simili) */
@media (max-width: 1024px) {
    .products {
        padding: 2rem 3%;
    }

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

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

    .certificazione {
        flex-direction: column; 
        transform: scale(0.9); 
        transform-origin: top center;
        padding: 1.2em; 
        text-align: left;
        background-color: white;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    .certificazione h2 {
        font-size: 1.9rem; 
        text-align: center;
    }

    .certificazione p {
        font-size: 1.4rem; 
        margin: 0.5rem 0 1rem 0;
    }

    .immagini-certificazione {
        margin-top: 0.5rem;
    }

    .immagini-certificazione {
        height: 120px; 
    }
}

/* Schermi fino a 768px (smartphone e piccoli tablet) */
@media (max-width: 767px) {
    .products {
        padding: 1.5rem 2%;
    }

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

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

    .certificazione {
        transform: scale(0.85); 
        padding: 1rem;
        background-color: white;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    .certificazione h2 {
        font-size: 1.7rem;
    }

    .certificazione p {
        font-size: 1.2rem; 
        margin: 0.5rem 0 1rem 0;
    }

    .immagini-certificazione {
        height: 100px; 
    }
}


/* ====================
   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; 
}

.contact p {
    font-size: 18px; 
    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 Queries per la Sezione Contatti */
@media (max-width: 1024px) {
    .contact {
        padding: 60px 5%;
    }

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

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

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


/* Per dispositivi più piccoli come tablet e smartphone */
@media (max-width: 768px) {
    .contact {
        padding: 60px 5%;
    }

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

    .contact p {
        font-size: 11px; 
        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; 
}

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;
    }
}
