/*
 * Mappa dei luoghi verghiani — stile principale
 * Autore: Salvatore Arcidiacono
 */

/* ════════════════════════════════
   Variabili
════════════════════════════════ */
:root {
    --vd-primary:    #7B1C1C;   /* cremisi scuro */
    --vd-secondary:  #C47C32;   /* terracotta */
    --vd-dark:       #1E1B17;   /* quasi nero caldo */
    --vd-light:      #F6F1E7;   /* pergamena */
    --vd-muted:      #857870;
    --vd-border:     #D4C9B8;
    --vd-nav-bg:     rgba(30, 27, 23, 0.95);
    --vd-nav-scroll: rgba(30, 27, 23, 0.98);
}

/* ════════════════════════════════
   Base
════════════════════════════════ */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    color: var(--vd-dark);
    font-family: 'Georgia', serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

h1, h2, h3 { font-family: 'Georgia', serif; }

a { color: var(--vd-primary); }
a:hover { color: var(--vd-secondary); }

.bg-vd-light { background-color: var(--vd-light); }

/* ════════════════════════════════
   Navbar
════════════════════════════════ */
.navbar-vd {
    background: transparent;
    transition: background .35s ease, box-shadow .35s ease;
    padding: .8rem 0;
}
.navbar-vd.navbar-scrolled {
    background: var(--vd-nav-scroll) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.navbar-vd .navbar-brand,
.navbar-vd .nav-link,
.navbar-vd .navbar-toggler-icon {
    color: #fff !important;
}
.navbar-vd .nav-link:hover,
.navbar-vd .nav-link:focus { color: var(--vd-secondary) !important; }
.navbar-vd .dropdown-menu {
    background: var(--vd-dark);
    border: none;
}
.navbar-vd .dropdown-item { color: #e8e0d4; }
.navbar-vd .dropdown-item:hover {
    background: var(--vd-primary);
    color: #fff;
}
.brand-name {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    letter-spacing: .02em;
}

/* ════════════════════════════════
   Hero
════════════════════════════════ */
.hero-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30,27,23,.55) 0%,
        rgba(30,27,23,.30) 40%,
        rgba(30,27,23,.75) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}
.hero-subtitle {
    font-size: .85rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    opacity: .8;
    margin-bottom: .5rem;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-lead {
    font-size: clamp(.95rem, 1.8vw, 1.2rem);
    opacity: .9;
    max-width: 620px;
    margin: 0 auto;
}
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.6);
    font-size: 1.4rem;
    text-decoration: none;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* Bottoni hero */
.btn-vd-primary {
    background-color: var(--vd-primary);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: .55rem 1.4rem;
    font-size: .95rem;
    letter-spacing: .03em;
    transition: background .2s, transform .2s;
}
.btn-vd-primary:hover {
    background-color: #6a1717;
    color: #fff;
    transform: translateY(-1px);
}
.btn-vd-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 3px;
    padding: .55rem 1.4rem;
    font-size: .95rem;
    letter-spacing: .03em;
    transition: background .2s, border-color .2s;
}
.btn-vd-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
}

/* ════════════════════════════════
   Sezioni
════════════════════════════════ */
.section-label {
    display: inline-block;
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--vd-secondary);
    margin-bottom: .6rem;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--vd-dark);
    font-weight: 400;
    margin-bottom: 1rem;
}
.section-text {
    color: #1e1712;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ════════════════════════════════
   Placeholder immagini
════════════════════════════════ */
.img-placeholder {
    background: #ede8df;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-placeholder-inner {
    text-align: center;
    color: var(--vd-muted);
}

/* ════════════════════════════════
   Mappa placeholder
════════════════════════════════ */
.map-placeholder {
    background: #e8e2d8;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--vd-border);
}
.map-placeholder-inner {
    text-align: center;
    color: var(--vd-muted);
}

/* ════════════════════════════════
   Pagine interne — hero banner
════════════════════════════════ */
.page-banner {
    background: var(--vd-dark);
    color: #fff;
    padding: 5rem 0 2.5rem;
    margin-bottom: 2.5rem;
}
.page-banner h1 {
    color: #fff;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

/* ════════════════════════════════
   Pagina generica
════════════════════════════════ */
.page-content {
    padding-top: 100px; /* clearfix navbar fixed */
}
.page-content h1 { color: var(--vd-primary); }
.page-content h2 { color: var(--vd-dark); font-size: 1.4rem; }

/* ════════════════════════════════
   Footer
════════════════════════════════ */
.site-footer {
    background: var(--vd-primary);
    color: #c8bfb5;
    font-size: .88rem;
}
.site-footer .footer-title {
    font-family: 'Georgia', serif;
    color: #e8e0d4;
    font-size: .95rem;
}
.site-footer a { color: #a8a098; }
.site-footer a:hover { color: #e8e0d4; }

/* ════════════════════════════════
   Browse / listing
════════════════════════════════ */
.browse-entry {
    border-bottom: 1px solid var(--vd-border);
    padding: .75rem 0;
}
.browse-entry:last-child { border-bottom: none; }

/* ════════════════════════════════
   Paginazione
════════════════════════════════ */
.page-link { color: var(--vd-primary); }
.page-item.active .page-link {
    background-color: var(--vd-primary);
    border-color: var(--vd-primary);
}

/* ════════════════════════════════
   Tabella marcatori
════════════════════════════════ */
.tag-badge {
    display: inline-block;
    background: var(--vd-light);
    border: 1px solid var(--vd-border);
    border-radius: 3px;
    padding: .15rem .5rem;
    font-family: monospace;
    font-size: .85rem;
    color: var(--vd-primary);
}
