/*
 Theme Name:   Golf Club Asiago - Elementor Child
 Theme URI:    https://golf.altea-service.com
 Description:  Tema child Elementor per il Golf Club Asiago. Design ispirato a Triompher, contenuti personalizzati.
 Author:       Altea Service
 Author URI:   https://altea-service.com
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  golfasiago-child
*/

/* ==========================================================================
   GOLF CLUB ASIAGO - Custom Styles (Triompher-inspired)
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Palette principale - Triompher-inspired per Golf */
    --gca-primary: #174420; /* Verde scuro golf (dal sito originale) */
    --gca-primary-light: #2a5e1e; /* Verde medio */
    --gca-accent: #c5a48e; /* Tan/beige Triompher */
    --gca-accent-hover: #a6985b; /* Gold Triompher */
    --gca-gold: #8b6914; /* Oro scuro */
    --gca-green-bright: #2CC374; /* Verde accento Triompher */
    --gca-bg: #ffffff;
    --gca-bg-alt: #f5f5f0; /* Crema leggero */
    --gca-bg-dark: #1D1A0C; /* Quasi nero */
    --gca-text: #1D1A0C;
    --gca-text-light: #9A9694;
    --gca-border: #DBD9D7;
    --gca-overlay: rgba(23, 68, 32, 0.7);

    /* Spacing Triompher */
    --gca-space-xs: 1rem;
    --gca-space-sm: 2rem;
    --gca-space-md: 3.3333rem;
    --gca-space-lg: 6.6667rem;
    --gca-space-xl: 8.6667rem;

    /* Typography */
    --gca-font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gca-font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Base Typography ---------- */
/* Font globale DM Sans su tutti gli elementi (esclude icone Font Awesome / Elementor icons) */
body,
body *:not(i):not([class*="fa-"]):not([class*="eicon-"]):not([class*="elementor-icon"]) {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--gca-font-primary);
    color: var(--gca-text);
    font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.638), 18px);
    line-height: 1.7;
    background-color: var(--gca-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gca-font-heading);
    color: var(--gca-text);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(32px, 2rem + ((1vw - 3.2px) * 2.5), 60px);
}

h2 {
    font-size: clamp(25px, 1.563rem + ((1vw - 3.2px) * 1.807), 42px);
}

h3 {
    font-size: clamp(22px, 1.378rem + ((1vw - 3.2px) * 1.485), 36px);
}

h4 {
    font-size: clamp(18px, 1.125rem + ((1vw - 3.2px) * 0.85), 24px);
}

a {
    color: var(--gca-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gca-green-bright);
}

/* ---------- Buttons (Triompher style) ---------- */
.gca-btn,
.elementor-button {
    display: inline-block;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    background-color: var(--gca-accent);
    color: #ffffff !important;
    border: 2px solid var(--gca-accent);
    border-radius: 0;
    font-family: var(--gca-font-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gca-btn:hover,
.elementor-button:hover {
    background-color: var(--gca-accent-hover);
    border-color: var(--gca-accent-hover);
    color: #ffffff !important;
}

.gca-btn--primary {
    background-color: var(--gca-primary);
    border-color: var(--gca-primary);
}

.gca-btn--primary:hover {
    background-color: var(--gca-primary-light);
    border-color: var(--gca-primary-light);
}

.gca-btn--outline {
    background-color: transparent;
    color: var(--gca-accent) !important;
    border: 2px solid var(--gca-accent);
}

.gca-btn--outline:hover {
    background-color: var(--gca-accent);
    color: #ffffff !important;
}

.gca-btn--gold {
    background-color: var(--gca-gold);
    border-color: var(--gca-gold);
}

.gca-btn--gold:hover {
    background-color: var(--gca-accent-hover);
    border-color: var(--gca-accent-hover);
}

/* ---------- Header (Triompher style) ---------- */
.gca-header,
.elementor-location-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gca-header .elementor-nav-menu a {
    font-family: var(--gca-font-primary);
    font-size: 15px;
    font-weight: 500;
    color: var(--gca-text);
    text-transform: none;
    letter-spacing: 0;
    padding: 0 18px;
    transition: color 0.3s ease;
}

.gca-header .elementor-nav-menu a:hover,
.gca-header .elementor-nav-menu .current-menu-item a {
    color: var(--gca-primary);
}

.gca-header .elementor-image img {
    max-height: 70px;
}

/* ---------- Hero Section ---------- */
.gca-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gca-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gca-overlay);
    z-index: 1;
}

.gca-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 0 var(--gca-space-sm);
}

.gca-hero__title {
    font-size: clamp(36px, 2.5rem + 3vw, 72px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.gca-hero__subtitle {
    font-size: clamp(16px, 1rem + 0.5vw, 22px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2em;
}

/* ---------- Sections ---------- */
.gca-section {
    padding: var(--gca-space-lg) 0;
}

.gca-section--alt {
    background-color: var(--gca-bg-alt);
}

.gca-section--dark {
    background-color: var(--gca-bg-dark);
    color: #ffffff;
}

.gca-section--dark h2,
.gca-section--dark h3,
.gca-section--dark h4 {
    color: #ffffff;
}

.gca-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--gca-space-md);
}

.gca-section__label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gca-accent);
    margin-bottom: 0.5em;
    display: block;
}

.gca-section__title {
    margin-bottom: 0.5em;
}

.gca-section__desc {
    color: var(--gca-text-light);
    font-size: clamp(14px, 0.875rem + 0.3vw, 18px);
}

/* ---------- Cards (Triompher-inspired) ---------- */
.gca-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gca-card:hover {
    box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.gca-card__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gca-card__body {
    padding: var(--gca-space-sm);
}

.gca-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.gca-card__text {
    color: var(--gca-text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- Strutture Hover Cards ---------- */
/* Baseline: il numero effettivo di colonne (desktop/tablet/mobile) è scritto
   da Elementor tramite il controllo responsive "Colonne" del widget. */
.gca-strutture-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.gca-struttura {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
}

.gca-struttura img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gca-struttura:hover img {
    transform: scale(1.05);
}

.gca-struttura__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    padding-top: 60px;
    background: linear-gradient(transparent, rgba(23, 68, 32, 0.85));
    color: #fff;
}

.gca-struttura__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.gca-struttura__desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.3s ease 0.1s, color 0.3s ease;
}

.gca-struttura:hover .gca-struttura__desc {
    max-height: 500px;
    margin-top: 8px;
    opacity: 1;
}

.gca-struttura__desc p:last-child {
    margin-bottom: 0;
}

.gca-struttura:hover .gca-struttura__desc {
    opacity: 1;
}

/* ---------- Timeline (storia club) ---------- */
.gca-timeline {
    position: relative;
    padding-left: 40px;
}

.gca-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gca-border);
}

.gca-timeline__item {
    position: relative;
    margin-bottom: var(--gca-space-md);
    padding-left: 30px;
}

.gca-timeline__item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gca-accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--gca-accent);
}

.gca-timeline__year {
    font-size: 24px;
    font-weight: 700;
    color: var(--gca-primary);
    margin-bottom: 0.3em;
}

.gca-timeline__text {
    color: var(--gca-text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ---------- Weather Widget ---------- */
.gca-weather {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: var(--gca-font-primary);
    min-width: 180px;
    border: 1px solid var(--gca-border);
}

.gca-weather__icon {
    font-size: 32px;
    line-height: 1;
}

.gca-weather__location {
    font-weight: 700;
    font-size: 13px;
    color: var(--gca-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gca-weather__temp {
    font-size: 28px;
    font-weight: 700;
    color: var(--gca-primary);
}

.gca-weather__desc {
    font-size: 12px;
    color: var(--gca-text-light);
}

/* ---------- Golf Course Map ---------- */
.gca-course-map-wrapper {
    display: block;
}

.gca-course-map-wrapper.has-tabs {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.gca-course-map-wrapper.has-tabs .gca-course-map {
    flex: 1;
    min-width: 0;
}

.gca-course-map__tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gca-course-map__tab {
    padding: 10px 16px;
    background: var(--gca-bg-alt, #f5f1ea);
    color: var(--gca-primary, #174420);
    font-weight: 600;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
}

.gca-course-map__tab:hover,
.gca-course-map__tab:focus {
    background: var(--gca-primary, #174420);
    color: #fff;
    border-left-color: var(--gca-accent, #c5a48e);
    outline: none;
}

@media (max-width: 768px) {
    .gca-course-map-wrapper.has-tabs {
        flex-direction: column;
        gap: 20px;
    }

    .gca-course-map__tabs {
        flex: none;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .gca-course-map__tab {
        flex: 1 1 auto;
        min-width: 70px;
        text-align: center;
        padding: 8px 10px;
        font-size: 14px;
    }
}

.gca-course-map {
    position: relative;
    width: 100%;
    background: var(--gca-bg-alt);
    border-radius: 0;
    overflow: hidden;
}

.gca-course-map__image {
    width: 100%;
    height: auto;
}

/* Pin segnaposto giallo: SVG con punta in basso ancorata alla coordinata (x%, y%) */
.gca-hole-pin {
    position: absolute;
    width: 24px;
    height: 32px;
    transform: translate(-50%, -100%);
    transform-origin: 50% 100%;
    color: #FFC107;

    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.gca-hole-pin svg {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gca-hole-pin:hover,
.gca-hole-pin:focus {
    color: #FFB300;
    transform: translate(-50%, -100%) scale(1.18);
    outline: none;
}

/* ---------- Menu Widget ---------- */
.gcam {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.gcam > li > a {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gcam-cta {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Hamburger toggle — cerchio verde scuro */
.gcam-toggle {
    display: none;
    background: var(--gca-primary);
    border: none;
    cursor: pointer;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 0;
    z-index: 10001;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.gcam-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gcam-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.gcam-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.gcam-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Scroll lock quando il menu mobile è aperto */
body.gcam-menu-open {
    overflow: hidden !important;
}

/* ----------------------------------------------------------------
   Inversione ordine elementi su Tablet/Mobile (controllo custom
   "Inverti ordine elementi" in Advanced → Responsive di Section/
   Container/Column). I selettori usano tag+class per superare la
   specificità di Elementor.
   - Section: il flex sta in .elementor-container (figlio della section)
   - Container (e-con): è esso stesso il flex wrapper
   - Column: il flex per i widget sta in .elementor-widget-wrap
   ---------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-section.gca-rev-tablet-yes > .elementor-container {
        flex-direction: column-reverse !important;
        flex-wrap: wrap-reverse !important;
    }

    .e-con.gca-rev-tablet-yes,
    .elementor-element.gca-rev-tablet-yes.e-con {
        flex-direction: column-reverse !important;
        flex-wrap: wrap-reverse !important;
    }

    .elementor-column.gca-rev-tablet-yes > .elementor-widget-wrap {
        flex-direction: column-reverse !important;
    }
}

@media (max-width: 767px) {
    .elementor-section.gca-rev-mobile-yes > .elementor-container {
        flex-direction: column-reverse !important;
        flex-wrap: wrap-reverse !important;
    }

    .e-con.gca-rev-mobile-yes,
    .elementor-element.gca-rev-mobile-yes.e-con {
        flex-direction: column-reverse !important;
        flex-wrap: wrap-reverse !important;
    }

    .elementor-column.gca-rev-mobile-yes > .elementor-widget-wrap {
        flex-direction: column-reverse !important;
    }
}

/* Menu mobile fullscreen overlay */
@media (max-width: 767px) {
    /* Mantieni logo + hamburger sulla stessa riga: Elementor di default su mobile
       wrappa le colonne a 100% e l'hamburger finirebbe sotto al logo. */
    .dentromenu {
        flex-wrap: nowrap !important;
    }

    .dentromenu > .e-con {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .dentromenu > .e-con:last-child {
        flex: 1 1 auto !important;
    }

    /* Allinea il bottone hamburger a destra e centrato verticalmente nella nav */
    .elemento-menu-golf .elementor-widget-container,
    .gcam-wrap {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .gcam-toggle {
        display: flex;
        margin-left: auto;
    }

    .gcam {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        height: 100vh !important;
        background: var(--gcam-mob-overlay-bg, #174420) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        padding: 60px 0 40px !important;
        overflow-y: auto;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .gcam.is-open {
        opacity: 1;
        visibility: visible;
    }

    .gcam > li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .gcam.is-open > li {
        opacity: 1;
        transform: translateY(0);
    }

    .gcam.is-open > li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .gcam.is-open > li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .gcam.is-open > li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .gcam.is-open > li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .gcam.is-open > li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .gcam.is-open > li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .gcam.is-open > li:nth-child(7) {
        transition-delay: 0.4s;
    }

    .gcam.is-open > li:nth-child(8) {
        transition-delay: 0.45s;
    }

    .gcam.is-open > li:nth-child(9) {
        transition-delay: 0.5s;
    }

    .gcam.is-open > li:nth-child(10) {
        transition-delay: 0.55s;
    }

    .gcam > li > a {
        padding: 8px 20px !important;
        text-align: center;
        line-height: 1.25;
        color: var(--gcam-mob-item-color, #ffffff) !important;
        font-size: var(--gcam-mob-item-size, 22px) !important;
        font-weight: var(--gcam-mob-item-weight, 500) !important;
        letter-spacing: 0.02em;
    }

    .gcam > li > a:hover {
        color: var(--gcam-mob-item-color-hover, var(--gca-accent)) !important;
    }

    .gcam > li.current-menu-item > a,
    .gcam > li.current_page_item > a {
        color: var(--gcam-mob-item-color-active, var(--gca-accent)) !important;
    }

    .gcam .gcam-cta {
        margin-top: 20px !important;
        border-color: var(--gcam-mob-cta-border, #ffffff) !important;
        color: var(--gcam-mob-cta-color, #ffffff) !important;
        background: var(--gcam-mob-cta-bg, transparent) !important;
    }

    .gcam .gcam-cta:hover {
        background: var(--gcam-mob-cta-bg-hover, #ffffff) !important;
        color: var(--gcam-mob-cta-color-hover, var(--gca-primary)) !important;
        border-color: var(--gcam-mob-cta-border-hover, #ffffff) !important;
    }
}

/* ---------- Flyover Video Grid ---------- */
.gca-flyover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gca-space-sm);
}

.gca-flyover-card {
    background: var(--gca-bg-alt);
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.gca-flyover-card:hover {
    box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.15);
}

.gca-flyover-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #000;
}

.gca-flyover-card__info {
    padding: 15px;
    text-align: center;
}

.gca-flyover-card__hole {
    font-size: 16px;
    font-weight: 700;
    color: var(--gca-primary);
}

/* ---------- Tariffe Table ---------- */
.gca-tariffe {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.gca-tariffe th {
    background: var(--gca-primary);
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
}

.gca-tariffe td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--gca-border);
}

.gca-tariffe tr:nth-child(even) {
    background: var(--gca-bg-alt);
}

.gca-tariffe tr:hover {
    background: rgba(197, 164, 142, 0.1);
}

/* ---------- Maestri (Team) ---------- */
.gca-team-card {
    text-align: center;
    padding: var(--gca-space-sm);
}

.gca-team-card__photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--gca-space-xs);
    border: 4px solid var(--gca-accent);
}

.gca-team-card__name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0.2em;
}

.gca-team-card__role {
    font-size: 14px;
    color: var(--gca-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gca-team-card__contact {
    margin-top: 0.8em;
    font-size: 14px;
}

/* ---------- Footer (Triompher-inspired) ---------- */
.gca-footer,
.elementor-location-footer {
    background-color: var(--gca-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--gca-space-lg) 0 var(--gca-space-sm);
}

.gca-footer h4,
.gca-footer .elementor-heading-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5em;
}

.gca-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.gca-footer a:hover {
    color: var(--gca-green-bright);
}

.gca-footer__copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--gca-space-sm);
    margin-top: var(--gca-space-md);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Popup Rosso (conservato dal sito originale) ---------- */
.gca-popup-alert {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    background: #c0392b;
    color: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(192, 57, 43, 0.4);
    max-width: 350px;
    font-size: 14px;
    line-height: 1.5;
}

.gca-popup-alert__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.gca-popup-alert__close:hover {
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .gca-hero__title {
        font-size: clamp(28px, 2rem + 2vw, 48px);
    }

    .gca-section {
        padding: var(--gca-space-md) 0;
    }

    .gca-weather {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px;
        border-radius: 8px;
    }

    .gca-struttura img {
        height: 250px;
    }

    .gca-flyover-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gca-header .elementor-image img {
        max-height: 50px;
    }
}

/* ==========================================================================
   Header scroll behavior — desktop: tutta la riga bianca, testo verde
   Toggle: body.is-scrolled (vedi wp_footer in functions.php)
   ========================================================================== */

.logo-golf img {
    transition: width 0.3s ease;
}

@media (min-width: 768px) {
    body.is-scrolled .logo-golf img {
        width: 90px !important;
    }
}

/* Outermost header container nel template Elementor 100 — tutta la barra bianca su scroll */
.elementor-100 > .elementor-element {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    body.is-scrolled .elementor-100 > .elementor-element {
        background-color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }
}

/* Menu container — su scroll niente più "pillola" (no bg, no shadow, no border-radius) */
.elemento-menu-golf {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}

@media (min-width: 768px) {
    body.is-scrolled .elemento-menu-golf {
        background-color: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}

/* Colori menu — scope .elementor-100 (template header globale, presente su tutte le pagine).
   :not(.gcam-cta) esclude il bottone CTA che ha la sua palette gestita in Elementor. */
.elementor-100 .elementor-element.elemento-menu-golf .gcam > li > a:not(.gcam-cta) {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    body.is-scrolled .elementor-100 .elementor-element.elemento-menu-golf .gcam > li > a:not(.gcam-cta) {
        color: var(--gca-primary) !important;
    }

    body.is-scrolled .elementor-100 .elementor-element.elemento-menu-golf .gcam > li > a:not(.gcam-cta):hover,
    body.is-scrolled .elementor-100 .elementor-element.elemento-menu-golf .gcam > li.current-menu-item > a:not(.gcam-cta),
    body.is-scrolled .elementor-100 .elementor-element.elemento-menu-golf .gcam > li.current_page_item > a:not(.gcam-cta) {
        color: #ffffff !important;
    }
}

/* ---------- Animazione palla da golf in buca ---------- */
.gca-golf-anim {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.gca-golf-anim__green {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: #2e7d32;
}

.gca-golf-anim__fairway {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 42%;
    background: radial-gradient(ellipse 120% 30% at 50% 100%, #1b5e20 0%, transparent 70%),
    linear-gradient(180deg, #388e3c 0%, #2e7d32 100%);
}

.gca-golf-anim__flag {
    position: absolute;
    bottom: 18%;
    left: 70%;
    z-index: 3;
}

.gca-golf-anim__flag-pole {
    width: 3px;
    height: 60px;
    background: #555;
    margin: 0 auto;
}

.gca-golf-anim__flag-cloth {
    position: absolute;
    top: 0;
    left: 3px;
    width: 30px;
    height: 18px;
    background: #c0392b;
    clip-path: polygon(0 0, 100% 30%, 0 100%);
}

.gca-golf-anim__hole {
    position: absolute;
    bottom: 16%;
    left: 70%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
    z-index: 2;
}

.gca-golf-anim__ball {
    position: absolute;
    bottom: 16%;
    left: 8%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 35% 35%, #ffffff, #e0e0e0);
    border-radius: 50%;
    z-index: 4;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    transition: none;
}

.gca-golf-anim__hills {
    position: absolute;
    bottom: 40%;
    left: 0;
    width: 100%;
    height: 30%;
}

.gca-golf-anim__hill {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: #388e3c;
}

.gca-golf-anim__hill--1 {
    left: -5%;
    width: 40%;
    height: 80%;
    background: #2e7d32;
}

.gca-golf-anim__hill--2 {
    left: 25%;
    width: 50%;
    height: 100%;
    background: #338a35;
}

.gca-golf-anim__hill--3 {
    right: -5%;
    width: 45%;
    height: 70%;
    background: #2c6e2f;
}

/* ---------- Chronogolf Widget ---------- */
/* Restringe solo la larghezza, mantiene il floating originale (fixed a destra) */
.chrono-container .chrono-bookingbutton,
.chrono-container .chrono-panel {
    max-width: 500px !important;
    width: 500px !important;
}

.chrono-container .chrono-bookingbutton {
    right: 25px !important;
}

.chrono-container .chrono-panel-body iframe {
    max-width: 100% !important;
}

.menumenu {
    margin-left: 5%;
}

/* ============================================================
   Mini widget meteo (Open-Meteo, footer)
   Markup: widget HTML Elementor con id #altea-meteo
   JS: functions.php → wp_footer
   ============================================================ */
.altea-meteo {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-size: .9em;
    line-height: 1;
    color: inherit;
    font-family: inherit;
    white-space: nowrap;
}

.altea-meteo__icon {
    font-size: 1.5em;
}

.altea-meteo__city {
    font-weight: 600;
}

.altea-meteo__temp {
    font-variant-numeric: tabular-nums;
}

.altea-meteo__desc {
    opacity: .8;
}

/* ============================================================
   Override globale hero titles su mobile
   Batte la specificità di Elementor (.elementor-{id} .elementor-element-{id} .gca-page-title)
   ============================================================ */
@media (max-width: 767px) {
    .gca-page-title {
        font-size: 36px !important;
    }
}

.altea-meteo.is-error {
    opacity: .6;
}



.divider-title .elementor-heading-title {
  display: block;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;

  color: #5a6b5a;
}
.divider-title .elementor-heading-title::before,
.divider-title .elementor-heading-title::after {
  content: "";
  display: inline-block;
  width: 50%;               /* sporge oltre il testo, tagliato da overflow */
  height: 1px;
  vertical-align: middle;
  background: #5a6b5a;
}
.divider-title .elementor-heading-title::before { margin: 0 0.8em 0 -50%; }
.divider-title .elementor-heading-title::after  { margin: 0 -50% 0 0.8em; }

/* ============================================================
   FAQ Accordion — solo CSS, niente JS (usa <details>/<summary>)
   Markup: vedi faq-accordion.txt nella root del progetto.
   Incollare in un blocco "HTML personalizzato" (Gutenberg) o
   in un widget "HTML" di Elementor.
   La domanda è un <h3> dentro <summary>: heading reale nel DOM
   (requisito SEO), ma l'accordion resta solo CSS via <details>.
   La risposta è un <p>. La numerazione 1. 2. 3. è automatica.
   ============================================================ */
.gca-faq {
    max-width: 1220px;
    margin: 0 auto;
    counter-reset: gca-faq;
}

.gca-faq__item {
    border: 1px solid var(--gca-border);
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
}

.gca-faq__item[open] {
    border-color: var(--gca-primary);
}

/* Intestazione cliccabile (la "barra" dell'accordion) */
.gca-faq__q {
    list-style: none;            /* niente triangolo nativo (Firefox) */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    font-weight: 700;
    color: var(--gca-primary);
    background: var(--gca-bg-alt);
    transition: background 0.25s ease, color 0.25s ease;
    user-select: none;
}

.gca-faq__q::-webkit-details-marker { display: none; } /* niente triangolo (Chrome/Safari) */
.gca-faq__q::marker { content: ""; }

/* L'<h3> resta heading nel DOM ma "veste" la barra dell'accordion */
.gca-faq__q h3 {
    margin: 0;
    font-size: clamp(16px, 0.95rem + 0.3vw, 19px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: normal;
    color: inherit;
}

/* Numerazione automatica davanti alla domanda */
.gca-faq__q h3::before {
    counter-increment: gca-faq;
    content: counter(gca-faq) ". ";
    color: var(--gca-accent);
}

/* Icona +/− a destra */
.gca-faq__q::after {
    content: "+";
    margin-left: auto;
    font-size: 26px;
    line-height: 1;
    font-weight: 400;
    color: var(--gca-accent);
}

.gca-faq__item[open] .gca-faq__q::after {
    content: "\2013"; /* trattino – quando aperto */
}

.gca-faq__q:hover,
.gca-faq__item[open] .gca-faq__q {
    background: var(--gca-primary);
    color: #fff;
}

.gca-faq__q:hover::after,
.gca-faq__q:hover h3::before,
.gca-faq__item[open] .gca-faq__q::after,
.gca-faq__item[open] .gca-faq__q h3::before {
    color: var(--gca-accent);
}

/* Corpo della risposta (è un <p>) */
.gca-faq__a {
    margin: 0;
    padding: 16px 22px 20px;
    color: var(--gca-text);
    line-height: 1.7;
    animation: gca-faq-in 0.25s ease;
}

.gca-faq__a a {
    color: var(--gca-primary);
    text-decoration: underline;
    word-break: break-word;
}

@keyframes gca-faq-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}