/* ====================
   STILI GENERALI
   ==================== */
   body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    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 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;
	line-height: 1.2;
}

.hero-text-bottom {
    position: absolute;
    top: 90%; 
    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;
    margin: 0;
    font-size: 25px;
    margin-bottom: 1rem;
}

.hero-text p {
    margin: 0;
    font-size: 20px;
    margin-bottom: 1rem;
}

.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-text .btn:hover {
    background-color: #ddd;
}

.hero-separator {
    width: 25em; 
    height: 2px;
    background-color: white;
    margin: 1rem auto; 
    opacity: 0.7;
}


@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%);
    }

    .hero-text-bottom {
        top: 90%; 
        left: 50%; 
        transform: translate(-50%, -50%); 
        font-size: 22px;
    }
}

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

    .hero-text-bottom {
        top: 90%; 
        left: 50%; 
        transform: translate(-50%, -50%); 
        font-size: 14px;
    }
}


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

  @media (max-width: 767px) {
    .hero-image,
    .hero-text p,
    .hero-separator,
    .hero-text-bottom {
        display: none;
    }

    .hero-text {
        position: relative; 
        top: auto;
        left: auto;
        transform: none;
        width: auto;
        padding: 10px;
        text-align: center;
        display: block;
    }

    .hero-text h1 {
        font-size: 18px;
        line-height: 1.2;
        margin: 0.5em auto;
        display: inline-block;
        padding: 0.5rem 1rem;
        color: #a61921;
        border-radius: 5px;
        position: relative; 
        z-index: 1;
    }

    

    .hero-text {
        display: flex; 
        justify-content: center;
        align-items: center;
        padding: 1rem 0;
    }

    .hero-text h1 {
        font-size: 18px;
        line-height: 1.2;
        color: #a61921;
        border-radius: 5px;
        padding: 0.5rem 1rem;
        background-color: #a61921; 
        z-index: 1; 
    }

}


/* ==========================================
   SEZIONE PERE
   ========================================== */
   .pere-varieties {
    text-align: justify;
    padding: 3em 6%;
    background-color: #f5f5f5;
    margin: 0 auto;
    box-sizing: border-box;
	
}

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

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

.varieties-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.variety {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.variety-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.variety img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    flex-shrink: 0;
}

.variety-text {
    flex-grow: 1;
}

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

.variety-text p {
    font-size: 1.2rem;
	line-height: 1.3;
	
}

.variety-text-bottom {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-top: 20px;
}

.variety-text-bottom table {
    width: 100%;
    border-collapse: collapse; 
    border: 1px solid #ddd; 
    margin-bottom: 1rem; 
}

.variety-text-bottom th,
.variety-text-bottom td {
    padding: 0.5rem;
    text-align: left;
    font-size: 1.2rem;
    border: 1px solid #ddd; 
}

.variety-text-bottom th {
    font-weight: bold;
    color: #a61921;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #a61921; 
}

.variety-text-bottom td:first-child {
    font-weight: bold;
    width: 150px;
    background-color: #f4f4f4;
}

.variety-text-bottom td img {
    max-height: 30px;
    width: auto;
    vertical-align: middle;
    margin-left: 0.5rem;
}


.scheda-tecnica-button-container {
    text-align: left;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
}

.scheda-tecnica-btn {
    background: none;
    border: none;
    color: gray;
    text-decoration: underline;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
}

.scheda-tecnica-btn:hover {
    color: #a61921;
    font-weight: bold;
}

.scheda-tecnica-content {
    display: block; 
}

.scheda-tecnica-content .variety-description .mobile-description {
    display: none; 
}


/* Stili specifici per schermi fino a 1024px */
@media (max-width: 1024px) {
    .ceccato-title {
        font-size: 1.4em;
    }

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

    .pere-varieties {
        padding: 2rem 3%;
    }

    .variety {
        flex-direction: column;
        align-items: center;
    }

    .variety-top {
        flex-direction: row;
        align-items: center;
        width: 100%;
        text-align: left;
    }

    .variety-image-wrapper {
        width: auto;
        margin-right: 15px;
        margin-bottom: 0;
    }

    .variety img {
        width: 200px;
        height: 200px;
        object-fit: cover;
    }

    .variety-info-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .variety-text h3 {
        font-size: 1.9em;
        margin-top: 0;
        margin-bottom: 1rem;
        text-align: center;
    }

    .variety-text p {
        font-size: 1.4rem;
		
    }

    .variety-text .desktop-description {
        display: none;
    }

    .scheda-tecnica-button-container {
        display: block;
        text-align: center;
        padding-left: 0;
        margin-top: 10px;
    }

    .scheda-tecnica-btn {
        font-size: 1.15rem;
        color: gray;
        text-decoration: underline;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .scheda-tecnica-btn:hover {
        color: #a61921;
        font-weight: bold;
    }

    .scheda-tecnica-content {
        display: none; 
        width: 100%;
        padding: 10px;
    }

    .scheda-tecnica-content .variety-description .mobile-description {
        display: block; 
        font-size: 1rem;
    }

    .variety-text-bottom {
        display: flex;
        flex-direction: row;
        gap: 40px;
        margin-top: 20px;
    }

    .variety-text-bottom table {
        width: 100%;
    }

    .variety-text-bottom th,
    .variety-text-bottom td {
        font-size: 1rem;
        padding: 0.3rem;
    }

    .variety-text-bottom td:first-child {
        width: auto;
    }

    .variety-text-bottom td img{
        max-height: 18px;
        width: auto;
        vertical-align: middle;
        margin-left: 0.5rem;
    }
}

/* Stili specifici per schermi molto piccoli (quando il menù diventa hamburger) */
@media screen and (max-width: 767px) {
    .ceccato-title {
        font-size: 1.2rem;
    }

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

    .pere-varieties {
        padding: 1.5rem 2%;
    }

    .variety-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .variety img {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .variety-image-wrapper {
        width: 100px;
        height: 100px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .variety-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .variety-info-wrapper {
        align-items: center;
    }

    .variety-text {
        align-items: center;
    }

    .variety-text h3 {
        font-size: 1.7rem;
    }

    .variety-text p {
        font-size: 1rem;
		line-height: 1;
		
		
    }

    .scheda-tecnica-content .variety-description .mobile-description {
        font-size: 1rem;
		text-align: left;
		
    }

    .variety-text-bottom {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        margin-top: 1rem;
    }

    .variety-text-bottom table {
        width: 100%;
        margin-bottom: 1rem;
        border-collapse: collapse; 
        border: 1px solid #ddd;
    }

    .variety-text-bottom th,
    .variety-text-bottom td {
        font-size: 1rem;
        padding: 0.5rem;
        text-align: left;
        display: block; 
        border-bottom: 1px solid #eee; 
    }

    .variety-text-bottom th {
        font-weight: bold;
        color: #a61921;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #a61921;
    }

    .variety-text-bottom td:first-child {
        font-weight: bold;
        display: block;
    }

    .variety-text-bottom td:last-child {
        display: block;
        padding-bottom: 0.8rem; 
    }

    .variety-text-bottom tbody tr:last-child td {
        border-bottom: none; 
    }

    .nutrition li.certifications {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .nutrition li.certifications strong {
        display: block;
        margin-bottom: 0.2rem;
    }

    .variety-text-bottom td img {
        max-height: 18px;
        width: auto;
        vertical-align: middle;
        margin-left: 0.5rem;
    }
}
  

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

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

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

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

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

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