/* Nasconde il titolo interno generato da WordPress */
.page .page-title {
    display: none !important;
}

/* ======== BARRA GRIGIA SUPERIORE ======== */
.page-hero-top {
    background: #f5f5f7;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.page-hero-top .breadcrumbs {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    font-size: 14px;
    color: #777;
}

.page-hero-top .breadcrumbs a {
    color: #000;
}

.page-hero-top .breadcrumbs a:hover {
    color: #000;
}

/* ======== TITOLO CENTRALE CON LE LINEE ======== */
.page-hero-title {
    max-width: 1100px;
    margin: 30px auto 40px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
	color:#b18b1d
}

.page-hero-title h1 {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.page-hero-title .line {
    height: 2px;
    width: 90px;
    background: #b18b1d;
}

@media (max-width: 575px) {
    .page-hero-title {
        flex-direction: column;
        gap: 6px;
        white-space: normal;
    }
    .page-hero-title .line {
        width: 50px;
    }
}

/* =========================================================
   ===============   TOP BAR   =============================
   ========================================================= */

.topbar {
    background: #f5f5f5;
    padding: 6px 0;
    font-size: 14px;
}

.topbar-inner {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

@media (max-width: 850px) {
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.topbar .social i {
    margin-left: 10px;
    cursor: pointer;
}

/* =========================================================
   ===============   HEADER (2 RIGHE)   =====================
   ========================================================= */

.header-top {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 850px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.logo img {
    height: 120px;
}

/* Search + icone */
.search-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

@media (max-width: 850px) {
    .search-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
}

.search-bar {
    display: flex;
    align-items: center;
    border: 2px solid #dcdcdc;
    border-radius: 40px;
    padding: 10px 20px;
    width: 320px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    gap: 12px;
}

.search-bar i {
    font-size: 20px;
    color: #555;
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
}

@media (max-width: 850px) {
    .search-bar {
        width: 100%;
        padding: 8px 14px;
    }
}

/* Icone account + carrello */
.header-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-icons i {
    font-size: 22px;
    color: #666;
    cursor: pointer;
    transition: 0.25s ease;
}

.header-icons i:hover {
    transform: scale(1.15);
    color: #000 !important;
}

@media (max-width: 850px) {
    .header-icons {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* =========================================================
   ===============   MENU DESKTOP   ========================
   ========================================================= */

.header-menu {
    padding: 0 0 10px;
}

.header-menu ul,
.header-menu .menu,
.header-menu .menu-center {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center;
    gap: 45px;
    margin: 0;
    padding: 0;
}

@media (max-width: 850px) {
    .header-menu ul,
    .header-menu .menu,
    .header-menu .menu-center {
        flex-direction: column !important;
        gap: 15px;
        align-items: flex-start !important;
    }
}

.header-menu li {
    list-style: none;
}

.header-menu a {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #444;
    font-weight: 400;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.header-menu a:hover {
    background: #f0f0f0;
    color: #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* =========================================================
   ===============   SLIDER   ===============================
   ========================================================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 78vh;
    max-height: 900px;
    min-height: 480px;
    overflow: hidden;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.slider-dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dots span {
    width: 45px;
    height: 8px;
    background: rgba(255,255,255,0.45);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.slider-dots span:hover {
    background: rgba(255,255,255,0.9);
}

.slider-dots span.active {
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.75);
}

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

footer {
    background: #f7f7f7;
    padding: 25px 0 !important;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #555;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 850px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.footer-left img {
    height: 40px;
    margin: 5px 0 10px;
}

.footer-left p {
    margin: 3px 0 !important;
    line-height: 1.3;
}

.footer-center {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-center div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin: 0 !important;
}

.footer-center i {
    font-size: 18px;
}

.footer-center .footer-social {
    margin-top: 5px;
    display: flex;
    gap: 15px;
}

@media (max-width: 850px) {
    .footer-center .footer-social {
        justify-content: flex-start;
    }
}

.footer-center .footer-social a {
    font-size: 20px;
    color: #444;
    transition: 0.25s ease;
}

.footer-center .footer-social a:hover {
    color: #000;
    transform: scale(1.15);
}

.footer-right a {
    font-size: 14px;
    text-decoration: none;
    color: #444;
    display: block;
    margin: 4px 0 !important;
    transition: 0.25s;
}

.footer-right a:hover {
    color: #000;
    transform: translateX(4px);
    font-weight: 600;
}

.footer-piva {
    font-size: 13px;
    margin-top: 5px !important;
}

/* =========================================================
   ICONS + CART
   ========================================================= */

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.cart-icon i {
    font-size: 22px;
    color: #666;
}

.cart-count {
    font-size: 14px;
    color: #6a34c0;
    margin-left: 4px;
    font-weight: 600;
}

/* =========================================================
   ===============   MOBILE MENU / HAMBURGER   ==============
   ========================================================= */

.hamburger {
    display: none;
}

.mobile-menu {
    display: none;
}

@media (max-width: 850px) {

    .header-menu {
        display: none !important;
    }

    .logo img {
        height: 70px;
    }

    .search-bar {
        width: 200px;
        padding: 6px 14px;
    }

    .header-top {
        padding: 10px 15px 5px;
        gap: 10px;
    }

    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        cursor: pointer;
        color: #444;
        padding: 6px 10px;
        border-radius: 6px;
        border: none;
        background: transparent;
        transition: 0.3s;
    }

    .hamburger:hover {
        background: #eee;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -2px 0 15px rgba(0,0,0,0.15);
        padding: 30px 20px;
        transition: right 0.35s ease-in-out;
        z-index: 9999;
        display: block;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-list,
    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .mobile-menu li a {
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        color: #444;
        padding: 10px 2px;
        display: block;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu li a:hover {
        color: #000;
    }

    .close-mobile-menu {
        font-size: 30px;
        cursor: pointer;
        color: #444;
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

/* =========================================================
   ===============   CONTENITORE PAGINA CORSI   =============
   ========================================================= */

.container-corsi {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.container-corsi .col-md-4 {
    display: flex;
}

/* =========================================================
   ===============   CARD PRODOTTO PER BOOTSTRAP   ==========
   ========================================================= */

/* Disattiva layout WooCommerce */
.woocommerce ul.products {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    clear: both !important;
}

.container-corsi .product {
    background: #fff !important;
    border-radius: 18px !important;
    border: 1px solid #eee !important;
    padding: 20px !important;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.25s ease;
    height: 100%;
}

.container-corsi .product:hover {
    transform: translateY(-4px);
    border-color: #ddd;
}

.container-corsi .product img {
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    height: auto !important;
}

.container-corsi .product .woocommerce-loop-product__title {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}

.container-corsi .product .price {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #444 !important;
    margin-bottom: 12px !important;
}

.container-corsi .product .button {
    background: #111 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    display: inline-block !important;
}

/* =============================== */
/*   CARD BOOTSTRAP PERSONALIZZATA */
/* =============================== */

.boot-product-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: .25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.boot-product-card:hover {
    transform: translateY(-4px);
    border-color: #ddd;
}

.boot-product-card img {
    border-radius: 12px;
    margin-bottom: 10px;
    width: 100%;
    height: auto;
}

.boot-product-card .woocommerce-loop-product__title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #222;
    margin: 10px 0 4px;
    line-height: 1.3;
}

.boot-product-card .price {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #444;
    margin-bottom: 12px !important;
}

.boot-product-card .button {
    margin-top: auto;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 14px !important;
}

@media (max-width: 767px) {
    .container-corsi ul.products,
    .container-corsi ul.products li.product {
        width: 100% !important;
    }
}

/* Versione grande */
.big-map {
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: 600px;
    margin: 30px auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.20);
}

.big-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- FIX BOTTONE SEARCH --- */
.search-bar button.search-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-bar button.search-btn i {
    font-size: 20px;
    color: #555;
}

/* Rimuove il riquadro di focus */
.search-bar button.search-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Hover leggero */
.search-bar button.search-btn:hover i {
    color: #000;
}


/* =========================================================
   FIX LAYOUT CORSI + CATEGORIE PRODOTTO (WooCommerce)
   ---------------------------------------------------------
   Motivo:
   - Uniformare lo stile delle card prodotto tra:
     • pagina "Corsi ed Eventi" (shortcode [product])
     • pagine categoria prodotto WooCommerce
   - Disattivare il layout a griglia nativo WooCommerce
     SOLO in questi contesti, senza toccare lo shop standard
   - Evitare duplicazioni e side-effects sul resto del sito
   ========================================================= */

/* --- CONTENITORE CATEGORIA COME .container-corsi --- */
body.tax-product_cat .site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Disattiva layout WooCommerce SOLO per corsi e categorie --- */
.container-corsi ul.products,
body.tax-product_cat ul.products {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

.container-corsi ul.products li.product,
body.tax-product_cat ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    clear: both !important;
}

/* --- Card prodotto (identica tra corsi e categorie) --- */
.container-corsi .product,
body.tax-product_cat .product {
    background: #fff !important;
    border-radius: 18px !important;
    border: 1px solid #eee !important;
    padding: 20px !important;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.25s ease;
    height: 100%;
}

.container-corsi .product:hover,
body.tax-product_cat .product:hover {
    transform: translateY(-4px);
    border-color: #ddd;
}

/* --- Immagine prodotto --- */
.container-corsi .product img,
body.tax-product_cat .product img {
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    height: auto !important;
}

/* --- Titolo --- */
.container-corsi .product .woocommerce-loop-product__title,
body.tax-product_cat .product .woocommerce-loop-product__title {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}

/* --- Prezzo --- */
.container-corsi .product .price,
body.tax-product_cat .product .price {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #444 !important;
    margin-bottom: 12px !important;
}

/* --- Bottone --- */
.container-corsi .product .button,
body.tax-product_cat .product .button {
    background: #111 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    display: inline-block !important;
}

/* --- Mobile --- */
@media (max-width: 767px) {
    .container-corsi ul.products,
    .container-corsi ul.products li.product,
    body.tax-product_cat ul.products,
    body.tax-product_cat ul.products li.product {
        width: 100% !important;
    }
}
