/*
Theme Name: the7dtchild
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 child theme — custom CSS PromoSport home v2 (round 2)
Version: 1.2.0
License: GPL
Template: dt-the7
*/

/* ==================================================
   PROMOSPORT — Custom CSS HOME v2 (round 2)
   ================================================== */

/* --- 1. SMOOTH SCROLL FORZATO + scroll-padding per sticky header --- */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 80px;  /* compensa altezza floating header */
}

/* --- 2. HERO: freccia scroll-down animata --- */
.promo-scroll-down {
    margin-top: 30px !important;
    animation: promoBounce 2s ease-in-out infinite;
    cursor: pointer;
}
.promo-scroll-down a:hover { color: #FF8A00 !important; }
@keyframes promoBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* --- 3. HOMEPAGE: rimuovi banda bianca sopra hero --- */
body.home #main,
body.page-id-76 #main,
body.home #content,
body.page-id-76 #content { padding-top: 0 !important; margin-top: 0 !important; }
body.home .page-title,
body.home .page-title-wrap,
body.page-id-76 .page-title,
body.page-id-76 .page-title-wrap { display: none !important; }

/* --- 4. CARDS CANALI: border + shadow + radius forzati via CSS --- */
.promo-channel-col .vc_column-inner,
.promo-channel-col .wpb_wrapper,
.promo-channel-col .ult-content-box-container,
.promo-channel-col .ult-content-box { height: 100%; }

.promo-channel-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease !important;
    cursor: pointer;
    background: #ffffff !important;
    border-radius: 22px !important;
    box-shadow: 0 8px 28px rgba(28, 61, 125, 0.10) !important;
    border-width: 3px !important;
    border-style: solid !important;
    overflow: hidden !important;
}
.promo-channel-card.promo-card-igmb     { border-color: #ED6B02 !important; }
.promo-channel-card.promo-card-multi    { border-color: #69AF39 !important; }
.promo-channel-card.promo-card-fitness  { border-color: #8A2A88 !important; }
.promo-channel-card.promo-card-players  { border-color: #028BD2 !important; }
.promo-channel-card.promo-card-progetti { border-color: #EDCC0B !important; }

.promo-channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 42px rgba(28, 61, 125, 0.22) !important;
}
.promo-channel-card.promo-card-igmb:hover     { box-shadow: 0 18px 42px rgba(237,107,2,0.25) !important; }
.promo-channel-card.promo-card-multi:hover    { box-shadow: 0 18px 42px rgba(105,175,57,0.25) !important; }
.promo-channel-card.promo-card-fitness:hover  { box-shadow: 0 18px 42px rgba(138,42,136,0.25) !important; }
.promo-channel-card.promo-card-players:hover  { box-shadow: 0 18px 42px rgba(2,139,210,0.25) !important; }
.promo-channel-card.promo-card-progetti:hover { box-shadow: 0 18px 42px rgba(237,204,11,0.30) !important; }

.promo-channel-card a { text-decoration: none !important; }
.promo-tags-small .promo-tag {
    padding: 3px 9px !important;
    font-size: 10px !important;
}

/* --- 5. TAGS PILL --- */
.promo-tags-list {
    display: flex; flex-wrap: wrap; gap: 6px;
    justify-content: center; margin: 14px 0 4px;
}
.promo-tag {
    display: inline-block; padding: 4px 12px; border-radius: 14px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
    line-height: 1.4; text-transform: uppercase; white-space: nowrap;
}

/* --- 6. BADGE pill stats bar --- */
.promo-badge {
    display: inline-block; background: rgba(255, 255, 255, 0.14);
    color: #ffffff; padding: 8px 20px; border-radius: 22px;
    font-size: 13px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.2);
}
.promo-badge-cell { text-align: center; }

/* --- 7. ESTATE: altezze uniformi loghi/titoli/descrizioni --- */
.promo-estate-row .vc_column-inner > .wpb_wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.promo-estate-card .vc_single_image-wrapper,
.promo-estate-card .vc_icon_element {
    height: 130px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.promo-estate-card .vc_single_image-wrapper img {
    max-height: 110px;
    width: auto !important;
    object-fit: contain;
}
.promo-estate-card .uvc-heading {
    min-height: 130px;
}
.promo-estate-card .uvc-heading h4 {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 8. STAFF cards (refactor) --- */
.promo-staff-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.promo-staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(28, 61, 125, 0.12) !important;
}
.promo-staff-icon .vc_icon_element-inner {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50%;
    background: rgba(255, 138, 0, 0.08);
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px !important;
}

/* --- 9. CENTRI cards (griglia 6 col mini) --- */
.promo-comune-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.promo-comune-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(28, 61, 125, 0.14) !important;
}
.promo-comune-card .vc_icon_element { text-align: left !important; }
.promo-comune-card .vc_icon_element-inner { margin-left: 0 !important; }
.promo-comune-card-mini .vc_icon_element { margin-bottom: 4px !important; }
.promo-comune-sedi ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 10.5px !important;
    line-height: 16px !important;
    color: #666 !important;
}
.promo-comune-sedi ul li {
    padding: 1px 0 !important;
    line-height: 15px !important;
}

/* --- 10. FOOTER tweaks --- */
.footer-brand img { display: block; }
.footer-social a:hover { color: #ffffff !important; transform: scale(1.15); transition: all .2s; }
#footer .widget ul.menu li a {
    color: #cfd6e6 !important;
    text-decoration: none; font-size: 13px; line-height: 30px;
    transition: color .2s;
}
#footer .widget ul.menu li a:hover { color: #FF8A00 !important; }
#footer .widget-title,
#footer h5 {
    color: #ffffff !important; font-size: 14px !important;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 16px !important;
}

/* --- 11. FLOATING HEADER + main nav (alta priorità per contrasto) --- */
.masthead .main-nav > li > a,
#phantom .main-nav > li > a,
.masthead.floating .main-nav > li > a,
.main-nav > li > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: color .2s;
}
.masthead .main-nav > li > a:hover,
.masthead .main-nav > li.act > a,
.masthead .main-nav > li.current-menu-item > a,
#phantom .main-nav > li > a:hover,
.masthead.floating .main-nav > li > a:hover { color: #FF8A00 !important; }
.masthead .main-nav > li > a .underline { background-color: #FF8A00 !important; }

/* --- 11b. TOP BAR contacts color (su sfondo blu scuro) --- */
.top-bar .mini-contacts,
.top-bar .mini-contacts i,
.top-bar a { color: #cfd6e6 !important; }
.top-bar a:hover { color: #FF8A00 !important; }
.top-bar .soc-ico a { color: #ffffff !important; }

/* --- 11c. MINI LOGHI 5 CANALI (top bar destra) --- */
.promo-channels-mini {
    display: inline-flex !important;
    gap: 6px;
    align-items: center;
}
.promo-channels-mini a {
    line-height: 0;
    transition: transform .25s ease;
    display: inline-block;
}
.promo-channels-mini a:hover {
    transform: scale(1.18);
}
.promo-channels-mini img {
    display: block;
}
/* Allinea le mini-icone con i social */
.mini-contacts.multipurpose { padding: 0 8px !important; }

/* --- 12. RESPONSIVE mobile --- */
@media (max-width: 768px) {
    .promo-hero-row .vc_column-inner { padding: 0 15px !important; }
    .promo-channel-card { margin-bottom: 18px; }
    .promo-estate-card { margin-bottom: 24px; }
    .promo-comune-card { margin-bottom: 16px; }
    .promo-estate-card .vc_single_image-wrapper { height: auto; }
}
