/*
Theme Name: Pro Loco Mattina di Auletta
Theme URI: https://www.prolocoauletta.it
Author: Pro Loco Mattina di Auletta
Description: Tema ufficiale della Pro Loco Mattina di Auletta con itinerari a piedi, monumenti e collegamento alla Guida Interattiva.
Version: 1.0
Text Domain: proloco-auletta
*/

:root {
    --verde: #285943;
    --verde-scuro: #173b2b;
    --verde-chiaro: #78977b;
    --oro: #c89b3c;
    --oro-chiaro: #e0bb67;
    --crema: #f5f0e5;
    --bianco: #fff;
    --testo: #2c352f;
    --grigio: #68736c;
    --ombra: 0 12px 35px rgba(0,0,0,.10);
    --raggio: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: var(--crema);
    color: var(--testo);
    line-height: 1.8;
}

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

.card-photo {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
}

a {
    color: inherit;
}

/* =========================
   NAVIGAZIONE
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(23,59,43,.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 20px rgba(0,0,0,.15);
}

body.admin-bar header {
    top: 32px;
}

nav {
    max-width: 1200px;
    margin: auto;
    min-height: 72px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--oro);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: .82rem;
    transition: .3s;
}

.nav-links a:hover {
    color: var(--oro-chiaro);
}

.nav-links a.nav-cta {
    background: var(--oro);
    color: #102c21;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 50px;
}

.nav-links a.nav-cta:hover {
    background: var(--oro-chiaro);
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    padding: 120px 25px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-position: center;
    background-size: cover;
}

.hero-content {
    max-width: 900px;
    animation: heroIn 1.2s ease;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1.1;
    letter-spacing: 2px;
}

.hero h1 span {
    color: var(--oro);
}

.hero-subtitle {
    max-width: 800px;
    margin: 28px auto 0;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 35px;
}

.hero-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    background: var(--oro);
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    transition: .3s;
}

.hero-button.secondary {
    background: transparent;
    border: 2px solid white;
}

.hero-button:hover {
    background: var(--oro-chiaro);
    transform: translateY(-3px);
    border-color: var(--oro-chiaro);
}

/* =========================
   SEZIONI
========================= */

section {
    padding: 90px 20px;
    scroll-margin-top: 75px;
}

.container {
    max-width: 1150px;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--oro);
    font-family: Arial, sans-serif;
    font-size: .78rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title h2 {
    color: var(--verde-scuro);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.section-title p {
    max-width: 750px;
    margin: 15px auto 0;
    color: var(--grigio);
}

.content {
    font-size: 1.05rem;
}

.content p {
    margin-bottom: 20px;
}

/* =========================
   CHI SIAMO / PRO LOCO
========================= */

#proloco {
    background: var(--crema);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: start;
}

.intro-box {
    background: white;
    padding: 40px;
    border-radius: var(--raggio);
    box-shadow: var(--ombra);
}

.facts {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
    margin-top: 28px;
}

.fact {
    padding: 20px;
    text-align: center;
    background: #edf2eb;
    border-radius: 12px;
}

.fact strong {
    display: block;
    color: var(--verde);
    font-size: 1.7rem;
}

.fact span {
    font-family: Arial, sans-serif;
    font-size: .78rem;
    text-transform: uppercase;
    color: var(--grigio);
}

/* =========================
   TERRITORIO
========================= */

#territory {
    background: white;
}

.territory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.territory-card {
    background: var(--crema);
    padding: 35px;
    border-radius: var(--raggio);
    border-left: 5px solid var(--oro);
}

.territory-card h3 {
    color: var(--verde);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* =========================
   GUIDA INTERATTIVA
========================= */

#guida-interattiva {
    background: #edf2eb;
}

.itinerari-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 45px;
}

.itinerario-card {
    background: white;
    padding: 32px;
    border-radius: var(--raggio);
    box-shadow: var(--ombra);
    border-top: 5px solid var(--verde);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.itinerario-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: Arial, sans-serif;
    font-size: .78rem;
}

.badge-percorso {
    background: var(--verde);
    color: white;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.itinerario-card h3 {
    color: var(--verde-scuro);
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.poi-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.poi-filter-btn {
    border: 2px solid var(--verde);
    background: white;
    color: var(--verde-scuro);
    font-family: Arial, sans-serif;
    font-size: .82rem;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: .25s ease;
}

.poi-filter-btn:hover,
.poi-filter-btn.active {
    background: var(--verde);
    color: white;
}

.poi-card.hidden {
    display: none;
}

.poi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.poi-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.poi-tag {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: .72rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--verde);
    background: #edf2eb;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.poi-card h4 {
    color: var(--verde-scuro);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.poi-card p {
    font-size: .95rem;
    color: var(--grigio);
    line-height: 1.6;
    margin-bottom: 16px;
}

.poi-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-mappa-sm {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--verde);
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: .78rem;
    font-weight: bold;
    transition: .2s;
}

.btn-mappa-sm:hover {
    background: var(--verde-scuro);
}

.btn-nav-sm {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--crema);
    color: var(--testo);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: .78rem;
    font-weight: bold;
    transition: .2s;
}

.btn-nav-sm:hover {
    background: var(--oro-chiaro);
    color: #102c21;
}

.guida-cta-box {
    margin-top: 45px;
    background: var(--verde-scuro);
    color: white;
    padding: 35px;
    border-radius: var(--raggio);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.guida-cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.guida-cta-box p {
    color: #d7e3db;
    font-size: .98rem;
    max-width: 650px;
}

/* =========================
   EVENTI
========================= */

#eventi {
    background: var(--verde-scuro);
    color: white;
}

#eventi .section-title h2 {
    color: white;
}

#eventi .section-title p {
    color: #d7e3db;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 25px;
}

.event-card {
    background: white;
    color: var(--testo);
    padding: 35px;
    border-radius: var(--raggio);
    box-shadow: var(--ombra);
}

.event-date {
    color: var(--oro);
    font-family: Arial, sans-serif;
    font-size: .8rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-card h3 {
    color: var(--verde);
    font-size: 1.6rem;
    margin: 8px 0 15px;
}

.event-card strong {
    color: var(--verde);
}

/* =========================
   PRODOTTI
========================= */

#prodotti {
    background: var(--crema);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 25px;
}

.product-card {
    background: white;
    padding: 35px;
    border-radius: var(--raggio);
    box-shadow: var(--ombra);
}

.product-icon {
    font-size: 2.5rem;
}

.product-card h3 {
    color: var(--verde);
    font-size: 1.5rem;
    margin: 8px 0 12px;
}

.product-card p {
    margin-bottom: 15px;
}

/* =========================
   CONTATTI
========================= */

#contatti {
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-box {
    background: var(--crema);
    padding: 40px;
    border-radius: var(--raggio);
}

.contact-info-box h3 {
    color: var(--verde);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================
   FOOTER & TOP BUTTON
========================= */

footer {
    padding: 55px 20px;
    text-align: center;
    color: #cbd8d0;
    background: #102c21;
}

footer h2 {
    color: white;
    margin-bottom: 8px;
}

footer .gold {
    color: var(--oro);
}

footer small {
    display: block;
    margin-top: 20px;
    color: #94a99e;
}

#topButton {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    display: none;
    border: 0;
    border-radius: 50%;
    background: var(--oro);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,.25);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .menu-button { display: block; }
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        padding: 25px;
        display: none;
        flex-direction: column;
        align-items: center;
        background: var(--verde-scuro);
    }
    .nav-links.active { display: flex; }
    .intro-grid,
    .events-grid,
    .products-grid,
    .territory-grid,
    .itinerari-grid,
    .poi-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
