/* ============================================
   RESET E VARIABILI - STILE RUSTICO
   ============================================ */
:root {
    --primary-dark: #3A2C24;
    --primary-brown: #8B5A2B;
    --primary-terracotta: #B87C4E;
    --accent-gold: #C6A15B;
    --accent-rust: #A55C3A;
    --light-bg: #FDF8F0;
    --white: #FFFFFF;
    --gray-light: #E8DCCC;
    --text-dark: #2C2418;
    --text-muted: #6B5A4A;
    --wood-light: #DEB887;
    --wood-dark: #8B5A2B;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   SFONDO
   ============================================ */

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-image: url('media/Home_Page_CorteLecci.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Overlay scuro per far risaltare i contenuti */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

/* Assicura che tutti i contenuti siano sopra l'overlay */
main, header, footer, section, .container {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER CON LOGO A SINISTRA, CENTRO E DESTRA
   ============================================ */

header {
    background: rgba(42, 34, 28, 0.92);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* CONTENITORE */
.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

/* SINISTRA - attaccato */
.logo-left {
    display: flex;
    align-items: center;
}

.logo-icon {
    max-height: 150px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
    margin:0;
}

.logo-icon:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* CENTRO - CENTRO PERFETTO */
.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-img {
    max-height: 170px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--wood-light);
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
    font-family: var(--font-sans);
    border-left: 2px solid var(--primary-terracotta);
    padding-left: 8px;
    margin-top: 6px;
}

/* DESTRA - tutto a destra */
nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    color: #F5E6D3;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    color: var(--wood-light);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-terracotta);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.btn-nav {
    background: rgba(184, 124, 78, 0.9);
    color: #F5E6D3 !important;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(245, 230, 211, 0.3);
    font-size: 0.95rem;
}

.btn-nav:hover {
    background: var(--accent-rust);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 92, 58, 0.3);
}

.btn-nav::after {
    display: none;
}

/* ============================================
   NAVBAR CHE SI RIMPICCIOLISCE ALLO SCROLL
   ============================================ */

header,
.logo-icon,
.logo-img,
.logo-sub,
nav a,
.btn-nav {
    transition: all 0.3s ease;
}

.header-shrink {
    padding: 6px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-shrink .logo-icon {
    max-height: 40px;
}

.header-shrink .logo-img {
    max-height: 80px;
}

.header-shrink .logo-sub {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    margin-top: 3px;
}

.header-shrink nav a {
    font-size: 0.85rem;
    padding: 4px 0;
}

.header-shrink .btn-nav {
    padding: 5px 20px;
    font-size: 0.8rem;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background: #F5E6D3;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   HERO SECTION - RETTANGOLO TRASPARENTE
   ============================================ */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 4rem 0;
}

.hero-content {
    background: rgba(42, 34, 28, 0.65);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 3rem 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-tag {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    color: var(--wood-light);
}

.hero h2 {
    font-size: 4.2rem;
    color: #F5E6D3;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-terracotta);
    border-radius: 2px;
}

.hero-text {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.7;
    color: #F5E6D3;
}

/* ============================================
   SEZIONE PERCHÉ SCEGLIERE
   ============================================ */
.why-choose {
    padding: 2rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    background: rgba(42, 34, 28, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--wood-light);
    font-weight: 500;
}

.section-description {
    color: #F5E6D3;
    margin-top: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================
   FEATURES GRID - CARD TRASPARENTI
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(42, 34, 28, 0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(42, 34, 28, 0.6);
    backdrop-filter: blur(8px);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
}

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    color: #F5E6D3;
}

.feature-card p {
    color: rgba(245, 230, 211, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   DOPPIA IMMAGINE
   ============================================ */
.double-image-section {
    padding: 2rem 0;
}

.double-image-grid {
    background: rgba(42, 34, 28, 0.45);
    backdrop-filter: blur(6px);
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.image-left,
.image-right {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.image-left:hover,
.image-right:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.double-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-left:hover .double-image,
.image-right:hover .double-image {
    transform: scale(1.05);
}

/* ============================================
   BOTTONE PRIMARIO
   ============================================ */
.btn-primary {
    display: inline-block;
    background: rgba(42, 34, 28, 0.8);
    color: #F5E6D3;
    padding: 16px 42px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

.btn-primary:hover {
    background: var(--primary-terracotta);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.4);
}

/* ============================================
   SEZIONE APULIA TASTE EXPERIENCE
   ============================================ */
.apulia-section {
    padding: 4rem 0;
    background: transparent;
}

.apulia-card {
    background: rgba(42, 34, 28, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: 3rem 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.apulia-card:hover {
    transform: translateY(-5px);
    background: rgba(42, 34, 28, 0.85);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.apulia-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.apulia-card h3 {
    font-size: 2.2rem;
    color: #FFFFFF;
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.apulia-subtitle {
    font-size: 1.1rem;
    color: #DEB887;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.apulia-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #B87C4E, #DEB887, #B87C4E, transparent);
    margin: 1rem auto 1.5rem;
    border-radius: 3px;
}

.apulia-description {
    color: #F5E6D3;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.apulia-description strong {
    color: #DEB887;
    font-weight: 600;
}

.apulia-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.apulia-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #F5E6D3;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    backdrop-filter: blur(4px);
}

.apulia-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #B87C4E;
    border-radius: 50%;
    font-size: 0.85rem;
    color: #FFFFFF;
    font-weight: bold;
}

.btn-apulia {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #B87C4E;
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-apulia:hover {
    background: #A55C3A;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 124, 78, 0.5);
    gap: 16px;
    color: #FFFFFF;
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-apulia:hover .btn-arrow {
    transform: translateX(6px);
}

.apulia-note {
    font-size: 0.75rem;
    color: rgba(245, 230, 211, 0.6);
    margin-top: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: rgba(42, 34, 28, 0.7);
    backdrop-filter: blur(8px);
    color: var(--gray-light);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #F5E6D3;
    font-family: var(--font-serif);
}

.footer-brand p {
    font-size: 0.8rem;
    opacity: 0.8;
    color: rgba(245, 230, 211, 0.8);
}

.footer-tag {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--wood-light);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--wood-light);
}

.footer-info {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    color: rgba(245, 230, 211, 0.7);
    margin-left: 15%;
}

/* ============================================
   STILE PER PAGINA PRODOTTI
   ============================================ */
.products-grid-section {
    padding: 4rem 0;
    background: transparent;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: rgba(42, 34, 28, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    background: rgba(42, 34, 28, 0.65);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}

.product-info {
    padding: 2rem 2rem 2rem 0;
}

.product-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #F5E6D3;
    position: relative;
    display: inline-block;
}

.product-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-terracotta);
    border-radius: 2px;
}

.product-desc {
    color: rgba(245, 230, 211, 0.9);
    margin-bottom: 1.2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.product-ingredients,
.product-features {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem;
    border-radius: 16px;
    font-size: 0.9rem;
    margin-top: 1.2rem;
    border-left: 4px solid var(--primary-terracotta);
    color: rgba(245, 230, 211, 0.9);
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.product-features span {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #F5E6D3;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shop-link {
    text-align: center;
    margin-top: 4rem;
}

h1 {
    font-size: 2.5rem;
    color: #F5E6D3;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2 {
    font-size: 1.2rem;
    color: var(--wood-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
}

/* ============================================
   STILE PER PAGINA CHI SIAMO
   ============================================ */
.about-content {
    padding: 2rem 0;
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    background: rgba(42, 34, 28, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.about-text p {
    margin-bottom: 1.2rem;
    color: rgba(245, 230, 211, 0.9);
    line-height: 1.8;
    font-size: 1rem;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #F5E6D3;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-terracotta);
    border-radius: 2px;
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-terracotta);
}

/* VALUES SECTION */
.values-section {
    text-align: center;
    margin-top: 2rem;
    padding: 2.5rem;
    background: rgba(42, 34, 28, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.values-section h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #F5E6D3;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.value-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-terracotta);
    background: rgba(0, 0, 0, 0.4);
}

.value-item h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-terracotta);
}

.value-item p {
    color: rgba(245, 230, 211, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   STILE PER PAGINA CONTATTI
   ============================================ */
.contact-section {
    padding: 2rem 0;
    background: transparent;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info {
    background: rgba(42, 34, 28, 0.55);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #F5E6D3;
}

.contact-info p {
    margin-bottom: 1rem;
    color: rgba(245, 230, 211, 0.9);
    line-height: 1.8;
    font-size: 1rem;
}

.contact-info strong {
    color: var(--primary-terracotta);
}

.contact-form {
    background: rgba(42, 34, 28, 0.55);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #F5E6D3;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-family: var(--font-sans);
    transition: var(--transition);
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.3);
    color: #F5E6D3;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 230, 211, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-terracotta);
    box-shadow: 0 0 0 3px rgba(184, 124, 78, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
}

.form-status.success {
    background: rgba(30, 126, 52, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-status.error {
    background: rgba(198, 40, 40, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN COMPLETO
   ============================================ */

@media (max-width: 992px) {
    .double-image-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .product-card {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-container {
        flex-wrap: nowrap;
    }
    
    .logo-left {
        flex: 0;
    }
    
    .logo-center {
        flex: 1;
    }
    
    nav {
        flex: 0;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        background: rgba(42, 34, 28, 0.95);
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
        z-index: 1000;
        padding: 2rem;
        backdrop-filter: blur(10px);
    }
    
    nav ul.show {
        right: 0;
    }
    
    nav a {
        color: #F5E6D3;
        font-size: 1.1rem;
    }
    
    .logo-img {
        max-height: 80px;
    }
    
    .logo-icon {
        max-height: 40px;
    }
    
    .logo-sub {
        font-size: 0.55rem;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .section-header {
        padding: 1.5rem;
        margin: 0 1rem 2rem 1rem;
    }
    
    .double-image-grid {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .btn-primary {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    .product-card {
        margin: 0 1rem;
    }
    
    .about-grid {
        margin: 0 1rem 2rem 1rem;
        padding: 1.5rem;
    }
    
    .values-section {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .contact-container {
        margin: 0 1rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .apulia-section {
        padding: 2rem 0;
    }
    
    .apulia-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 32px;
    }
    
    .apulia-card h3 {
        font-size: 1.6rem;
    }
    
    .apulia-subtitle {
        font-size: 0.95rem;
    }
    
    .apulia-description {
        font-size: 0.9rem;
    }
    
    .apulia-features {
        gap: 0.8rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .apulia-feature {
        justify-content: center;
    }
    
    .btn-apulia {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
   .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
    
    .logo-img {
        max-height: 55px;
    }
    
    .logo-icon {
        max-height: 30px;
    }
    
    .logo-sub {
        font-size: 0.45rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .feature-card h4 {
        font-size: 1.3rem;
    }
    
    .product-info h3 {
        font-size: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 1.6rem;
    }
    
    .values-section h3 {
        font-size: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .apulia-card {
        padding: 1.5rem;
    }
    
    .apulia-card h3 {
        font-size: 1.3rem;
    }
    
    .apulia-icon {
        font-size: 3rem;
    }
    
    .btn-apulia {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .header-shrink .logo-img {
        max-height: 45px;
    }
    
    .header-shrink .logo-icon {
        max-height: 20px;
    }
}

/* ============================================
   SEZIONE PERCHÉ SCEGLIERE - VERSIONE MOBILE
   ============================================ */

/* Stili specifici per mobile del blocco why-choose */
@media (max-width: 768px) {
    .why-choose {
        padding: 1.5rem 0;
    }
    
    /* Header della sezione - più chiaro e leggibile */
    .section-header {
        background: rgba(42, 34, 28, 0.75);
        backdrop-filter: blur(12px);
        border-radius: 28px;
        padding: 2rem 1.5rem;
        margin: 0 0.75rem 1.5rem 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    
    /* Titolo principale "perché scegliere la corte dei lecci" */
    .section-subtitle {
        font-family: var(--font-serif);
        font-size: 1.4rem;
        text-transform: none;
        letter-spacing: normal;
        color: #F5E6D3;
        font-weight: 600;
        display: block;
        text-align: center;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    /* Versione inglese "why choose us" più piccola */
    .section-subtitle-en {
        display: block;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 3px;
        color: var(--wood-light);
        font-weight: 400;
        margin-bottom: 1rem;
        text-align: center;
        font-family: var(--font-sans);
    }
    
    /* Descrizione migliorata */
    .section-description {
        color: rgba(245, 230, 211, 0.95);
        margin-top: 1rem;
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: center;
    }
    
    /* Griglia cards per mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 1rem 0.75rem;
    }
    
    /* Singola card - design migliorato per mobile */
    .feature-card {
        background: rgba(42, 34, 28, 0.55);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 24px;
        padding: 1.5rem;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .feature-card:hover {
        background: rgba(42, 34, 28, 0.7);
        transform: translateY(-3px);
    }
    
    /* Icone per le card (aggiunte con pseudo-elementi) */
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(184, 124, 78, 0.3);
        border-radius: 16px;
    }
    
    /* Assegno icone specifiche a ogni card */
    .feature-card:nth-child(1) .feature-icon::before { content: "🍖"; }
    .feature-card:nth-child(2) .feature-icon::before { content: "⏳"; }
    .feature-card:nth-child(3) .feature-icon::before { content: "🏞️"; }
    .feature-card:nth-child(4) .feature-icon::before { content: "📦"; }
    .feature-card:nth-child(5) .feature-icon::before { content: "⭐"; }
    .feature-card:nth-child(6) .feature-icon::before { content: "🏆"; }
    
    .feature-card h4 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        font-family: var(--font-serif);
        color: #F5E6D3;
        font-weight: 600;
    }
    
    .feature-card p {
        color: rgba(245, 230, 211, 0.85);
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0;
    }
}

/* Stili per schermi molto piccoli (fino a 480px) */
@media (max-width: 480px) {
    .section-header {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem 1rem 0.5rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .section-subtitle-en {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    
    .section-description {
        font-size: 0.85rem;
    }
    
    .features-grid {
        gap: 1rem;
        margin: 0.75rem 0.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
}

/* Stili per tablet in verticale (768px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 1rem 0;
    }
    
    .section-header {
        padding: 2rem 1.5rem;
        margin: 0 0 2rem 0;
    }
    
    .section-subtitle {
        font-size: 1.8rem;
    }
    
    .feature-card h4 {
        font-size: 1.2rem;
    }
}

/* ============================================
   SEZIONE PERCHÉ SCEGLIERE - UNICO BLOCCO MOBILE
   ============================================ */

/* Stili base per desktop (invariati) */
.why-choose {
    padding: 4rem 0;
}

/* Stili specifici per mobile - tutto in un unico blocco */
@media (max-width: 768px) {
    .why-choose {
        padding: 2rem 0;
    }
    
    .why-choose .container {
        padding: 0 16px;
    }
    
    /* UNICO BLOCCO che contiene TUTTO */
    .why-choose .section-header {
        background: rgba(42, 34, 28, 0.75);
        backdrop-filter: blur(12px);
        border-radius: 32px;
        padding: 1.8rem 1.5rem;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        text-align: center;
    }
    
    /* Titolo principale ben visibile */
    .section-subtitle {
        font-family: var(--font-serif);
        font-size: 1.5rem;
        text-transform: none;
        letter-spacing: normal;
        color: #F5E6D3;
        font-weight: 600;
        display: block;
        text-align: center;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    /* Versione inglese */
    .section-subtitle::after {
        content: "why choose us";
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 3px;
        color: var(--wood-light);
        font-weight: 400;
        margin-top: 0.5rem;
        font-family: var(--font-sans);
    }
    
    /* Descrizione dentro lo stesso blocco */
    .section-description {
        color: rgba(245, 230, 211, 0.95);
        margin-top: 1.2rem;
        font-size: 0.92rem;
        line-height: 1.6;
        text-align: center;
    }
    
    /* Griglia cards - sempre DENTRO lo stesso blocco */
    .features-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.8rem;
    }
    
    /* Card stilizzate */
    .feature-card {
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        padding: 1.2rem;
        transition: all 0.3s ease;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .feature-card:hover {
        background: rgba(0, 0, 0, 0.45);
        transform: translateX(5px);
        border-color: rgba(184, 124, 78, 0.5);
    }
    
    /* Icone con emoji */
    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
        display: inline-block;
        width: auto;
    }
    
    .feature-card h4 {
        font-size: 1.2rem;
        margin: 0;
        font-family: var(--font-serif);
        color: #F5E6D3;
        font-weight: 600;
    }
    
    .feature-card p {
        color: rgba(245, 230, 211, 0.85);
        font-size: 0.88rem;
        line-height: 1.5;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .why-choose .container {
        padding: 0 12px;
    }
    
    .why-choose .section-header {
        padding: 1.5rem 1.2rem;
        border-radius: 28px;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
    }
    
    .section-subtitle::after {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    
    .section-description {
        font-size: 0.85rem;
        margin-top: 1rem;
    }
    
    .features-grid {
        gap: 0.85rem;
        margin-top: 1.5rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 1.6rem;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.82rem;
    }
}

/* ============================================
   TITOLI CENTRATI PER MOBILE - PRODOTTI E STORIA
   ============================================ */

/* Stili per mobile - centratura titoli e sottotitoli */
@media (max-width: 768px) {
    
    /* Sezione Prodotti - centratura */
    .products-grid-section h1,
    .products-grid-section h2 {
        text-align: center;
    }
    
    .products-grid-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .products-grid-section h2 {
        font-size: 0.9rem;
        letter-spacing: 2px;
        text-align: center;
        margin-bottom: 2rem;
        color: var(--wood-light);
    }
    
    /* Alternativa: se usi .section-header nei prodotti */
    .products-grid-section .section-header,
    .products-section .section-header {
        text-align: center;
        margin: 0 auto 2rem auto;
    }
    
    /* Sezione Chi Siamo / Storia - centratura */
    .about-content h2,
    .about-text h2 {
        text-align: center;
    }
    
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-text p:first-of-type {
        text-align: center;
        font-style: italic;
        color: var(--wood-light);
        margin-bottom: 1.5rem;
    }
    
    /* Centratura per la sezione valori/storia */
    .values-section h3 {
        text-align: center;
    }
    
    /* Sezione Storia nella pagina Chi Siamo */
    .about-grid .about-text h2 {
        text-align: center;
    }
    
    .about-grid .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Centratura per eventuali titoli di sezione generici */
    .section-header h2,
    .section-header h1 {
        text-align: center;
    }
    
    .section-header .section-subtitle {
        text-align: center;
        display: block;
    }
}

/* Stili per schermi molto piccoli */
@media (max-width: 480px) {
    .products-grid-section h1 {
        font-size: 1.5rem;
    }
    
    .products-grid-section h2 {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    .about-text p:first-of-type {
        font-size: 0.85rem;
    }
}

/* Versione tablet (opzionale, per mantenere coerenza) */
@media (min-width: 769px) and (max-width: 992px) {
    .products-grid-section h1,
    .products-grid-section h2,
    .about-text h2 {
        text-align: center;
    }
    
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}