/* =========================================
   RESET, TIPOGRAFIA & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.72;
    letter-spacing: 0.015em;
    color: #212326;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Abril Fatface', serif;
    letter-spacing: -0.015em;
    color: #8d9982;
    font-weight: 400;
}

h1 { font-size: 64px; line-height: 1.2; }
h2 { font-size: 59px; line-height: 79px; margin-bottom: 1.2rem; }
h3 { font-size: 36px; line-height: 1.1; margin-bottom: 1rem; }
h4 { font-size: 24px; line-height: 1.1; }
h5 { font-size: 20px; line-height: 1.2; }
h6 { font-size: 16px; line-height: 1.2; margin-bottom: 0.8rem; }

p { margin-bottom: 1.2rem; }

a {
    color: #212326;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #8d9982;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.padding_testo { padding: 40px; }
.margin-right { margin-right: 150px !important; margin-bottom: 10px !important; }
.text-center { text-align: center; }
.bg-light { background-color: #f6f4ef; }

/* Contenitori Uniformati */
.storia-container,
.terra-container,
.pizza-cucina-container,
.menu-container,
.galleria-container,
.footer-container {
    width: 92%;
    max-width: 1248px;
    margin: 0 auto;
}

/* =========================================
   HEADER & HAMBURGER
   ========================================= */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 25px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-left, .header-right { flex: 1; }
.header-center { flex: 1; display: flex; justify-content: center; }
.header-right { display: flex; justify-content: flex-end; }

.header-logo-img {
    width: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.hamburger {
    position: fixed;
    top: 25px;
    right: max(4%, calc((100vw - 1248px) / 2));
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.85));
    transition: transform 0.2s ease;
}

.hamburger:hover {
    transform: scale(1.08);
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    margin: 6px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   OVERLAY & SIDE DRAWER MENU (400PX VERDE)
   ========================================= */
.nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background-color: #8d9982;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding: 50px 45px;
    box-sizing: border-box;
    overflow-y: auto;
}

.nav-drawer.active {
    transform: translateX(0);
}

.nav-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-close:hover { opacity: 0.7; }

.drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.drawer-logo {
    margin-top: 20px;
    margin-bottom: 40px;
}

.drawer-logo img {
    width: 250px;
    max-width: 100%;
    height: auto;
    display: block;
}

.drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drawer-menu-list a {
    color: #ffffff;
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    line-height: 35px;
    font-weight: 300;
    transition: opacity 0.2s ease;
}

.drawer-menu-list a:hover { opacity: 0.75; color: #ffffff; }

.drawer-socials {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: auto;
}

.drawer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.drawer-social-btn:hover { transform: scale(1.1); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    padding: 0 20px;
}

.hero-title-img {
    max-width: 520px;
    width: 85vw;
    height: auto;
    margin-bottom: 25px;
}

.hero-subtitle {
    color: #ffffff;
    font-size: 34px !important;
    line-height: 1.33;
    font-family: 'Abril Fatface', serif;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

/* =========================================
   SEZIONE STORIA
   ========================================= */
.storia-section {
    padding: 30px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.storia-container {
    display: flex;
    align-items: flex-start;
}

.storia-col-1 {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    text-align: center;
    padding-right: 20px;
}

.storia-title {
    color: #8d9982;
    font-family: 'Abril Fatface', serif;
    font-size: 60px;
    line-height: 80px;
    letter-spacing: -0.015em;
    text-align: left;
    margin: 0;
}

.storia-images-wrapper {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.storia-col-2, .storia-col-3 {
    flex: 0 0 50%;
    max-width: 50%;
}

#storia-img-up, .storia-col-3-inner {
    will-change: transform;
    transition: transform 0.1s linear;
}

#storia-img-up, .storia-col-3-inner img {
    width: 100%;
    height: auto;
    display: block;
}

.storia-col-3-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.storia-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    line-height: 31px;
    color: #212326;
    margin: 0;
}

/* =========================================
   SEZIONE DALLA TERRA ALLA TAVOLA
   ========================================= */
.terra-section {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.terra-container {
    display: flex;
    flex-direction: column;
}

.terra-header-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 30px;
}

.terra-title {
    font-family: 'Abril Fatface', serif;
    color: #8d9982;
    font-size: clamp(36px, 4.2vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0;
    text-align: right;
}

.terra-title-indent { margin-top: 5px; }

.terra-content-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.terra-col-25 { flex: 0 0 calc(25% - 10px); max-width: calc(25% - 10px); }
.terra-col-75 { flex: 0 0 calc(75% - 30px); max-width: calc(75% - 30px); }

.terra-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    line-height: 31px;
    color: #212326;
    margin: 0;
}

.terra-col-75 img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

/* =========================================
   SEZIONE PIZZERIA & CUCINA
   ========================================= */
.pizza-cucina-section {
    padding: 0;
    background-color: #ffffff;
    overflow: hidden;
}

.pizza-cucina-container {
    display: flex;
    flex-direction: column;
}

.pizza-cucina-row {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.pizza-cucina-col { flex: 0 0 50%; max-width: 50%; }

.pizza-cucina-col.col-text {
    padding: 40px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pizza-cucina-title {
    font-family: 'Abril Fatface', serif;
    font-size: 60px;
    line-height: 80px;
    letter-spacing: -0.015em;
    text-align: left;
    margin: 0 0 20px 0;
    color: #8d9982;
}

.pizza-cucina-desc {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    line-height: 31px;
    color: #212326;
    margin: 0;
}

.pizza-cucina-col.col-carousel {
    position: relative;
    min-height: 480px;
}

.pizza-swiper, .cucina-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.pizza-swiper .swiper-slide img,
.cucina-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.pizza-swiper .swiper-button-next,
.pizza-swiper .swiper-button-prev,
.cucina-swiper .swiper-button-next,
.cucina-swiper .swiper-button-prev {
    color: #ffffff !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pizza-swiper:hover .swiper-button-next,
.pizza-swiper:hover .swiper-button-prev,
.cucina-swiper:hover .swiper-button-next,
.cucina-swiper:hover .swiper-button-prev {
    opacity: 1;
}

/* =========================================
   SEZIONE MENU
   ========================================= */
.menu-section {
    padding: 0 0 80px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.menu-col-left, .menu-col-right {
    flex: 0 0 calc(50% - 30px);
    max-width: calc(50% - 30px);
    display: flex;
    align-items: center;
}

.menu-col-left { justify-content: center; }

.menu-img-circle {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}

.menu-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-title {
    font-family: 'Abril Fatface', serif;
    font-size: 50px;
    line-height: 60px;
    letter-spacing: -0.015em;
    text-align: left;
    margin: 0 0 20px 0;
    color: #8d9982;
}

.menu-btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.menu-btn-circle {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background-color: #8d9982;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Abril Fatface', serif;
    font-size: 40px;
    line-height: 50px;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.menu-btn-circle:hover {
    background-color: #7a8770;
    color: #ffffff;
    transform: scale(1.06);
}

/* =========================================
   SEZIONE GALLERIA FOTOGRAFICA
   ========================================= */
.galleria-section {
    padding: 60px 0;
    background-color: #ffffff;
    overflow: hidden;
}

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

.galleria-swiper .swiper-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.galleria-swiper .swiper-button-next,
.galleria-swiper .swiper-button-prev {
    color: #ffffff !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    opacity: 0.9 !important;
    filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.galleria-swiper .swiper-button-prev { left: 20px !important; }
.galleria-swiper .swiper-button-next { right: 20px !important; }

.galleria-swiper .swiper-button-next::after,
.galleria-swiper .swiper-button-prev::after {
    font-size: 2.2rem !important;
    font-weight: bold;
}

.galleria-swiper .swiper-button-next:hover,
.galleria-swiper .swiper-button-prev:hover {
    opacity: 1 !important;
    transform: scale(1.15);
}

/* =========================================
   SEZIONE FOOTER
   ========================================= */
.site-footer {
    padding: 60px 0 40px;
    background-color: #ffffff;
    color: #212326;
    font-family: 'Work Sans', sans-serif;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-logo-col, .footer-social-col { flex: 0 0 50%; max-width: 50%; }
.footer-logo { width: 350px; max-width: 100%; height: auto; display: block; }
.footer-social-col { display: flex; justify-content: flex-end; }

.social-icons { display: flex; gap: 15px; }

.social-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #8d9982;
    color: #8d9982;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover { background-color: #e9ebe6; }

.social-btn::after {
    content: attr(data-popover);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333333;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.social-btn:hover::after { opacity: 1; visibility: visible; }

.social-btn-full {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #8d9982;
    color: #8d9982;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn-full:hover { opacity: 0.7; }

.social-btn-full::after {
    content: attr(data-popover);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333333;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.social-btn-full:hover::after { opacity: 0.7; visibility: visible; }

.footer-main-row {
    display: flex;
    width: 100%;
    gap: 50px;
    align-items: flex-start;
    margin-top: 30px;
}

.footer-info-col, .footer-map-col {
    flex: 0 0 calc(50% - 25px);
    max-width: calc(50% - 25px);
    width: 100%;
}

.footer-info-col { display: flex; flex-direction: column; }
.footer-address { font-size: 18px; line-height: 31px; color: #212326; margin-bottom: 30px; }
.footer-subgrid { display: flex; gap: 40px; margin-bottom: 35px; }

.footer-contacts { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.contact-item { display: flex; align-items: center; gap: 12px; }

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #8d9982;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-hours { flex: 1; }
.footer-hours-title {
    font-family: 'Abril Fatface', serif;
    font-size: 28px;
    color: #8d9982;
    margin-bottom: 15px;
    font-weight: 400;
}

.hours-text { font-size: 18px; line-height: 31px; color: #212326; margin: 0; }

.footer-legal-buttons { display: flex; gap: 15px; margin-bottom: 35px; }

.btn-pill {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #b0b0b0;
    border-radius: 30px;
    color: #707070;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-pill:hover { border-color: #8d9982; color: #8d9982; }
.footer-copyright { font-size: 14px; margin: 0; }

.footer-map-col iframe {
    width: 100%;
    height: 360px;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =========================================
   GO TO TOP
   ========================================= */
.go-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #212326;
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    border: 1px solid #2a2c2d;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.go-top.show {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   PAGINA INFORMATIVA PRIVACY
   ========================================= */
.privacy-section {
    padding: 160px 0 100px;
    background-color: #ffffff;
    color: #000000;
}

.privacy-container {
    width: 92%;
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-title {
    font-family: 'Abril Fatface', serif;
    font-size: 48px;
    line-height: 1.2;
    color: #8d9982;
    margin-bottom: 10px;
}

.privacy-date {
    font-size: 15px;
    color: #555555;
    margin-bottom: 40px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
}

div.privacy-content, div.cookie-policy-p {
    margin-bottom:  20px;
}

.privacy-content h2 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
    color: #000000;
    margin: 35px 0 15px;
}

.privacy-content p {
    font-family: 'Work Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #000000;
    margin-bottom: 20px;
}

.privacy-content ul {
    margin: 0 0 20px 25px;
    color: #000000;
}

.privacy-content ul li {
    font-family: 'Work Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.privacy-content a {
    color: #8d9982;
    text-decoration: underline;
}

.privacy-content a:hover {
    color: #000000;
}

.privacy-generator {
    margin-top: 40px;
    font-size: 14px;
    color: #666666;
}

/* =========================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================= */
@media (max-width: 992px) {
    h1 { font-size: 48px; }
    h2 { font-size: 32px; line-height: 42px; }
    h3 { font-size: 28px; }

    .margin-right { margin-right: 0px !important; }
    .padding_testo { padding: 0px; }
    
    .header-logo-img { width: 80px; height: 80px; }

    /* Layout responsive a colonna singola */
    .storia-container,
    .storia-images-wrapper,
    .terra-content-row,
    .pizza-cucina-row,
    .menu-row,
    .footer-top-row,
    .footer-main-row {
        flex-direction: column !important;
        gap: 30px;
    }

    .pizza-cucina-row.row-reverse { flex-direction: column-reverse !important; }

    .storia-col-1, .storia-images-wrapper, .storia-col-2, .storia-col-3,
    .terra-col-25, .terra-col-75, .pizza-cucina-col,
    .menu-col-left, .menu-col-right,
    .footer-logo-col, .footer-social-col, .footer-info-col, .footer-map-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-right: 0;
    }

    /* Mappa Google 100% di larghezza */
    .footer-map-col iframe {
        width: 100% !important;
        height: 350px;
    }
.terra-section {
    padding: 50px 0;
}
    .terra-header-col { align-items: center; text-align: center; }
    .terra-title { text-align: center; }


    .pizza-cucina-col.col-text { padding: 40px 20px; }
    .pizza-cucina-title { font-size: 38px; line-height: 50px; }
    .pizza-cucina-col.col-carousel { min-height: 350px; }

    .menu-img-circle { max-width: 320px; }
    .menu-title { font-size: 28px; line-height: 38px; text-align: center; }
    .menu-btn-circle { width: 180px; height: 180px; font-size: 24px; line-height: 30px; }

    .galleria-swiper .swiper-button-next::after,
    .galleria-swiper .swiper-button-prev::after { font-size: 1.8rem !important; }

    .footer-social-col { justify-content: flex-start; }
    .footer-subgrid { flex-direction: column; gap: 25px; }
    
    #storia-img-up, .storia-col-3-inner { transform: none !important; }

    .privacy-section { padding-top: 120px; }
    .privacy-title { font-size: 36px; }
    .privacy-content h2 { font-size: 19px; }
    .privacy-content p, .privacy-content ul li { font-size: 15px; }
}

@media (max-width: 768px) {
    .hero-subtitle { font-size: 20px !important; }
}