/* Agriturismo Collina San Michele */
:root {
    --paper: #fffdf9;
    --cream: #f5efe4;
    --sand: #ebe2d2;
    --head: #f3ede3;
    --ink: #2b2520;
    --muted: #6d6257;
    --wine: #7d2f2a;
    --wine-dark: #5f221e;
    --olive: #66703f;
    --line: #e3d9c8;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(43, 37, 32, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); }
a:hover { color: var(--wine-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 960px; }
.section { padding: 72px 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); margin-bottom: .6em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--wine); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; color: #fff; }

.btn { display: inline-block; align-self: flex-start; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--wine); color: #fff; font: 600 .92rem/1.3 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--wine-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--wine); box-shadow: inset 0 0 0 2px var(--wine); }
.btn-ghost:hover { background: var(--wine); color: #fff; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--head); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(43, 37, 32, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo img { height: 68px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { position: relative; display: block; padding: 10px 14px; border-radius: 6px; color: var(--ink); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.site-nav ul a:hover { color: var(--wine); background: rgba(125, 47, 42, .06); }
.site-nav ul a.active { color: var(--wine); }
.site-nav ul a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--wine); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.lang a { padding: 5px 12px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.lang a.active { background: var(--wine); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
    .header-inner { min-height: 68px; }
    .logo img { height: 52px; }
    .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; }
    .nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 20px; background: var(--head); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(43, 37, 32, .12); }
    .nav-open .site-nav { display: flex; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
    .site-nav ul a.active::after { display: none; }
    .lang { align-self: flex-start; margin-top: 16px; }
    html:not(.js) .nav-toggle { display: none; }
    html:not(.js) .site-nav { display: flex; position: static; box-shadow: none; }
}

/* --- Slider home --- */
.hero { position: relative; height: clamp(340px, 68vh, 680px); overflow: hidden; background: #2b2520; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .6)); }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 60px; z-index: 1; color: #fff; font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 3.2vw, 2.4rem); line-height: 1.25; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.slide figcaption span { display: block; max-width: 760px; }
.dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.dots button[aria-current="true"] { background: #fff; }
@media (max-width: 640px) {
    .hero { height: 56vh; min-height: 300px; }
    .slide figcaption { bottom: 50px; }
}

/* --- Home --- */
.intro { text-align: center; max-width: 840px; }
.intro h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.lead { font-size: 1.15rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.card-body h2 { font-size: 1.45rem; }
.card-body p { flex: 1; color: var(--muted); }
.band { background: var(--wine); color: #f4e6e0; }
.band-inner { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.fact span { font-size: .9rem; opacity: .85; }
.band .btn { background: #fff; color: var(--wine); }
.band .btn:hover { background: var(--cream); }
@media (max-width: 980px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .band-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .cards { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .band-inner { grid-template-columns: 1fr; }
}

/* --- Testata pagine interne --- */
.page-head { position: relative; padding: 100px 0 56px; background: #3a332c center / cover no-repeat; color: #fff; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 24, 20, .3), rgba(30, 24, 20, .72)); }
.page-head .container { position: relative; }
.page-head h1 { margin: 0; color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-head .eyebrow { color: #ecdcb9; }
@media (max-width: 640px) {
    .page-head { padding: 64px 0 34px; }
}

/* --- Agriturismo --- */
.features { display: flex; flex-direction: column; gap: 64px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media img { width: 100%; aspect-ratio: 12 / 7; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature-text p { color: var(--muted); }
.feature-text b { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 72px; padding: 34px 36px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.cta h2 { margin: 0; font-size: 1.6rem; }
.cta p { margin: .3em 0 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) {
    .features { gap: 44px; }
    .feature { grid-template-columns: 1fr; gap: 20px; }
    .feature:nth-child(even) .feature-media { order: 0; }
    .cta { padding: 26px 22px; margin-top: 48px; }
}

/* --- Galleria --- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
.cat { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); color: #fff; text-decoration: none; background: var(--sand); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .65)); }
.cat span { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; font-family: var(--serif); font-size: 1.25rem; }
.cat:hover { color: #fff; }
.cat:hover img { transform: scale(1.05); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery-item { display: block; overflow: hidden; border-radius: 8px; background: var(--sand); }
.gallery-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 900px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 24px; padding: 0 20px 6px; scrollbar-width: none; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
    .cat-grid { gap: 10px; }
    .cat span { font-size: 1.05rem; left: 12px; bottom: 8px; }
}

.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 56px 72px; background: rgba(15, 12, 10, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; left: 0; right: 0; bottom: 18px; color: #ccc; font-size: .85rem; text-align: center; }
@media (max-width: 640px) {
    .lightbox { padding: 64px 8px 80px; }
    .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}

/* --- Prezzi --- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 28px 0 36px; }
.price { padding: 28px 24px; background: var(--paper); border-top: 4px solid var(--sand); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.price.featured { border-top-color: var(--wine); }
.price h3 { font-size: 1.35rem; margin-bottom: .2em; }
.price-note { min-height: 3.2em; color: var(--muted); font-size: .92rem; }
.amount { margin: .2em 0; font-family: var(--serif); font-size: 2rem; color: var(--wine); }
.price small { display: block; color: var(--muted); font-size: .85rem; }
.seasons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.season { padding: 22px 26px; background: var(--sand); border-radius: var(--radius); }
.season h3 { font-size: 1.15rem; }
.season p { margin: 0; }
.note { margin-top: 24px; color: var(--muted); font-style: italic; }
@media (max-width: 860px) {
    .prices, .seasons { grid-template-columns: 1fr; }
    .price-note { min-height: 0; }
}

/* --- Promozioni --- */
.menus { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; gap: 28px; }
.menu { overflow: hidden; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.menu > img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.menu-body { padding: 30px 32px; }
.menu h2 { font-size: 1.7rem; margin-bottom: .1em; }
.menu .sub { margin-bottom: 1.2em; color: var(--olive); font-family: var(--serif); font-style: italic; }
.menu h3 { margin: 1.4em 0 .4em; color: var(--wine); font: 700 .78rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { padding: 5px 0; border-bottom: 1px dotted var(--line); }
.menu-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 1.4em; padding-top: 12px; border-top: 2px solid var(--ink); font-weight: 600; }
.menu-price strong { font-family: var(--serif); font-size: 1.5rem; color: var(--wine); white-space: nowrap; }
.menu .fine { margin: .8em 0 0; color: var(--muted); font-size: .88rem; font-style: italic; }
.promo { grid-column: 1 / -1; background: var(--olive); color: #f4f1e6; }
.promo h2, .promo h3 { color: #fff; }
.promo .sub { color: #e6e0c4; }
.promo li { border-color: rgba(255, 255, 255, .25); }
.promo .menu-price { border-color: #fff; }
.promo .menu-price strong { color: #fff; }
@media (max-width: 860px) {
    .menus { grid-template-columns: 1fr; }
    .menu-body { padding: 24px 22px; }
}

/* --- Contatti --- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 44px; }
.map { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; padding: 24px; background: var(--sand); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.map svg { width: 48px; height: 48px; margin-bottom: 12px; fill: var(--wine); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-note { max-width: 340px; margin: 12px 0 0; color: var(--muted); font-size: .85rem; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--olive); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.contact-list a { font-size: 1.1rem; text-decoration: none; word-break: break-word; }
.contact-info h3 { margin-top: 30px; font-size: 1.25rem; }
@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .map { aspect-ratio: 4 / 3.4; }
}

/* --- Footer --- */
.site-footer { margin-top: 80px; background: #2b2520; color: #d9cfbf; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h2 { margin-bottom: 1em; color: #fff; font: 700 .78rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.site-footer a { color: #f0d9a8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }
.oi img { width: 150px; padding: 8px; background: #fff; border-radius: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #a99d8c; font-size: .82rem; }
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .site-footer { margin-top: 56px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
