/* ===================================================
   2. CALLBOX E PULSANTI (Fix definitivo)
   =================================================== */

.callbox {
    background: #ffffff !important;
    border: 2px solid #e75590 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin: 25px auto !important;
    max-width: 650px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

/* Fix Icone Pulsanti */
.callbox .callbox-btns a img.btn-icon {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    display: inline-block !important;
    margin: 0 8px 0 0 !important;
    vertical-align: middle !important;
}

.btn-wa-box, .btn-call-box {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    min-width: 170px !important;
}

.btn-wa-box { background-color: #e88fa0 !important; }
.btn-call-box { background-color: #6b4b52 !important; }

/* ===================================================
   CALLBOX – Allineamento testi
   =================================================== */

.callbox {
    text-align: center !important;
}

.callbox h3 {
    margin-bottom: 12px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.callbox p {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Pulsanti centrati */
.callbox .callbox-btns {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 15px !important;
}

/* ===================================================
   Video Responsive
   =================================================== */

.rwd-video {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}


.rwd-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}


/* ===================================================
   FIX CONTENUTI DB – iframe / immagini
   =================================================== */

.ttm-box-desc-text * {
    max-width: 100%;
    box-sizing: border-box;
}

.ttm-box-desc-text img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.ttm-box-desc-text iframe {
    display: block;
    max-width: 100%;
    margin: 20px 0;
}

.ttm-box-desc-text .rwd-video {
    max-width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.ttm-box-desc-text::after {
    content: "";
    display: table;
    clear: both;
}

/* ===================================================
   FIX SIDEBAR DESKTOP
   =================================================== */

@media (min-width: 992px) {

    .ttm-row.sidebar .row {
        display: flex !important;
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    .ttm-row.sidebar .content-area {
        flex: 0 0 75%;
        max-width: 75%;
        min-width: 0;
    }

    .ttm-row.sidebar .sidebar-right {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* ===================================================
   REVIEW SLIDER – STATICO DA DB (PULITO)
   =================================================== */

.review-slider {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    overflow: hidden;
}

.review-card {
    display: none;
    background: #ffffff;
    border: 2px solid #e88fa0;
    border-radius: 18px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.review-card.active {
    display: block;
}

.review-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.review-name {
    font-weight: 700;
    font-size: 18px;
    color: #2c2c2c;
}

/* Badge */
.review-badge {
    display: inline-block;
    background: #e88fa0;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

/* Pallini slider */
.review-nav {
    text-align: center;
    margin-top: 18px;
}

.review-nav span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
}

.review-nav span.active {
    background: #e88fa0;
}

/* ===================================================
   STELLE RECENSIONI – FIX DEFINITIVO (NO DUPLICAZIONI)
   =================================================== */

/* Disattiva qualsiasi stella automatica del template */
.review-card::before,
.review-card::after,
.review-top::before,
.review-top::after,
.review-name::before,
.review-name::after,
.stars,
.stars::before,
.stars::after {
    content: none !important;
    display: none !important;
}

/* Stelle create SOLO qui */
.review-stars {
    display: inline-block;
    margin-left: 8px;
}

.review-stars::before {
    content: "★★★★★";
    color: #f5a623;
    font-size: 15px;
    letter-spacing: 2px;
    display: inline-block;
}

/* ===================================================
   CONTACT CTA BOX – DETTAGLIO
   =================================================== */

.contact-cta-box {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.contact-cta-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-cta-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.contact-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cta-btn i {
    font-size: 16px;
}

/* WhatsApp */
.cta-whatsapp {
    background: #25d366;
    color: #fff;
}
.cta-whatsapp:hover {
    background: #1ebe5d;
}

/* Telefono */
.cta-phone {
    background: #6b4b52;
    color: #fff;
}
.cta-phone:hover {
    background: #553a40;
}

/* Scrivi */
.cta-write {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}
.cta-write:hover {
    background: #eaeaea;
}

.contact-cta-note {
    font-size: 12px;
    color: #777;
    margin-top: 15px;
    text-align: center;
}

/* BLOG – immagine articolo singolo */
.blog-featured-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    object-fit: cover;
}

/* YouTube Shorts – resa verticale elegante */
/* YouTube Shorts SOLO se iframe NON è dentro rwd-video */
/* Base: iframe YouTube standard (orizzontale) */
.ttm-box-desc-text > iframe[src*="youtube.com"],
.ttm-box-desc-text > iframe[src*="youtu.be"] {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 20px 0;
    display: block;
}




/* ===================================================
   FIX FORM SIDEBAR – VISIBILITÀ CAMPI
   =================================================== */

.widget-area .contact_form .text-input {
    background: #f3f8f9;
    padding: 10px;
    border-radius: 6px;
    display: block;
}

.widget-area .contact_form input,
.widget-area .contact_form select {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    background: transparent;
    font-size: 14px;
}

.widget-area .contact_form select {
    background-color: #f3f8f9;
}

.widget-area .contact_form .row {
    margin-left: 0;
    margin-right: 0;
}

.widget-area .contact_form .row > div {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 12px;
}

/* ===================================================
   FIX VISIBILITÀ FORM IN SIDEBAR
   =================================================== */

.sidebar-right .text-input input,
.sidebar-right .text-input select {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
}

.sidebar-right .text-input input::placeholder {
    color: #666 !important;
}

.sidebar-right .text-input {
    display: block;
    width: 100%;
}

.sidebar-right label {
    width: 100%;
    display: block;
    margin-bottom: 12px;
}

/* FIX FONT MENU CATEGORIE SIDEBAR */
.sidebar-right .widget-nav-menu,
.sidebar-right .widget-nav-menu a,
.sidebar-right .widget-menu li a {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0;
}

/* FIX: icona lista che sovrasta il testo */
.ttm-list.ttm-list-style-icon li {
    position: relative;
    padding-left: 28px; /* spazio reale per l'icona */
}

.ttm-list.ttm-list-style-icon li i {
    position: absolute;
    left: 0;
    top: 0.35em; /* allineamento verticale corretto */
}

/* ===============================
   VIDEO VERTICALE / YOUTUBE SHORTS
   =============================== */

.rwd-video--vertical {
    aspect-ratio: 9 / 16;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ===============================
   WHATSAPP FLOATING BUTTON
   =============================== */

#whatsappContact {
  position: fixed;
  right: 20px;
  bottom: 90px; /* sopra Tawk.to */
  z-index: 999;
  display: none; /* verrà mostrato solo su mobile */
}

#whatsappContact img.phoneicon {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
}


/* ===============================
   POPUP foto nelle vetrine
   =============================== */

.img-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.img-popup img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.img-popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.img-popup-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    opacity: 0.8;
}

.img-popup-arrow:hover {
    opacity: 1;
}

.img-popup-arrow.prev {
    left: 20px;
}

.img-popup-arrow.next {
    right: 20px;
}

/* =========================================
   FIX PageSpeed – Thumbnail sidebar
   Evita deformazione immagini (80x80)
   mantenendo crop proporzionale
   ========================================= */
.widget ul.ttm-recent-post-list>li img{
    width:80px;
    height:80px;
    object-fit:cover;
}
