/* =========================================================
   Le Pietrine — Az. Agricola Comparini
   Stylesheet responsive (CSS puro)
   ========================================================= */

/* ------- Reset & base ------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #e6c76b;
    text-decoration: none;
    transition: color .2s ease;
}

a:hover,
a:focus {
    color: #fff;
    text-decoration: underline;
}

/* ------- Layout wrapper ------- */
.container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ------- Header ------- */
.site-header {
    padding: 32px 16px 0;
    text-align: center;
    border-bottom: 1px solid #222;
}

.site-header .stemma {
    max-width: 110px;
    margin: 0 auto 12px;
}

.site-header .brand {
    max-width: 430px;
    margin: 0 auto 20px;
}

.site-header h1.visually-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ------- Navigation ------- */
.main-nav {
    background-color: #000;
    border-top: 1px solid #222;
    border-bottom: 1px solid #cccc33;
    margin-top: 8px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #cccc33;
    color: #cccc33;
    font-size: 1rem;
    padding: 8px 14px;
    cursor: pointer;
    margin: 10px auto;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: inherit;
}

.nav-toggle:hover {
    background-color: #cccc33;
    color: #000;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-list li {
    border-right: 1px solid #333;
}

.nav-list li:last-child {
    border-right: none;
}

.nav-list a {
    display: block;
    padding: 12px 20px;
    color: #e6e6e6;
    font-size: .82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus,
.nav-list a.active {
    background-color: #cccc33;
    color: #000;
}

/* Language switch */
.lang-switch {
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px 0;
    font-size: .78rem;
    color: #999;
}

.lang-switch a {
    color: #e6e6e6;
    margin: 0 4px;
}

.lang-switch .current {
    color: #cccc33;
    font-weight: bold;
    margin: 0 4px;
}

/* ------- Main content ------- */
main {
    padding: 24px 0 48px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 16px 0 24px;
    letter-spacing: 1px;
}

.intro {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 20px;
}

.intro p + p {
    margin-top: 16px;
}

.section {
    margin-bottom: 40px;
}

.section p {
    margin-bottom: 14px;
}

.section h2 {
    font-size: 1.25rem;
    margin: 24px 0 10px;
    color: #fff;
    letter-spacing: .5px;
}

.section h3 {
    font-size: 1rem;
    margin: 18px 0 8px;
    color: #cccc33;
    text-decoration: underline;
    font-weight: 700;
}

.caption {
    font-size: .82rem;
    color: #c0c0c0;
    margin-top: 6px;
    text-align: center;
    font-style: italic;
}

.photo {
    margin: 20px 0;
    text-align: center;
}

.photo img {
    margin: 0 auto;
    border: 1px solid #1a1a1a;
}

.divider {
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #cccc33 20%, #cccc33 80%, transparent);
    margin: 32px auto;
    border: none;
}

/* ------- Home hero ------- */
.hero {
    text-align: center;
    margin: 0 auto 28px;
}

.hero-image {
    margin: 16px auto;
    max-width: 100%;
}

.hero-claim {
    font-size: 1.1rem;
    color: #e6e6e6;
    margin-top: 16px;
    font-style: italic;
    line-height: 1.7;
}

.wine-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 28px;
    padding: 0 10px;
    justify-items: center;
}

.wine-gallery figure {
    text-align: center;
}

.wine-gallery img {
    max-height: 260px;
    width: auto;
    margin: 0 auto 8px;
}

.wine-gallery figcaption {
    font-size: .82rem;
    color: #cccc33;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ------- Vendemmie table ------- */
.vintage-list {
    margin-top: 20px;
}

.vintage {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid #1a1a1a;
}

.vintage:first-child {
    border-top: none;
}

.vintage-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cccc33;
    letter-spacing: 1px;
}

.vintage-wines {
    font-size: .95rem;
}

.vintage-wines .wine {
    margin-bottom: 14px;
}

.vintage-wines .wine-name {
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.vintage-wines .wine-detail {
    color: #e6e6e6;
    font-size: .9rem;
    display: block;
}

.vintage-wines .wine-meta {
    color: #c0c0c0;
    font-size: .85rem;
    display: block;
}

/* Vintage side bottles illustration */
.vintage-bottles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.vintage-bottles img {
    max-height: 320px;
    width: auto;
    margin: 0 auto;
}

.vintage-bottles figcaption {
    font-size: .78rem;
    color: #cccc33;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ------- Contatti ------- */
.contact-block {
    margin-bottom: 24px;
    font-size: 1rem;
}

.contact-block strong {
    color: #cccc33;
    display: block;
    margin-bottom: 4px;
    letter-spacing: .5px;
}

.contact-block p {
    color: #e6e6e6;
    margin-bottom: 2px;
}

.map-wrapper {
    position: relative;
    padding-top: 56.25%;
    margin: 20px 0;
    overflow: hidden;
    background: #111;
    border: 1px solid #222;
}

.map-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------- Lists ------- */
.bullet-list {
    margin: 16px 0 16px 22px;
    color: #e6e6e6;
}

.bullet-list li {
    margin-bottom: 6px;
}

/* ------- Footer ------- */
.site-footer {
    background-color: #000;
    border-top: 1px solid #1a1a1a;
    padding: 24px 16px;
    font-size: .85rem;
    color: #c0c0c0;
    text-align: center;
}

.site-footer .footer-content {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.site-footer p {
    margin: 0;
    text-align: left;
}

.site-footer .copyright {
    color: #888;
    font-size: .78rem;
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.site-footer a {
    color: #e6e6e6;
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */
@media (max-width: 720px) {
    .site-header {
        padding: 20px 12px 0;
    }

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

    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list li {
        border-right: none;
        border-top: 1px solid #1a1a1a;
        width: 100%;
    }

    .nav-list a {
        padding: 14px 20px;
        text-align: center;
    }

    .vintage {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .vintage-year {
        font-size: 1.2rem;
        color: #cccc33;
        border-bottom: 1px solid #333;
        padding-bottom: 6px;
        margin-bottom: 8px;
    }

    .site-footer .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .site-footer p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

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

    .hero-claim {
        font-size: 1rem;
    }

    .wine-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
