/* RESET BASE */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body:has(.header-premium.header-dark) .plg-page-hero {
    padding-top: 34px;
}

:root {
    --plg-bg: #ffffff;
    --plg-text: #1f1f1f;
    --plg-muted: #6b6b6b;
    --plg-accent: #d1a45c;
    --plg-accent-2: #8a5a3b;
    --plg-card: #ffffff;
    --plg-border: rgba(0,0,0,0.08);
    --plg-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.plg-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.plg-page-hero {
   position: relative;
    padding: 54px 0 26px;
    background:
        radial-gradient(1200px circle at 15% 10%, rgba(209,164,92,0.18), transparent 55%),
        radial-gradient(900px circle at 85% 0%, rgba(138,90,59,0.14), transparent 50%),
        linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.00) 62%);
    overflow: hidden;
}

.plg-page-hero::before {
    content: "";
    position: absolute;
    inset: -120px -120px -120px -120px;
    background:
        radial-gradient(600px circle at 25% 35%, rgba(209,164,92,0.26), transparent 60%),
        radial-gradient(520px circle at 70% 25%, rgba(138,90,59,0.18), transparent 62%),
        radial-gradient(520px circle at 55% 70%, rgba(209,164,92,0.12), transparent 66%);
    filter: blur(22px);
    opacity: 0.8;
    transform: translate3d(0,0,0);
    animation: plg-aurora 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.plg-page-hero > .plg-container {
    position: relative;
    z-index: 1;
}

@keyframes plg-aurora {
    0% { transform: translate3d(-18px, -10px, 0) scale(1.02); }
    100% { transform: translate3d(18px, 10px, 0) scale(1.06); }
}

.plg-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    letter-spacing: 0.5px;
    color: var(--plg-text);
}

.plg-title::after {
    content: "";
    display: block;
    margin-top: 14px;
    width: 74px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--plg-accent), transparent);
    opacity: 0.9;
}

.plg-subtitle {
    margin: 10px 0 0;
    max-width: 720px;
    color: var(--plg-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.plg-page-body {
    padding: 20px 16px 60px;
}

.plg-section {
    margin-top: 34px;
}

.plg-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.plg-section-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--plg-text);
}

.plg-empty {
    border: 1px solid var(--plg-border);
    background: var(--plg-card);
    border-radius: 14px;
    padding: 18px 18px;
    box-shadow: var(--plg-shadow);
}

/* Gallery */
.plg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.plg-gallery-item {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
    transform: translateZ(0);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.plg-gallery-item img {
    width: 100%;
  height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .30s ease;
}

@media (max-width: 900px) {
    .plg-title { font-size: 2.4rem; }
    .plg-subtitle { font-size: 1.05rem; }
    .plg-gallery-item img { height: 220px; }
}

.plg-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.plg-gallery-item:hover img {
    transform: scale(1.03);
}

/* Card overlay captions (used in Intorno) */
.plg-card {
    text-decoration: none;
    color: inherit;
}

.plg-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.00));
}

.plg-card-body h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #fff;
}

.plg-card-body p {
    margin: 6px 0 0;
    font-size: 0.98rem;
    line-height: 1.35;
    color: rgba(255,255,255,0.86);
}
header a {
    color: white !important;
}

/* POPUP COOKIE PREMIUM */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: #3a2a1d;
    color: white;
    padding: 20px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    font-family: 'Inter', sans-serif;
    z-index: 999999;
    display: none; /* nascosto finché non serve */
    animation: fadeInUp 0.4s ease;
}

.cookie-popup-content h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.cookie-popup-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cookie-popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    font-size: 14px;
}

    .cookie-btn.primary {
        background: #d1a45c;
        color: white;
    }

    .cookie-btn.secondary {
        background: rgba(255,255,255,0.15);
        color: white;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* FOOTER */
.footer-premium {
    background: #2d2d2d;
    color: #fff;
    padding: 60px 20px 30px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: auto;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
    color: #ddd;
    font-size: 15px;
    line-height: 1.6;
    text-decoration: none;
}

    .footer-col a:hover {
        color: #fff;
    }

/* LOGO */
.footer-logo {
    width: 140px;
    margin-bottom: 15px;
}

/* COLONNA NAVIGAZIONE IN VERTICALE */
.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* SOCIAL */
.footer-social a {
    font-size: 26px;
    margin-right: 15px;
    color: #ddd;
    transition: 0.3s ease;
}

    .footer-social a:hover {
        color: #fff;
        transform: translateY(-3px);
    }

/* GOOGLE MAPS */
.footer-map {
    font-weight: 600;
    color: #d1a45c !important;
}

    .footer-map:hover {
        color: #fff !important;
    }

/* BOTTOM */
.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #bbb;
}

.footer-links a {
    margin: 0 10px;
    color: #bbb;
}

    .footer-links a:hover {
        color: #fff;
    }

.footer-madeby {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}

    .footer-madeby a {
        color: #888;
        text-decoration: none;
        transition: color 0.2s;
    }

    .footer-madeby a:hover {
        color: #fff;
    }


.loader {
    margin: 30px auto;
    border: 6px solid #eee;
    border-top: 6px solid #8c6239;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===================================================
   INTORNO A NOI – INDEX: card "Scopri di più"
   =================================================== */
.around-discover {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s, transform 0.2s;
}
.plg-gallery-item.plg-card:hover .around-discover {
    color: #fff;
    transform: translateX(4px);
}

/* ===================================================
   INTORNO A NOI – DETAIL PAGE
   =================================================== */

/* Hero */
.around-hero {
    position: relative;
    height: 440px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
@media (max-width: 860px) {
    .around-hero { height: 300px; background-attachment: scroll; }
}
.around-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.88) 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
}
.around-hero-overlay .plg-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.9);
}
.around-hero-overlay .plg-subtitle {
    color: rgba(255,255,255,0.90);
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

/* Back link */
.around-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 18px;
    transition: color 0.2s;
}
.around-back:hover { color: #fff; }

/* Two-column content */
.around-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 900px) {
    .around-content-grid { grid-template-columns: 1fr; }
}

/* Intro text */
.around-intro p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--plg-text, #333);
    margin-bottom: 1rem;
}

/* CTA buttons row */
.around-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.plg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.plg-btn-outline {
    border: 2px solid #8c6239;
    color: #8c6239;
    background: transparent;
}
.plg-btn-outline:hover {
    background: #8c6239;
    color: #fff;
}

/* Curiosità sidebar */
.around-facts {
    background: #f9f6f1;
    border-left: 4px solid #8c6239;
    border-radius: 12px;
    padding: 24px 24px 16px;
    position: sticky;
    top: 90px;
}
.around-facts h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #8c6239;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.around-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.around-facts ul li {
    padding: 9px 0;
    border-bottom: 1px solid #e8ddd4;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #555;
    padding-left: 20px;
    position: relative;
}
.around-facts ul li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 9px;
    font-size: 0.8rem;
}
.around-facts ul li:last-child { border-bottom: none; }

/* Photo grid items – zoom cursor */
.around-photo-item { cursor: zoom-in; }

/* Lightbox */
.around-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.around-lightbox.active { display: flex; }

.around-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    user-select: none;
}
.around-lb-close {
    position: fixed;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.8rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.around-lb-close:hover { opacity: 1; }

.around-lb-prev,
.around-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 3rem;
    width: 52px;
    height: 72px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 10000;
    line-height: 1;
}
.around-lb-prev { left: 8px; }
.around-lb-next { right: 8px; }
.around-lb-prev:hover,
.around-lb-next:hover { background: rgba(255,255,255,0.28); }

/* ── WhatsApp floating badge ─────────────────────────────────────── */
.wa-badge {
    position: fixed !important;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    padding: 11px 18px 11px 14px;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: transform .2s ease, box-shadow .2s ease, padding .25s ease;
    white-space: nowrap;
    overflow: hidden;
    max-width: 260px;
}

.wa-badge svg {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

.wa-badge-label {
    display: inline-block;
    max-width: 170px;
    overflow: hidden;
    transition: max-width .3s ease, opacity .3s ease;
}

.wa-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37,211,102,.55);
    background: #1ebe5d;
    color: #ffffff;
    text-decoration: none;
}

/* Su schermi piccoli mostra solo l'icona */
@media (max-width: 480px) {
    .wa-badge {
        padding: 13px;
        border-radius: 50%;
        max-width: 54px;
    }

    .wa-badge-label {
        max-width: 0;
        opacity: 0;
    }
}