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

/* ====================
RESPONSIVE: MOBILE
==================== */

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

.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: 25em; 
    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 (PAGINA CONTATTI)
   ==================== */

   .contact-section {
    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;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

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

.contact-section .products-header {
    padding-bottom: 2rem;
}


/* ====================
   LAYOUT CONTATTI 
   ==================== */

.contact-container {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 600px; 
}

.richiesta {
    flex: 1;
    background-color: #f2f2f2;
    padding: 40px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    min-height: 100%; 
}

.richiesta h2 {
    font-size: 2.4rem; 
    color: #333;
    margin-top: 0;
    margin-bottom: auto; 
    text-align: center;
    font-weight: lighter;
}

.form-group {
    margin-bottom: auto; 
    text-align: left;
    
}

.form-group label {
    display: block;
    margin-bottom: 8px; 
    font-weight: lighter;
    color: #333;
    font-size: 1.3rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: calc(100% - 12px);
    padding: 10px; 
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1.2rem;
    margin-bottom: 15px; 
    resize: none; 
}

.form-group textarea {
    min-height: 100px; 
}

.invia-richiesta {
    background-color: #a61921;
    color: white;
    padding: 15px 20px; 
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-weight: bold;
    margin-top: auto; 
}

.invia-richiesta:hover {
    background-color: #8c151b;
}

.contatti-azienda {
    flex: 1;
    background-color: #a61921;
    padding: 40px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%; 
}

.contatti {
    background-color: #a61921;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contatti h2 {
    font-size: 2.4rem; 
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: lighter;
    width: 100%;
}

.contatti h3 {
    font-size: 1.75rem;
    font-weight: bold;
    text-align: left;
    color: white;
    margin-bottom: 10px;
}

.contatti p {
    line-height: 1.3;
    margin-bottom: 6px;
    text-align: left;
    width: 100%;
    font-size: 1.2rem;
}

.contatti a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.contatti a:hover {
    text-decoration: underline;
}

.orari {
    background-color: #a61921;
    color: white;
    padding-top: 60px;
}

.orari h3 {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
    font-weight: bold;
    width: 100%;
}

.orari p {
    line-height: 1.3;
    margin-bottom: 6px;
    text-align: left;
    width: 100%;
    font-size: 1.2rem;
}

/* ====================
   MEDIA QUERIES (PAGINA CONTATTI)
   ==================== */

@media (max-width: 1024px) {
    .products-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        padding-bottom: 2rem;
        gap: 1.5rem;
        margin-bottom: 1.1rem;
    }

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

    .contact-section {
        padding: 2rem 3%;
    }

    .contatti h2 {
        font-size: 1.9rem;
        text-align: center;
        color: #a61921;
    }

    .richiesta h2 {
        font-size: 1.9rem;
        text-align: center;
        margin-bottom: 35px;
    }

    .contatti h3 {
        font-size: 1.6rem;
        text-align: center !important;
        color: #a61921;
        align-self: center;
    }

    .orari h3 {
        font-size: 1.6rem;
        text-align: center;
        color: #a61921;
    }

    .contatti p {
        font-size: 1.4rem;
        margin: 0.5em 0 1rem 0;
        text-align: center;
        color: #333;
    }

    .orari p {
        font-size: 1.4rem;
        margin: 0.5rem 0 1rem 0;
        text-align: center;
        color: #333;
    }

    .form-group label {
        font-size: 1.4rem;
    }

    .contatti-azienda,
    .contatti,
    .orari {
        background-color: white;
        box-shadow: none;
    }

    .contact-container {
        flex-direction: column; 
        min-height: auto; 
    }

    .contatti-azienda {
        order: -1; 
        margin-bottom: 30px; 
    }

    .richiesta {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    }

    .contatti-azienda {
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
        min-height: auto; 
    }

    .contatti-azienda {
        order: -1; 
        margin-bottom: 30px;
        padding: 0;
    }

    .contatti-azienda,
    .contatti,
    .orari {
        background-color: white;
        box-shadow: none;
    }


    .form-group {
        margin-bottom: 25px; 
    }

    .form-group label {
        margin-bottom: 5px; 
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 10px; 
        margin-bottom: 10px; 
    }

    .form-group textarea {
        min-height: 80px; 
    }

    .contatti {
        padding: 30px; 
        align-items: flex-start; 
        
    }


    .orari {
        padding: 30px; 
        align-items: flex-start; 
    }
}


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