/*
Theme Name: Apuan Walks
Theme URI: https://github.com/l00f00/apuanwalks
Author: Websmith
Description: Tema WordPress per Mariluna Bartolo, guida naturalistica per escursioni tra montagne, mare e citta.
Version: 0.1.0
Text Domain: apuanwalks
*/

:root {
    --primary: #2f6f4e;
    --primary-hover: #255a40;
    --accent: #d88a3d;
    --sand: #f6f1e8;
    --sea: #2f7f92;
    --ink: #1f2a24;
    --muted: #637168;
    --line: rgba(31, 42, 36, 0.14);
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(31, 42, 36, 0.12);
    --heading: Georgia, "Times New Roman", serif;
    --body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfaf7; font-family: var(--body); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,250,247,0.9); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo a { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.custom-logo { max-height: 72px; width: auto; }
.main-navigation ul { list-style: none; display: flex; gap: 28px; align-items: center; margin: 0; padding: 0; }
.main-navigation a { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.main-navigation a:hover, .current-menu-item > a { color: var(--primary); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; }
.menu-toggle .bar { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); }

.hero { min-height: 720px; display: grid; align-items: end; position: relative; isolation: isolate; background: linear-gradient(130deg, rgba(31,42,36,0.74), rgba(47,127,146,0.28)), var(--primary); background-position: center; background-size: cover; color: var(--white); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(0deg, rgba(31,42,36,0.72), transparent); z-index: -1; }
.hero-content { width: min(760px, 100%); padding: 170px 0 94px; }
.eyebrow { margin: 0 0 14px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
h1, h2, h3 { font-family: var(--heading); line-height: 1.08; letter-spacing: 0; margin: 0; color: inherit; }
h1 { font-size: clamp(3.2rem, 7vw, 6.8rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.2rem); }
h3 { font-size: 1.55rem; }
.hero p { max-width: 620px; font-size: 1.22rem; color: rgba(255,255,255,0.88); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 24px; border: 0; background: var(--primary); color: var(--white); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; cursor: pointer; }
.btn:hover { background: var(--primary-hover); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { background: var(--sand); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.72); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.section { padding: 96px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.painpoints-section { margin-top: -48px; position: relative; z-index: 3; }
.painpoints-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.painpoint-card { min-height: 230px; padding: 26px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(31,42,36,0.12); display: flex; flex-direction: column; justify-content: space-between; }
.painpoint-number { color: var(--accent); font-weight: 900; letter-spacing: 0.12em; font-size: 0.78rem; }
.painpoint-card h3 { font-size: 1.35rem; color: var(--ink); margin: 18px 0 12px; }
.painpoint-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.experience-card { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; background: linear-gradient(180deg, rgba(31,42,36,0.12), rgba(31,42,36,0.72)), var(--primary); background-size: cover; background-position: center; box-shadow: var(--shadow); }
.experience-mountain { background-image: linear-gradient(180deg, rgba(31,42,36,0.08), rgba(31,42,36,0.72)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1200&q=80'); }
.experience-sea { background-image: linear-gradient(180deg, rgba(31,42,36,0.08), rgba(31,42,36,0.72)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1200&q=80'); }
.experience-city { background-image: linear-gradient(180deg, rgba(31,42,36,0.08), rgba(31,42,36,0.72)), url('https://images.unsplash.com/photo-1541370976299-4d24ebbc9077?auto=format&fit=crop&w=1200&q=80'); }
.experience-card p { margin-bottom: 0; color: rgba(255,255,255,0.86); }

.route-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.route-card { background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(31,42,36,0.07); }
.route-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.route-card-content { padding: 24px; }
.route-card-meta { margin: 0 0 10px; color: var(--primary); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.route-card p { color: var(--muted); }

.content-page { padding: 86px 0; }
.content-page .container { max-width: 900px; }
.wp-content h2, .wp-content h3 { margin-top: 1.4em; }
.wp-content a { color: var(--primary); border-bottom: 1px solid currentColor; }

.single-hero { padding: 88px 0 52px; background: var(--sand); }
.archive-intro p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 70px 0; }
.single-meta { background: var(--white); border: 1px solid var(--line); padding: 28px; position: sticky; top: 110px; align-self: start; }
.single-meta p { margin: 0 0 14px; color: var(--muted); }

.cta-band { background: var(--primary); color: var(--white); padding: 74px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner p { max-width: 620px; color: rgba(255,255,255,0.82); }

.site-footer { position: relative; overflow: hidden; background: radial-gradient(circle at 14% 0%, rgba(216,138,61,0.2), transparent 30%), linear-gradient(135deg, #14231c 0%, #20352b 58%, #123142 100%); color: #fff; padding: 78px 0 34px; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 92px 92px; mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 72%); pointer-events: none; }
.footer-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr); gap: 56px 70px; align-items: start; }
.footer-brand { max-width: 560px; }
.footer-brand h3 { font-size: clamp(2.4rem, 4vw, 4.6rem); margin-bottom: 18px; }
.footer-brand p { max-width: 520px; color: rgba(255,255,255,0.74); font-size: 1.08rem; }
.footer-kicker { margin: 0 0 12px; color: #f0aa63 !important; font-size: 0.76rem !important; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-cta { margin-top: 22px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; background: var(--accent); color: #1c241f; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 16px 38px rgba(0,0,0,0.22); }
.footer-cta:hover { background: #f0aa63; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #fff; }
.footer-contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.footer-column-head { grid-column: 1 / -1; padding-bottom: 6px; }
.footer-column-head h4 { margin: 0; font-family: var(--heading); font-size: 2rem; line-height: 1.08; }
.footer-contact-link { min-height: 92px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.075); color: rgba(255,255,255,0.94) !important; box-shadow: 0 18px 46px rgba(0,0,0,0.14); transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.footer-contact-link:hover { transform: translateY(-2px); background: rgba(255,255,255,0.12); border-color: rgba(240,170,99,0.6); color: #fff !important; }
.footer-contact-link span:last-child { min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; font-weight: 800; line-height: 1.25; }
.footer-contact-link small { color: rgba(255,255,255,0.58); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(240,170,99,0.5); border-radius: 50%; background: rgba(240,170,99,0.12); color: #f0aa63; flex: 0 0 auto; }
.footer-icon svg { width: 21px; height: 21px; fill: currentColor; }
.footer-bottom { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.14); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 18px; color: rgba(255,255,255,0.58); font-size: 0.88rem; }
.footer-legal p { margin: 0; }
.footer-translate { margin-left: auto; text-align: right; }
.language-pills { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.language-pills a { min-width: 44px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); color: #fff; font-weight: 900; font-size: 0.78rem; letter-spacing: 0.08em; }
.language-pills a:hover { background: rgba(240,170,99,0.18); border-color: rgba(240,170,99,0.55); }
.footer-translate select { min-height: 40px; max-width: 260px; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); color: #fff; padding: 0 12px; }
.footer-translate option { color: var(--ink); }

@media (max-width: 860px) {
    .header-inner { min-height: 74px; }
    .menu-toggle { display: block; }
    .main-navigation { display: none; position: absolute; left: 0; right: 0; top: 74px; background: #fbfaf7; border-bottom: 1px solid var(--line); padding: 20px; }
    .main-navigation.active { display: block; }
    .main-navigation ul { flex-direction: column; align-items: flex-start; }
    .hero { min-height: 640px; }
    .painpoints-grid, .experience-grid, .route-list, .single-layout { grid-template-columns: 1fr; }
    .painpoints-section { margin-top: 0; padding-top: 20px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .site-footer { padding-top: 58px; }
    .footer-inner { grid-template-columns: 1fr; gap: 34px; }
    .footer-contact-links { grid-template-columns: 1fr; width: 100%; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-translate { margin-left: 0; text-align: left; }
    .language-pills { justify-content: flex-start; }
}
