/**
Theme Name: Astra Child
Author: Altea Software
Author URI: https://www.altea.it
Description: Astra By Altea Software is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


/* ============================================================
   ASTRA — SETUP BASE
   ============================================================ */
.ast-container {
    max-width: unset !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ast-separate-container .ast-article-single {
    padding: 0 !important;
}

.ast-separate-container #primary {
    margin: 0 !important;
}

.ast-scroll-to-top-right {
    bottom: 100px !important;
}


/* ============================================================
   HEADER — STICKY & LOGO SCALATO
   ============================================================ */
.stickyHeader {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
}

.stickyHeader .scaleLogo img {
    transition: transform 1s ease, width 0.3s ease !important;
}

.stickyHeader.elementor-sticky--effects .scaleLogo img {
    transform: scale(0.7) !important;
    width: 70% !important;
}

.stickyHeader .elementor-element-33812f2 {
    top: 100% !important;
}


/* ============================================================
   HEADER — MENU MOBILE
   ============================================================ */
.elementor-menu-toggle {
    background-color: transparent !important;
}

.elementor-element-2d32a60 .elementor-container {
    align-items: self-start !important;
}

@media (max-width: 768px) {
    .elementor-column-gap-default > .elementor-column.elementor-element-22b9e33 > .elementor-element-populated {
        padding: 0 !important;
    }
}

/* Elemento da nascondere in mobile (anche nelle altre lingue) */
.elementor-element-c23e630 {
    display: none !important;
}


/* ============================================================
   HEADER — BARRA DI RICERCA
   ============================================================ */
#searchBtn {
    cursor: pointer !important;
}

.elementor-widget-search .e-search .e-search-submit {
    padding: 5px !important;
    cursor: pointer !important;
}

#search-33812f2.e-search-input {
    padding: 0 !important;
    min-height: 40px !important;
}

.elementor-element-33812f2 {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: #fff !important;
    z-index: 100 !important;
}


/* ============================================================
   HERO / SLIDER
   ============================================================ */
.hero .elementor-slide-heading {
    background: rgba(7, 43, 76, .5) !important;
    padding: 20px !important;
}

.elementor-7 .elementor-element.elementor-element-93c998d .swiper-slide-bg {
    background-position: bottom !important;
}

#swiper-wrapper-3deac2e91efec79d .swiper-slide {
    position: relative !important;
}

.elementor-7  .elementor-element.elementor-element-47fe0ce .elementor-slide-description,
.elementor-27231 .elementor-element.elementor-element-732273d .elementor-slide-description,
.elementor-27230 .elementor-element.elementor-element-6570e78 .elementor-slide-description {
    position: absolute !important;
    bottom: 100px !important;
    left: 100px !important;
    background: #BAA883B2 !important;
    padding: 3px 90px !important;
}

/* Bottoni slider — guide e articoli Home */
.elementor-element.elementor-element-e826e8c .elementor-slide-button,
.elementor-element.elementor-element-5d22862 .elementor-slide-button,
.elementor-element.elementor-element-a18b838 .elementor-slide-button,
.elementor-element.elementor-element-9b66554 .elementor-slide-button,
.elementor-27230 .elementor-element.elementor-element-783ed5e .elementor-slide-button,
.elementor-27230 .elementor-element.elementor-element-b7393d9 .elementor-slide-button,
.elementor-27231 .elementor-element.elementor-element-25a4239 .elementor-slide-button,
.elementor-27231 .elementor-element.elementor-element-33dcec0 .elementor-slide-button {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
}

.elementor-element.elementor-element-e826e8c .swiper .swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: -10px !important;
}


/* ============================================================
   HOME — SEZIONI VARIE
   ============================================================ */
.elementor-element-ff2653e {
    position: sticky !important;
    top: 100px !important;
    left: 0 !important;
}

.elementor-element-ff2653e .elementor-container {
    flex-direction: column !important;
}

.elementor-26919 .elementor-element.elementor-element-3c5b9d2,
.elementor-26919 .elementor-element.elementor-element-a898872 {
    width: 100% !important;
}

/* Recensioni Home */
.reviewSlider .swiper-slide-inner {
    padding: 0 !important;
}


/* ============================================================
   FREE CONSULTATION — barra sticky inferiore
   z-index inferiore a quello del bottone cookie GDPR (9999999)
   ============================================================ */
.stickyInfo {
    position: fixed !important;
    width: 100% !important;
    bottom: 0 !important;
    z-index: 990 !important;
}


/* ============================================================
   CONTENUTO — ELEMENTI RICORRENTI
   ============================================================ */
/* Testo evidenziato */
.evidenza {
    background-color: #CBC2A9 !important;
    font-weight: bold !important;
    padding: 5px !important;
}

/* Bordo decorativo sotto al titolo */
.bordato::after {
    content: '';
    display: block !important;
    width: 100px !important;
    height: 10px !important;
    background-color: #CBC2A9 !important;
    margin-top: 10px !important;
}

.bordato.white {
    background-color: #fff !important;
}

/* Sfondi e link su sezione secondaria */
.cover {
    background-size: cover !important;
}

.bg-secondary a {
    color: #fff !important;
}


/* ============================================================
   UTILITY
   ============================================================ */
.d-none {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .hidden {
        visibility: hidden !important;
    }
}


/* ============================================================
   ARTICOLI / BLOG
   ============================================================ */
.uael-post__date {
    font-size: 14px !important;
}

.uael-posts-tabs-dropdown .uael-filters-dropdown {
    margin-bottom: 50px !important;
}

@media (max-width: 768px) {
    .uael-filters-dropdown-button {
        border: 1px solid !important;
    }
}

/* Paginazione articoli — load more */
.uael-post__load-more {
    background-color: #072b4c !important;
    text-decoration: none !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 25px !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
}

.uael-post__load-more:hover {
    background-color: #baa883 !important;
}

.uael-post__footer {
    margin: 0 !important;
}

/* OLD articoli (vecchio template Elementor) */
.articoli .elementor-post__read-more {
    background-color: var(--e-global-color-primary) !important;
    padding: 10px !important;
}

.articoli .elementor-post__read-more:hover {
    background-color: var(--e-global-color-accent) !important;
}


/* ============================================================
   FORMS — FluentForm
   ============================================================ */
.ff-default .ff-el-form-control,
.ff-default .ff_btn_style {
    border-radius: 0 !important;
}

.ff-message-success {
    background-color: #fff !important;
}

.ff-el-form-check-label span {
    color: #fff !important;
}


/* ============================================================
   FORMS — MailChimp
   ============================================================ */
#mc_embed_signup {
    background: #fff !important;
    clear: left !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    width: 600px !important;
}


/* ============================================================
   LINK NEI TESTIMONIALS / ICON BOX
   ============================================================ */
.elementor-widget-icon-box .elementor-icon-box-title a {
    color: var(--e-global-color-secondary) !important;
    text-decoration: none !important;
}


/* ============================================================
   GDPR COOKIE COMPLIANCE — bottone toggle
   Specificità alzata con "html body" per vincere sui CSS del plugin.
   Icona cookie via mask + currentColor: prende il colore del bottone.
   ============================================================ */
html body button#moove_gdpr_save_popup_settings_button {
    position: fixed !important;
    z-index: 9999999 !important;
    background-color: #BAA883 !important;
    color: #072B4C !important;
}

html body button#moove_gdpr_save_popup_settings_button .moove_gdpr_icon svg {
    display: none !important;
}

html body button#moove_gdpr_save_popup_settings_button .moove_gdpr_icon {
    display: inline-block !important;
    width: 30px !important;
    height: 30px !important;
    background-color: currentColor !important;
    -webkit-mask: url('cookie-bite-regular-full.svg') no-repeat center / contain !important;
    mask: url('cookie-bite-regular-full.svg') no-repeat center / contain !important;
}

html body button#moove_gdpr_save_popup_settings_button .moove_gdpr_text {
    font-size: 11px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* La sticky info bar deve restare sotto al bottone cookie */
.stickyInfo {
    z-index: 990 !important;
}


/* ============================================================
   ARCHIVIO ARTICOLI — classe .posts-arch
   Funziona sia con HFE Basic Posts (.hfe-post-*) sia con Posts widget Pro (.elementor-post*)
   Uniforma altezza immagini con aspect-ratio + object-fit: cover.
   Card stile uniforme + "Read More" allineato in basso.
   ============================================================ */

/* --- IMMAGINI: aspect-ratio 3:2 + cover --- */
.posts-arch .hfe-post-image,
.posts-arch .elementor-post__thumbnail__link,
.posts-arch .elementor-post__thumbnail {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 3 / 2 !important;
    overflow: hidden !important;
}

.posts-arch .hfe-post-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.posts-arch .hfe-post-image img,
.posts-arch .elementor-post__thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* --- CARD: bianco, border-radius, shadow. Immagine a filo (niente padding sulla card),
       padding solo sul blocco di testo --- */
.posts-arch .hfe-post-card,
.posts-arch .elementor-post {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background-color: #FFFFFF !important;
    border-radius: 20px !important;
    padding: 0 !important;
    box-shadow: 0 0 10px 0 rgba(180, 180, 180, .5) !important;
    overflow: hidden !important;
}

.posts-arch .hfe-post-content,
.posts-arch .elementor-post__text {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 20px !important;
}

.posts-arch .hfe-read-more,
.posts-arch .elementor-post__read-more {
    margin-top: auto !important;
}

/* --- GRID per shortcode [articles_archive] --- */
.articles-archive .elementor-posts-container {
    display: grid !important;
    gap: 30px 20px !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1024px) {
    .articles-archive .elementor-posts-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .articles-archive .elementor-posts-container {
        grid-template-columns: 1fr !important;
    }
}

.articles-archive .elementor-post__title,
.articles-archive .elementor-post__title a {
    font-family: "Oswald", sans-serif !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #072B4C !important;
    margin: 15px 0 5px !important;
    text-decoration: none !important;
}

.articles-archive .elementor-post__title a:hover {
    color: #BAA883 !important;
}

.articles-archive .elementor-post__meta-data {
    font-family: "Oswald", sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #ad9870 !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

/* Tondino autore + nome — allineato a destra della card (non cliccabile) */
.articles-archive .posts-arch__author {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    pointer-events: none !important;
}

.articles-archive .elementor-post-meta-separator {
    color: #D8D8D8 !important;
    font-weight: 300 !important;
}

.articles-archive .posts-arch__avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.articles-archive .posts-arch__author-name {
    font-family: "Oswald", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    font-style: italic !important;
    color: #B6B6B6 !important;
}

.articles-archive .elementor-post__excerpt {
    margin-bottom: 15px !important;
}

/* --- PAGINAZIONE (Elementor Pro Posts widget + shortcode [articles_archive]) --- */
.posts-arch .elementor-pagination,
.posts-arch__pagination {
    margin-top: 30px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.posts-arch__pagination .page-numbers {
    display: inline-block !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #072B4C !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: background .2s ease, color .2s ease !important;
}

.posts-arch__pagination .page-numbers:hover {
    background: #BAA883 !important;
    color: #fff !important;
}

.posts-arch__pagination .page-numbers.current {
    background: #072B4C !important;
    color: #fff !important;
}

.posts-arch__pagination .page-numbers.dots {
    background: transparent !important;
    cursor: default !important;
}


/* ============================================================
   SEARCH POPUP — shortcode [search_popup]
   ============================================================ */
.search-popup__trigger {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    color: #072B4C !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: color .2s ease !important;
}

.search-popup__trigger:hover,
.search-popup__trigger:focus-visible {
    color: #BAA883 !important;
    outline: none !important;
}

.search-popup {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(7, 43, 76, .85) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.search-popup[hidden] {
    display: none !important;
}

body.search-popup-open {
    overflow: hidden !important;
}

.search-popup__close {
    position: absolute !important;
    top: 24px !important;
    right: 28px !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 48px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 48px !important;
    height: 48px !important;
}

.search-popup__form {
    width: 100% !important;
    max-width: 720px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3) !important;
}

.search-popup__input {
    flex: 1 1 auto !important;
    border: none !important;
    background: transparent !important;
    padding: 18px 24px !important;
    font-size: 22px !important;
    font-family: "Oswald", sans-serif !important;
    color: #072B4C !important;
    outline: none !important;
    min-width: 0 !important;
}

.search-popup__input::placeholder {
    color: #B6B6B6 !important;
    font-style: italic !important;
}

.search-popup__submit {
    background: #BAA883 !important;
    color: #072B4C !important;
    border: none !important;
    padding: 0 22px !important;
    height: 60px !important;
    cursor: pointer !important;
    transition: background .2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.search-popup__submit:hover {
    background: #072B4C !important;
    color: #BAA883 !important;
}


/* ============================================================
   SEARCH RESULTS PAGE — search.php
   ============================================================ */
.search-results__header {
    margin-top: 80px !important;
    margin-bottom: 30px !important;
    text-align: center !important;
}

.search-results .elementor-posts-container {
    margin-bottom: 80px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

.search-results .posts-arch__pagination {
    padding-bottom: 80px !important;
}

.search-results__title {
    font-family: "Oswald", sans-serif !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    color: #072B4C !important;
    margin-bottom: 8px !important;
}

.search-results__count {
    font-family: "Oswald", sans-serif !important;
    font-size: 18px !important;
    color: #ad9870 !important;
    margin: 0 !important;
}

.search-results__empty {
    font-family: "Oswald", sans-serif !important;
    font-size: 20px !important;
    color: #072B4C !important;
    text-align: center !important;
    padding: 60px 20px !important;
}
