/*
Theme Name: Wine Guide Tuscany
Theme URI: https://wineguidetuscany.com/
Author: Wine Guide Tuscany – Silvia Capanni
Author URI: https://wineguidetuscany.com/
Description: Tema su misura per wineguidetuscany.com – tour del vino privati in Toscana con la sommelier Silvia Capanni. Sito in inglese, ottimizzato per SEO e AI: dati strutturati Schema.org, hreflang, Open Graph, sitemap, llms.txt e robots.txt aperto ai crawler AI.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wineguidetuscany
Tags: one-column, custom-logo, translation-ready
*/

/* ---------- Font locali (nessuna chiamata a Google: GDPR friendly) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url(assets/fonts/jost-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/jost-latin-500-normal.woff2) format("woff2"); }

:root {
	--wine: #5b1a2b;
	--wine-deep: #2b0e16;
	--wine-soft: #7d2f42;
	--cream: #f8f3ec;
	--sand: #efe6d8;
	--gold: #b8925a;
	--olive: #5f6b3c;
	--ink: #2a2422;
	--muted: #6d625c;
	--line: rgba(42, 36, 34, .14);
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 4px;
	--wrap: 1200px;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: clip; margin: 0; font-family: var(--sans); font-weight: 300; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: var(--wine-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--wine-deep); letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1.1em; }
strong { font-weight: 500; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { --wrap: 820px; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--wine); color: #fff; padding: .6em 1em; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.eyebrow-light { color: #e2c493; }

.btn { display: inline-block; font-family: var(--sans); font-weight: 500; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 1em 2em; border: 1px solid var(--wine); background: var(--wine); color: #fff; border-radius: var(--radius); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--wine-deep); border-color: #fff; }
.btn-small { padding: .7em 1.2em; font-size: .72rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background .3s, box-shadow .3s; }
.wgt-inner .site-header, .site-header.is-scrolled, .site-header.is-open { background: rgba(248, 243, 236, .97); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--wine-deep); margin: 0; }
.brand-name em { font-style: italic; font-weight: 400; color: var(--wine); }
.brand-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.wgt-home .site-header:not(.is-scrolled):not(.is-open) .brand-name,
.wgt-home .site-header:not(.is-scrolled):not(.is-open) .brand-name em,
.wgt-home .site-header:not(.is-scrolled):not(.is-open) .brand-sub,
.wgt-home .site-header:not(.is-scrolled):not(.is-open) .site-nav a:not(.btn) { color: #fff; }
.brand-logo { max-height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.site-nav a:not(.btn):hover { color: var(--gold) !important; }
.lang-switch { border: 1px solid currentColor; padding: .25em .55em; border-radius: var(--radius); font-weight: 500 !important; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--wine-deep); transition: transform .25s, opacity .25s; content: ""; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }
.wgt-home .site-header:not(.is-scrolled):not(.is-open) .nav-toggle-bar,
.wgt-home .site-header:not(.is-scrolled):not(.is-open) .nav-toggle-bar::before,
.wgt-home .site-header:not(.is-scrolled):not(.is-open) .nav-toggle-bar::after { background: #fff; }
.is-open .nav-toggle-bar { background: transparent; }
.is-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
	.nav-toggle { display: block; }
	.site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: 1.5rem 1.25rem 2rem; background: var(--cream); box-shadow: 0 12px 24px rgba(0,0,0,.08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; }
	.is-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav ul { flex-direction: column; gap: .9rem; }
	.site-nav a:not(.btn) { font-size: .95rem; color: var(--ink) !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,8,12,.55) 0%, rgba(20,8,12,.15) 35%, rgba(20,8,12,.72) 100%); }
.hero-content { padding: calc(var(--header-h) + 3rem) 0 clamp(4rem, 10vh, 7rem); max-width: 860px; margin-left: max(1.25rem, (100% - var(--wrap)) / 2); }
.hero h1 { color: #fff; margin-bottom: .35em; text-wrap: balance; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; color: rgba(255,255,255,.92); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- Facts ---------- */
.facts { background: var(--wine-deep); color: #f3e7d9; }
.facts-list { list-style: none; margin: 0 auto; padding: 2.2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.facts-list li { display: flex; flex-direction: column; border-left: 1px solid rgba(226,196,147,.35); padding-left: 1.1rem; }
.facts-list strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: #e2c493; line-height: 1.2; }
.facts-list span { font-size: .9rem; color: rgba(243,231,217,.8); line-height: 1.5; }
@media (max-width: 860px) { .facts-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.alt-bg { background: var(--sand); }
.dark-bg { background: var(--wine-deep); color: #efe3d6; }
.dark-bg h2, .dark-bg h3 { color: #fff; }
.dark-bg a { color: #e2c493; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro { font-size: 1.15rem; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-photo::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.about-photo figcaption { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--muted); margin-top: 2rem; }
blockquote { margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--gold); }
blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.35; color: var(--wine); margin: 0; }
.creds { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.creds li { padding-left: 1.6rem; position: relative; font-size: .95rem; }
.creds li::before { content: ""; position: absolute; left: 0; top: .72em; width: .9rem; height: 1px; background: var(--gold); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 440px; } .about-photo::before { inset: .8rem -.7rem -.8rem .8rem; } }

/* Tours */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card { background: var(--cream); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43,14,22,.12); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.5rem 1.5rem 1.8rem; }
.card-body p { font-size: .97rem; color: var(--muted); margin: 0; }
@media (max-width: 1100px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.included { margin-top: 3.5rem; padding: clamp(2rem, 4vw, 3rem); background: var(--cream); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 2fr auto; gap: 2rem; align-items: center; }
.included h3 { margin: 0; }
.included ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; font-size: .95rem; }
.included li { padding-left: 1.4rem; position: relative; }
.included li::before { content: "✓"; position: absolute; left: 0; color: var(--olive); font-weight: 500; }
@media (max-width: 960px) { .included { grid-template-columns: 1fr; } .included ul { grid-template-columns: 1fr; } .included .btn { justify-self: start; } }

/* Areas */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; margin-bottom: clamp(3.5rem, 8vw, 6rem); }
.area:last-child { margin-bottom: 0; }
.area-flip .area-media { order: 2; }
.area-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.area-num { font-family: var(--serif); font-size: 3.5rem; line-height: 1; color: var(--gold); opacity: .7; margin-bottom: .3em; }
.area-tag { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); font-weight: 500; }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; } .area-flip .area-media { order: 0; } }

/* Wineries */
.wineries-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.points li { display: grid; gap: .1rem; padding-top: 1.2rem; border-top: 1px solid rgba(226,196,147,.25); }
.points strong { font-family: var(--serif); font-size: 1.45rem; color: #e2c493; font-weight: 500; }
.points span { color: rgba(239,227,214,.8); font-size: .95rem; }
.wineries-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wineries-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.wineries-photos img:nth-child(2) { margin-top: 3rem; }
@media (max-width: 900px) { .wineries-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: .6rem; }
.steps p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: .8rem; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid figure:nth-child(8) { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gallery-grid figure:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 2rem; color: var(--gold); transition: transform .25s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item h3 { margin: 0; font-size: 1.45rem; }
.faq-item p { padding-bottom: 1.2rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.contact-based { margin-top: 2rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: #e2c493; }
.contact-card { background: var(--cream); color: var(--ink); padding: clamp(1.8rem, 4vw, 3.2rem); border-radius: var(--radius); }
.contact-card .eyebrow { margin-bottom: .4rem; }
.contact-email { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; margin-bottom: 1.6rem; overflow-wrap: anywhere; }
.dark-bg .contact-card a:not(.btn) { color: var(--wine); text-decoration-thickness: 1px; }
.contact-hint-title { font-size: .95rem; color: var(--muted); margin-bottom: .5rem; }
.contact-hints { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .35rem; font-size: .97rem; }
.contact-hints li { padding-left: 1.4rem; position: relative; }
.contact-hints li::before { content: "✓"; position: absolute; left: 0; color: var(--olive); font-weight: 500; }
.dark-bg .contact-card .btn { color: #fff; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #1d0a10; color: rgba(239,227,214,.75); padding: 4rem 0 2rem; font-size: .93rem; }
.site-footer a { color: rgba(239,227,214,.9); text-decoration: none; }
.site-footer a:hover { color: #e2c493; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name em { color: #e2c493; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-contact p { margin: 0 0 .4rem; }
.footer-bottom { border-top: 1px solid rgba(239,227,214,.12); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pagine interne / blog ---------- */
.inner-main { padding: calc(var(--header-h) + 4rem) 0 6rem; min-height: 70vh; }
.entry { margin-bottom: 3rem; }
.entry-meta { color: var(--muted); font-size: .9rem; }
.entry-thumb { border-radius: var(--radius); margin-bottom: 2rem; }
.entry-content img { border-radius: var(--radius); }

/* ---------- Animazioni ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
