/*
Theme Name:   Civico 95 - Astra Child
Theme URI:    https://casa-vacanze-civico95.com
Description:  Child theme personalizzato per Civico 95 - Casa Vacanze Lago di Bolsena
Author:       ADV Agency
Author URI:   https://advagency.it
Template:     astra
Version:      1.0.1
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  civico95-astra-child
*/

/* ========================================
   VARIABILI CSS GLOBALI - Civico 95
   ======================================== */

:root {
    /* Colori Brand */
    --civico95-primary: #0066A1;
    --civico95-secondary: #F4A020;
    --civico95-dark: #1A1A1A;
    --civico95-gray: #5A5A5A;
    --civico95-light-bg: #F8F9FA;
    --civico95-white: #FFFFFF;

    /* Typography */
    --civico95-heading-font: 'Montserrat', -apple-system, sans-serif;
    --civico95-body-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --civico95-spacing-xs: 0.5rem;
    --civico95-spacing-sm: 1rem;
    --civico95-spacing-md: 2rem;
    --civico95-spacing-lg: 3rem;
    --civico95-spacing-xl: 4rem;

    /* Border Radius */
    --civico95-radius-sm: 6px;
    --civico95-radius-md: 12px;
    --civico95-radius-lg: 20px;

    /* Shadows */
    --civico95-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --civico95-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --civico95-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --civico95-transition: all 0.3s ease;

    /* OVERRIDE ASTRA COLORS - CRITICO! */
    --ast-global-color-0: #0066A1 !important;
    --ast-global-color-1: #004A75 !important;
    --ast-global-color-4: #0066A1 !important;
    --ast-global-color-5: #F4A020 !important;
}

/* ========================================
   GOOGLE FONTS - Montserrat + Open Sans
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ========================================
   TYPOGRAPHY OVERRIDE
   ======================================== */

body {
    font-family: var(--civico95-body-font) !important;
    color: var(--civico95-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
    font-family: var(--civico95-heading-font) !important;
    font-weight: 700;
    color: var(--civico95-dark);
    line-height: 1.3;
}

/* ========================================
   ASTRA COLOR OVERRIDES - FORZA BRAND
   ======================================== */

/* Links */
a {
    color: #0066A1 !important;
}

a:hover,
a:focus {
    color: #004A75 !important;
}

/* Primary Color Elements */
.main-header-menu .current-menu-item > a,
.entry-meta,
.entry-meta *,
.ast-pagination .page-numbers.current {
    color: #0066A1 !important;
}

/* Secondary Color (Orange) for CTA */
.ast-button,
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    background: #F4A020 !important;
    border-color: #F4A020 !important;
    color: #FFFFFF !important;
}

.ast-button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #0066A1 !important;
    border-color: #0066A1 !important;
}

/* Form Focus States */
input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #0066A1 !important;
}

/* ========================================
   HEADER CUSTOMIZATION
   ======================================== */

.site-header {
    background: var(--civico95-white);
    box-shadow: var(--civico95-shadow-sm);
}

.main-header-bar {
    padding: 1rem 0;
}

.site-title a {
    color: #0066A1 !important;
    font-weight: 800;
    font-size: 1.8rem;
}

/* Menu Navigation */
.main-header-menu .menu-item > a {
    font-family: var(--civico95-heading-font);
    font-weight: 600;
    color: var(--civico95-dark) !important;
    transition: var(--civico95-transition);
    padding: 0.5rem 1rem;
}

.main-header-menu .menu-item > a:hover {
    color: #0066A1 !important;
}

.main-header-menu .current-menu-item > a {
    color: #0066A1 !important;
}

/* ========================================
   BUTTONS & CTA
   ======================================== */

.ast-button,
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    background: var(--civico95-secondary);
    color: var(--civico95-white);
    font-family: var(--civico95-heading-font);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--civico95-radius-sm);
    transition: var(--civico95-transition);
    border: none;
    text-transform: none;
}

.ast-button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--civico95-primary);
    color: var(--civico95-white);
    transform: translateY(-2px);
    box-shadow: var(--civico95-shadow-md);
}

/* ========================================
   HERO SECTIONS - Custom Pages
   ======================================== */

.civico95-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 5rem 1.5rem;
    margin-bottom: 0;
}

.civico95-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,102,161,0.85) 0%, rgba(0,74,117,0.75) 100%);
    z-index: 1;
}

.civico95-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.civico95-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.civico95-hero p {
    font-size: 1.4rem;
    margin: 0 0 2rem 0;
    opacity: 0.95;
    color: white !important;
}

/* ========================================
   CARDS & GRIDS
   ======================================== */

.civico95-card {
    background: var(--civico95-white);
    padding: 2rem;
    border-radius: var(--civico95-radius-md);
    box-shadow: var(--civico95-shadow-sm);
    transition: var(--civico95-transition);
}

.civico95-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--civico95-shadow-lg);
}

.civico95-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.civico95-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--civico95-dark);
    color: var(--civico95-white);
    padding: 3rem 0 1.5rem;
}

.site-footer a {
    color: var(--civico95-white) !important;
    transition: var(--civico95-transition);
}

.site-footer a:hover {
    color: #F4A020 !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .civico95-hero h1 {
        font-size: 2.2rem;
    }

    .civico95-hero p {
        font-size: 1.1rem;
    }

    .civico95-grid-2,
    .civico95-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.civico95-text-center {
    text-align: center;
}

.civico95-mt-lg {
    margin-top: var(--civico95-spacing-lg);
}

.civico95-mb-lg {
    margin-bottom: var(--civico95-spacing-lg);
}

.civico95-py-lg {
    padding-top: var(--civico95-spacing-lg);
    padding-bottom: var(--civico95-spacing-lg);
}

.civico95-section-gray {
    background: var(--civico95-light-bg);
    padding: 4rem 0;
}

/* ========================================
   CUSTOM ENHANCEMENTS
   ======================================== */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #0066A1;
    color: white;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #0066A1;
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.civico95-fade-in {
    animation: fadeInUp 0.6s ease-out;
}



/* Tutti gli h2 e h3 nella homepage */
.page-id-24 h2,
.page-id-24 h3 {
    color: #0066A1 !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Tutti i paragrafi con colore gray */
.page-id-24 p {
    color: #5A5A5A;
}

/* Link con border arancione */
.page-id-24 a[style*="border-bottom"] {
    border-bottom-color: #F4A020 !important;
}

/* Stelle testimonianze arancioni */
.page-id-24 div[style*="color: #F4A020"] {
    color: #F4A020 !important;
}

/* Bottoni CTA */
.page-id-24 a[href*="contatti"],
.page-id-24 a[style*="#F4A020"] {
    background: #F4A020 !important;
}

.page-id-24 a[style*="#25D366"] {
    background: #25D366 !important;
}

/* Background section blu */
.page-id-24 div[style*="background: #0066A1"] {
    background: #0066A1 !important;
}

/* Background section grigio chiaro */
.page-id-24 div[style*="background: #F8F9FA"] {
    background: #F8F9FA !important;
}



/* FORZA LAYOUT DESKTOP - OVERRIDE ASTRA */
.page-id-24 .site-content {
    padding: 0 !important;
    max-width: 100% !important;
}

.page-id-24 .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.page-id-24 .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
}

.page-id-24 .entry-content > * {
    max-width: 100% !important;
}

/* FORZA GRID 3 COLONNE */
.homepage-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem !important;
}

/* FORZA GRID 2 COLONNE */
.homepage-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    align-items: center !important;
}

/* FORZA GRID 2x2 */
.homepage-grid-2x2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .homepage-grid-3,
    .homepage-grid-2,
    .homepage-grid-2x2 {
        grid-template-columns: 1fr !important;
    }
}

/* Colori testo homepage */
.page-id-24 h1,
.page-id-24 h2,
.page-id-24 h3 {
    color: inherit !important;
}


/* ========================================
   HOMEPAGE CIVICO 95 - STILE SOBRIO
   ======================================== */

/* CONTAINER BOXED DESKTOP, FULL-WIDTH MOBILE */
.page-id-24 .site-content,
.page-id-24 .ast-container {
    padding: 0 !important;
    max-width: 100% !important;
}

.page-id-24 .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* Container base */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HERO SECTION */
.civico95-hero {
    position: relative;
    min-height: 600px;
    background: linear-gradient(rgba(0, 102, 161, 0.4), rgba(0, 74, 117, 0.5)),
                url('/wp-content/uploads/2025/09/IMG_8644-scaled.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.civico95-hero-content {
    max-width: 900px;
}

.civico95-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
}

.civico95-hero .hero-subtitle {
    font-size: 2rem;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
}

.civico95-hero .hero-description {
    font-size: 1.3rem;
    color: #FFFFFF;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
}

/* SECTIONS */
.section-features,
.section-refuge,
.section-services,
.section-testimonials {
    background: #FFFFFF;
    padding: 5rem 0;
}

.section-refuge {
    background: #F8F9FA;
}

.section-title {
    font-size: 2.5rem;
    color: #0066A1;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #5A5A5A;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* GRIDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* CARDS */
.feature-card,
.testimonial-card {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.feature-card h3,
.service-card h4 {
    color: #0066A1;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p,
.service-card p,
.testimonial-text {
    color: #5A5A5A;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* SERVICE CARD */
.service-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: #F8F9FA;
    border-radius: 12px;
}

.service-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
}

.service-content h4 {
    margin-bottom: 0.5rem;
}

/* REFUGE SECTION */
.refuge-text h2 {
    font-size: 2.5rem;
    color: #0066A1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.refuge-text p {
    color: #5A5A5A;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.refuge-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* TESTIMONIALS */
.testimonial-stars {
    color: #F4A020;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.testimonial-author {
    color: #0066A1;
    font-weight: 700;
    font-size: 1.1rem;
}

/* BUTTONS */
.btn-primary,
.btn-whatsapp {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-primary {
    background: #F4A020;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(244, 160, 32, 0.3);
}

.btn-primary:hover {
    background: #0066A1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 161, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.link-arrow {
    color: #0066A1;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 3px solid #F4A020;
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.link-arrow:hover {
    color: #004A75;
    border-bottom-color: #0066A1;
}

/* CTA FINALE */
.section-cta-final {
    background: linear-gradient(135deg, #0066A1 0%, #004A75 100%);
    color: #FFFFFF;
    padding: 5rem 2rem;
    text-align: center;
}

.section-cta-final h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    color: #FFFFFF;
}

.section-cta-final p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    /* Full-width su mobile */
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    /* Hero */
    .civico95-hero {
        min-height: 500px;
        padding: 3rem 1.5rem;
    }

    .civico95-hero h1 {
        font-size: 2.5rem;
    }

    .civico95-hero .hero-subtitle {
        font-size: 1.5rem;
    }

    .civico95-hero .hero-description {
        font-size: 1.1rem;
    }

    /* Grids diventano single column */
    .grid-3,
    .grid-2,
    .grid-2x2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Titoli più piccoli */
    .section-title {
        font-size: 2rem;
    }

    .refuge-text h2 {
        font-size: 2rem;
    }

    /* Immagine rifugio */
    .refuge-image img {
        height: 300px;
    }

    /* Buttons responsive */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-whatsapp {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    /* Sections padding */
    .section-features,
    .section-refuge,
    .section-services,
    .section-testimonials,
    .section-cta-final {
        padding: 3rem 0;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        max-width: 960px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
/* ========================================
   HEADER PROFESSIONALE - SFONDO BIANCO
   ======================================== */

/* RESET HEADER ASTRA */
.site-header,
.main-header-bar,
.ast-main-header-wrap {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.site-header {
    padding: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

.main-header-bar {
    padding: 1.2rem 0 !important;
}

.main-header-bar-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* LOGO - TESTO PULITO (NO ICONA) */
.site-title,
.site-branding {
    margin: 0 !important;
}

.site-title a {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #0066A1 !important;
    text-decoration: none !important;
    letter-spacing: -0.5px !important;
    transition: color 0.3s ease !important;
}

.site-title a:hover {
    color: #004A75 !important;
}

/* NASCONDI LOGO IMMAGINE SE PRESENTE */
.site-logo-img,
.custom-logo {
    display: none !important;
}

/* MENU PRINCIPALE */
.main-header-menu {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.main-header-menu .menu-item {
    margin: 0 !important;
    padding: 0 !important;
}

.main-header-menu .menu-item > a {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    text-decoration: none !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.main-header-menu .menu-item > a:hover {
    color: #0066A1 !important;
    background: #F3F4F6 !important;
}

.main-header-menu .current-menu-item > a,
.main-header-menu .current_page_item > a {
    color: #0066A1 !important;
    background: #EFF6FF !important;
}

/* PULSANTE CTA HEADER (Contatti) */
.main-header-menu .menu-item:last-child > a,
.main-header-menu .menu-item.menu-item-cta > a {
    background: #F4A020 !important;
    color: #FFFFFF !important;
    padding: 0.7rem 1.8rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
}

.main-header-menu .menu-item:last-child > a:hover,
.main-header-menu .menu-item.menu-item-cta > a:hover {
    background: #E08F10 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(244, 160, 32, 0.3) !important;
}

/* RIMUOVI THUMBNAIL/ICONE DAL MENU */
.main-header-menu img,
.main-header-menu .menu-item-icon,
.main-header-menu .ast-icon {
    display: none !important;
}

/* DROPDOWN MENU (se presente) */
.main-header-menu .sub-menu {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
}

.main-header-menu .sub-menu .menu-item > a {
    padding: 0.7rem 1.5rem !important;
    border-radius: 0 !important;
}

.main-header-menu .sub-menu .menu-item > a:hover {
    background: #F3F4F6 !important;
}

/* MOBILE MENU TOGGLE */
.ast-mobile-menu-buttons {
    display: none !important;
}

.ast-button-wrap {
    margin: 0 !important;
}

/* HERO SECTION - INIZIA DOPO L'HEADER */
.page-id-24 .civico95-hero {
    margin-top: 0 !important;
}

/* STICKY HEADER SCROLL EFFECT */
.site-header.ast-header-sticked {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .main-header-bar {
        padding: 1rem 0 !important;
    }

    .main-header-bar-wrap {
        padding: 0 1.5rem !important;
    }

    .site-title a {
        font-size: 1.5rem !important;
    }

    /* Mobile menu - Gestito da Astra Header Builder */
}

/* NASCONDI BREADCRUMB SE PRESENTE */
.ast-breadcrumbs-wrapper {
    display: none !important;
}
/* ========================================
/* ========================================
   HEADER FIX - VERSIONE PULITA
   ======================================== */

/* RIMUOVI SHADOW HEADER */
.site-header,
.main-header-bar,
.ast-main-header-wrap,
.ast-primary-header-bar {
    box-shadow: none !important;
    border-bottom: 1px solid #E5E7EB !important;
}

/* PULSANTE CONTATTI - DISCRETO */
.main-header-menu .menu-item:last-child > a,
.main-header-menu .menu-item-139 > a {
    background: transparent !important;
    color: #0066A1 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    border: 2px solid #0066A1 !important;
    box-shadow: none !important;
}

.main-header-menu .menu-item:last-child > a:hover,
.main-header-menu .menu-item-139 > a:hover {
    background: #0066A1 !important;
    color: #FFFFFF !important;
    transform: none !important;
    box-shadow: none !important;
}

/* NASCONDI ENTRY HEADER */
.entry-header.ast-no-thumbnail,
.ast-no-thumbnail.entry-header,
.entry-header {
    display: none !important;
}

.page .entry-header,
.single .entry-header {
    display: none !important;
}
/* ========================================
   HEADER & LOGO - REFINEMENT FINALE
   ======================================== */

/* LOGO A DUE RIGHE CON TAGLINE */
.site-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    line-height: 1 !important;
}

.site-title a {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #0066A1 !important;
    line-height: 1 !important;
    margin-bottom: 0.2rem !important;
}

.site-title .site-tagline {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: #6B7280 !important;
    line-height: 1 !important;
    letter-spacing: 0.5px !important;
}

/* MENU LINE-HEIGHT */
.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
    line-height: 30px !important;
}

.main-header-menu .menu-item > a {
    line-height: 1.4 !important;
}

/* BACKGROUND GRIGIO CHIARO CONTENUTO */
div#primary,
.site-content {
    background: #F5F5F5 !important;
}

/* SEZIONI BIANCHE SU SFONDO GRIGIO */
.section-features,
.section-refuge,
.section-services,
.section-testimonials,
.section-cta-final {
    background: #FFFFFF !important;
}

.section-refuge {
    background: #F8F9FA !important;
}

/* MARGINI CONTENUTO */
div#primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* CONTAINER SECTIONS CON MARGINI */
.container {
    background: transparent !important;
}

section[class*="section-"] {
    margin-bottom: 2rem !important;
}

section[class*="section-"]:last-child {
    margin-bottom: 0 !important;
}
/* ========================================
   LOGO CON TAGLINE (CSS PURO)
   ======================================== */

/* Logo container */
.site-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.2rem !important;
}

/* Link principale "Civico 95" */
.site-title a {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #0066A1 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

/* Tagline sotto con ::after */
.site-title::after {
    content: "Casa vacanze a Marta (VT)" !important;
    display: block !important;
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    color: #6B7280 !important;
    line-height: 1 !important;
    letter-spacing: 0.3px !important;
    margin-top: 0.15rem !important;
}

/* RIMUOVI SOTTOLINEATURA LINK GENERALI */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* Link nel contenuto (se vuoi mantenerli sottolineati) */
.entry-content a {
    text-decoration: underline !important;
}

.entry-content a:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

/* Menu link senza sottolineatura */
.main-header-menu a,
.site-title a {
    text-decoration: none !important;
}
/* ========================================
   RIMUOVI TUTTE LE SOTTOLINEATURE
   ======================================== */

/* TUTTI i link senza sottolineatura */
a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

/* Link nel contenuto */
.entry-content a,
.entry-content a:hover,
.entry-content a:focus {
    text-decoration: none !important;
}

/* Link commenti */
.ast-comment-content a,
.ast-comment-content a:hover {
    text-decoration: none !important;
}

/* Link sidebar/widget */
.widget a,
.widget a:hover {
    text-decoration: none !important;
}

/* Link footer */
.site-footer a,
.site-footer a:hover {
    text-decoration: none !important;
}

/* Override WordPress defaults */
.ast-single-post .entry-content a,
.ast-comment-content a:not(.ast-comment-edit-reply-wrap a) {
    text-decoration: none !important;
}

/* Link menu */
.main-header-menu a,
.main-header-menu a:hover {
    text-decoration: none !important;
}

/* Link in blocchi WordPress */
.wp-block-latest-posts a,
.wp-block-archives a,
.wp-block-categories a {
    text-decoration: none !important;
}
/* ========================================
   GALLERIA IMMAGINI HOMEPAGE
   ======================================== */

/* Sezione gallery */
.section-gallery {
    background: #FFFFFF;
    padding: 5rem 0;
}

/* Gallery grid */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Gallery item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #F8F9FA;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Gallery images */
.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery caption */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #FFFFFF;
    padding: 1.5rem 1rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

/* RESPONSIVE GALLERY */
@media (max-width: 1024px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item img {
        height: 300px;
    }

    .section-gallery {
        padding: 3rem 0;
    }
}

/* Rifugio image migliore */
.refuge-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .refuge-image img {
        height: 350px;
    }
}
/* ========================================
   LIGHTBOX MODALE PER GALLERIA
   ======================================== */

/* Link clickabile sulla gallery */
.gallery-item a {
    display: block;
    cursor: zoom-in;
    text-decoration: none !important;
}

.gallery-item a:hover {
    text-decoration: none !important;
}

/* Overlay modale */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Contenitore immagine */
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Caption nel modale */
.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #FFFFFF;
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    border-radius: 0 0 8px 8px;
}

/* Pulsante chiudi */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    font-weight: 300;
    color: #FFFFFF;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 100000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #0066A1;
    transform: rotate(90deg);
}

/* Frecce navigazione */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    font-weight: bold;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    padding: 20px 15px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 100000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 102, 161, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Contatore immagini */
.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* RESPONSIVE LIGHTBOX */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 15px 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 1.5rem 1rem 1rem;
    }

    .lightbox-counter {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Previeni scroll body quando modale aperto */
body.lightbox-open {
    overflow: hidden;
}
