/**
 * Template Name: Membership Water Cross css
 * Author: Giovanni Mavilla
 * License: https://membership.crosscardio.com/water
 *
 * Palette Water Cross
 *   --water-dark    : #0e0e0e
 *   --water-primary : #046ed8   (blu acqua – accent principale)
 *   --water-light   : #00b3f6   (azzurro chiaro – hover/secondary)
 *   --water-bg-card : #1a1a1a
 *   --water-bg-side : #f0f4f8
 */

/* =========================================================
   1. NAV / HEADER
   ========================================================= */

.nav-menu .drop-down .drop-down > a:after {
    content: "\eaa0";
}

.nav-menu .drop-down .drop-down:hover > ul {
    opacity: 1;
    top: -10px;
    left: 90%;
}

#header.header-scrolled {
    background: #000;
}

.nav-menu a {
    font-size: 18px;
    margin-left: 20px;
    display: block;
    position: relative;
    color: #fff;
    padding: 5px 15px 7px 15px !important;
    transition: 0.3s;
    border-radius: 50px;
    font-family: "Open Sans", sans-serif;
}

@media only screen and (max-width: 1240px) and (min-width: 992px) {
    .nav-menu a {
        padding: 5px 15px 7px 15px !important;
        font-size: 15px !important;
    }
}

li.dropdown-active a {
    color: #046ed8 !important;
    font-weight: 900 !important;
    font-size: 16px !important;
}

.mobile-nav-toggle {
    font-size: 42px;
    margin: 7px;
}

@media only screen and (min-width: 992px) {
    .solo-mobile { display: none; }
}

@media only screen and (max-width: 992px) {
    .logo-header        { width: 80%; }
    .topbar-menu-area   { display: none; }
    .mobile-nav         { margin-top: 5px; }
    .mobile-nav a       { font-size: 18px; }
    .icofont-close      { color: #000 !important; background: #fff; font-weight: 800; }
    #header.header-transparent { margin-top: 0; }
    .divider            { margin: 17px; border-top: solid 5px #0c253b9c; padding-top: 15px; }
    iframe              { width: 100%; }
    .img-block          { width: 100%; }
}


/* =========================================================
   2. LOGO / TOPBAR
   ========================================================= */

.logo-topbar img {
    float: left;
    height: 30px;
    margin-right: 25px;
}

.logo-topbar-mobile img {
    height: 50px;
    border-bottom: 1px solid #b8b8b8;
    border-top: 1px solid #b8b8b8;
    margin-bottom: 15px;
}

.logo-header-mobility {
    max-width: 200px;
    padding: 12px 20px 12px 12px;
}

.header-scrolled img { margin-top: 0; }
.header-scrolled li  { margin-top: 0; }


/* =========================================================
   3. BUTTONS
   ========================================================= */

.btn-login {
    background: #046ed8;
    color: #fff !important;
    padding-right: 18px !important;
    padding-top: 3px;
    padding-bottom: 3px;
    font-weight: 600 !important;
    border-radius: 4px;
}

.btn-login::after { color: #fff !important; }

@media only screen and (max-width: 992px) {
    .btn-login {
        max-width: 200px !important;
        margin-left: 20px;
    }
    .btn-login::after { color: #fff !important; }
}

/* Bottone goto (usato nelle pagine moduli) */
.btn-goto {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    transition: 0.5s;
    margin: 10px;
    color: #fff;
    background: #046ed8;
    margin-top: 25px;
}

.btn-goto:hover {
    background: #fff;
    color: #046ed8;
    border: 1px solid #046ed8;
}

/* Bottone goto modulo */
.btn-goto-modulo {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    transition: 0.5s;
    margin: 15px;
    color: #fff;
    background: #046ed8;
    max-width: 250px !important;
    margin-top: 20px !important;
}

.btn-goto-modulo:hover {
    background: #dfdfdf;
    color: #0e0e0e;
    font-weight: 800;
}

/* Bottone WOD card / player */
.wod-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 18px;
    background: #046ed8;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wod-btn:hover {
    background: #00b3f6;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Bottone download */
.btn-download {
    text-transform: uppercase;
    color: #ffffff;
    background: #046ed8;
    padding: 10px;
    border-radius: 8px;
}

.btn-download:before {
    background-image: url(/assets/img/icons/pdf.png);
    background-size: 42px 42px;
    display: inline-block;
    width: 45px;
    height: 45px;
    content: "";
    margin-right: 2px;
    margin-bottom: -15px;
    background-repeat: no-repeat;
}

.download-btn {
    background: #046ed8;
    margin-top: 20px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 13px;
    border: 3px solid #979797a6;
}

.download-btn:hover {
    background: #979797a6;
    color: #046ed8;
    border: 3px solid #046ed8;
    transition: background-color 0.6s linear;
}

.download-btn-off {
    background: #b7b7b7;
    margin-top: 20px;
    color: #dcdcdc;
    text-transform: uppercase;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 13px;
    border: 3px solid #979797a6;
}

.items-download-pdf {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    background: #e1e1e1;
    padding: 20px;
    margin-top: -3px;
}


/* =========================================================
   4. HERO / PAGE TITLE
   ========================================================= */

#hero {
    background: #0e0e0e;
}

.hero-mob {
    background: #0e0e0e !important;
}

#hero-mob {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(0deg, #0e0e0e 0%, #0e0e0e 100%);
    padding: 30px;
    color: white;
    text-align: center;
    height: auto;
}

#hero-mob h2 { padding-top: 130px; }
#hero-mob p  { font-size: 18px; line-height: 24px; padding: 15px; }

.section-page-title {
    margin-top: 100px;
    background: #000000;
    width: 100%;
    margin-bottom: -50px;
    padding: 20px 0 35px 0;
}

/* Sottolineatura accent blu Water */
.section-page-title h2::after {
    content: "";
    width: 120px;
    height: 3px;
    display: inline-block;
    background: #046ed8;
    margin: 0 10px;
}


/* =========================================================
   5. BACK TO TOP
   ========================================================= */

.back-to-top i { background: #0e0e0e; border: 2px solid; }
.back-to-top i:hover { background: #046ed8; color: #fff; }


/* =========================================================
   6. SECTION TITLES & TYPOGRAPHY
   ========================================================= */

.title-modulo {
    background: #0e0e0e;
    text-align: center;
    color: white !important;
    padding: 10px;
    font-weight: 600 !important;
    margin-top: 70px !important;
}

.title-mob-minisection {
    font-size: 24px;
    font-weight: 600;
    margin-left: 18px;
    color: #0e0e0e;
}

.description-mob    { font-size: 18px; }
.description-mob-ul li { font-size: 18px; margin-bottom: 9px; }
.mob-ml-18          { margin-left: 18px; }
.mt-18              { margin-top: 18px; }

.lezioni-moduli     { margin-top: -50px !important; }
.msg-moduli         { padding-bottom: 0; }

.card-body ul       { font-size: 20px; }
.card-body h5, .card-body h6 { font-size: 24px; font-family: 'Poppins'; }

.icon-check { width: 25px; padding-right: 5px; }

/* Dividers */
.divider-lineorange {
    content: '';
    position: relative;
    margin-top: 10px;
    height: 2px;
    width: 100%;
    background: rgba(4, 110, 216, 0.7); /* blu water invece di rosso */
}

.divider-line {
    border-top: 2px solid #00000073;
    border-bottom: 2px solid #00000073;
    padding-top: 15px;
    padding-bottom: 5px;
}


/* =========================================================
   7. PERMISSION DENIED / MESSAGGI
   ========================================================= */

.permission-denied img {
    max-width: 150px;
    margin-bottom: 30px;
}

.message-nopermission {
    background-color: #e40000;
    color: #ffffff;
    padding: 10px;
    border-radius: 10px;
}

.message-postdateactive {
    background-color: #008304;
    color: #ffffff;
    padding: 10px;
    border-radius: 10px;
}

.msg-licenza {
    background: #046ed8;
    color: #ffffff;
    padding: 25px;
    border-radius: 25px;
}

.msg-licenza a {
    color: #FFD54F;
    font-weight: 900;
    text-decoration: underline;
    letter-spacing: 0.05em;
}


/* =========================================================
   8. FORM RICERCA VIDEO
   ========================================================= */

form#search-water-videos,
form#search-category {
    width: 100%;
    position: relative;
    display: flex;
    margin: 0 35px 30px 20px;
}

input[name="word"] {
    width: 100%;
    padding: 8px 8px 8px 20px;
    outline: none;
    font-size: 18px;
    color: black;
    background: #f0f4f8;
    border: none;
    border-radius: 20px 0 0 20px;
}

button.search-btn-category {
    background: #046ed8;
    color: #ffffff;
    border: none;
    width: 60px;
    border-radius: 0 20px 20px 0;
}

button.search-btn-category:hover {
    background: #f0f4f8;
    color: #046ed8;
    font-size: 25px;
}

button.search-btn-category i { margin-right: 5px; }

@media (max-width: 425px) {
    span.btnsearch-text     { display: none; }
    button.search-btn-category { width: 50px !important; }
}

/* Paginazione */
.page-item.active .page-link {
    background-color: #046ed8;
    border-color: #046ed8;
}

.page-link {
    color: #046ed8;
    font-weight: 600 !important;
}


/* =========================================================
   9. GRIGLIA VIDEO (lista + correlati)
   ========================================================= */

.container-video {
    display: flex;
    flex-flow: row wrap;
}

.item-video {
    flex: 3 0 33%;
    padding: 0 20px 25px 5px;
}

.item-video img { margin-bottom: 8px; }

@media (max-width: 768px) {
    .item-video { flex: 1 0 50%; }
}

@media (max-width: 425px) {
    .item-video { flex: 1 0 100%; }
    .holy-grail-content { padding: 0 0 30px 5px !important; }
}

/* Thumbnail con overlay play */
.video-thumbnail {
    position: relative;
    cursor: pointer;
}

.video-thumbnail:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: "\f144";
    font-family: FontAwesome;
    font-size: 50px;
    color: #fff;
    opacity: 0.7;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.video-thumbnail img:hover  { opacity: 0.4; }
.video-thumbnail:hover:before { color: #046ed8; }  /* blu water al posto del nero */
.video-thumbnail img        { width: 100% !important; }

.preview-video img {
    width: 100%;
    margin-bottom: 9px;
}

.preview-video h4 { margin-left: 0 !important; }


/* =========================================================
   10. PLAYER VIDEO
   ========================================================= */

.player-video {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 */
}

.player-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


.player-video--embedded {
    position: static;
    padding: 0;
}

.player-video--embedded iframe {
    position: absolute; /* oppure elimina questa regola se il wrapper Vimeo gestisce già tutto */
}






.name-video h2 {
    margin: 10px 15px 5px 10px;
    font-size: 24px;
}

.views-video {
    margin: -35px 25px 0 0;
    width: 100%;
    text-align: right;
}

.ly-section {
    margin-top: 20px;
    padding-bottom: 20px;
}

.icon-comments img {
    width: 40px;
    float: left;
    padding-right: 8px;
}

.video-preview         { margin-top: 50px !important; }
.video-preview-first   { margin-top: -20px !important; }
.contain-overflow      { overflow: hidden; }
.sidebar-video         { background: #e0f0fb; padding: 15px 45px 15px 15px; border-radius: 10px; }


/* =========================================================
   11. WOD GRID (Modulo – Cicli / Settimane)
   ========================================================= */

.wod-cycle-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    background: #000000;
    padding: 12px 18px;
    border-left: 5px solid #046ed8;
    border-radius: 4px;
    margin: 40px 0 24px 0;
}

.wod-weeks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* Card WOD */
.wod-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(4, 110, 216, 0.3);
}

.wod-card-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #333;
    display: block;
}

.wod-card-content {
    padding: 16px;
    color: #ffffff;
}

.wod-card-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.wod-type {
    color: #00b3f6;
    font-weight: 700;
    font-size: 14px;
    margin: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wod-time {
    font-size: 13px;
    opacity: 0.75;
    margin: 4px 0 0 0;
}

@media (max-width: 767px) {
    .wod-weeks-grid  { grid-template-columns: 1fr; }
    .wod-cycle-title { font-size: 20px; }
}


/* =========================================================
   12. WOD VIEW (pagina singolo WOD)
   ========================================================= */

.image-preview-wod {
    padding: 15px;
    width: -webkit-fill-available;
    max-width: 900px;
}

.time p:before {
    background-image: url(/assets/img/icons/cronometro.svg);
    background-size: 22px 22px;
    display: inline-block;
    width: 25px;
    height: 25px;
    content: "";
    margin-right: 2px;
    margin-bottom: -8px;
    margin-top: 10px;
    background-repeat: no-repeat;
}

.time-cap p:before {
    background-image: url(/assets/img/icons/clessidra.svg);
    background-size: 22px 22px;
    display: inline-block;
    width: 25px;
    height: 25px;
    content: "";
    margin-right: 2px;
    margin-bottom: -8px;
    margin-top: 10px;
    background-repeat: no-repeat;
}

.notes h6:before {
    background-image: url('/assets/img/icons/notes-svgmembership.svg');
    background-size: 25px 25px;
    display: inline-block;
    width: 25px;
    height: 25px;
    content: "";
    margin-right: 5px;
    margin-bottom: -5px;
    margin-top: 30px;
}

.row-wodpreview {
    padding-bottom: 40px;
    border-bottom: 1px solid #046ed8;  /* blu water */
    margin-bottom: 25px;
}

.preview-img img  { width: 100%; }
.subrow-preview   { width: 100%; }

.related-content {
    background: #046ed8;  /* blu water */
    color: #ffffff;
    padding: 15px 15px 5px 5px;
    border-radius: 5px;
}


/* =========================================================
   13. SIDEBAR ITEMS (categorie, recent videos)
   ========================================================= */

.section-sidebar     { margin-bottom: 20px; }
.hg-sidebar          { background: #e8f4fd; padding: 15px; } /* azzurro tenue */

.section-sidebar h4 {
    border-bottom: 2px solid #046ed8;
    padding-bottom: 6px;
    font-size: 20px;
}

.section-sidebar h5 {
    margin-bottom: 35px !important;
    margin-left: 0 !important;
}

.sidebar-class {
    padding: 5px 0 0 30px;
    width: 300px;
}

.main-container { width: 70%; }

@media screen and (max-width: 767px) {
    .sidebar-class  { padding: 0; width: 100%; }
    .main-container { width: 100%; }
}

@media screen and (max-width: 1023px) {
    .main-container { width: 100%; padding-right: 40px; }
}

.holy-grail, .holy-grail-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.holy-grail         { min-height: 100vh; }
.holy-grail-content { flex: 1 1 auto; padding: 0 60px 30px 5px; }

@media (min-width: 1023px) {
    .holy-grail-sidebar-1 { order: -1; }
    .holy-grail-body      { flex-direction: row; }
    .hg-sidebar           { flex: 0 0 320px; }
}

/* Items sidebar (bottoni categoria) */
.items-body {
    display: grid;
    grid-gap: 10px;
    margin-bottom: 35px;
    margin-top: 15px;
}

.items-body-content {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    transition: 0.5s;
    margin: 10px;
    color: #fff;
    background: #046ed8;
    margin-top: 2px;
}

.items-body-content a          { color: #ffffff; }
.items-body-content:hover a    { color: #046ed8; }

.items-body-content:hover {
    background: #fff;
    color: #046ed8;
    border: 1px solid #046ed8;
}

.items-body-content:before {
    background-image: url(/assets/img/icons/icon-videogallery-white.png);
    background-size: 22px 22px;
    display: inline-block;
    width: 25px;
    height: 25px;
    content: "";
    margin-right: 2px;
    margin-bottom: -8px;
    background-repeat: no-repeat;
}

.items-body-content:hover:before {
    background-image: url(/assets/img/icons/icon-videogallery-blue.png); /* versione blu */
    background-size: 22px 22px;
    display: inline-block;
    width: 25px;
    height: 25px;
    content: "";
    margin-right: 2px;
    margin-bottom: -8px;
    background-repeat: no-repeat;
}

.items-body-content i {
    align-self: center;
    font-size: 15px;
    font-weight: bold;
    animation: icon 1.5s infinite forwards;
}

@keyframes icon {
    0%, 100% { transform: translate(0); }
    50%       { transform: translate(3px); }
}

.items-body-content img {
    width: 20px !important;
    margin-top: 3px;
    margin-left: 5px;
}

span.icon-category img {
    width: 25px;
    float: left;
    margin-right: 10px;
}


/* =========================================================
   14. WRAPPER / RIBBON (cards con nastro)
   ========================================================= */

.wrapper {
    background: white;
    border-radius: 10px;
    box-shadow: 5px 10px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.ribbon-wrapper-red {
    width: 85px;
    height: 88px;
    overflow: hidden;
    position: absolute;
    top: -3px;
    right: -3px;
}

.ribbon-red {
    font: bold 15px Sans-Serif;
    color: #fff;
    text-align: center;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    position: relative;
    padding: 7px 0;
    left: -5px;
    top: 15px;
    width: 120px;
    background-color: #046ed8;
    background-image: linear-gradient(top, #046ed8, #024fa0);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.ribbon-red:before,
.ribbon-red:after {
    content: "";
    border-top: 3px solid #024fa0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    position: absolute;
    bottom: -3px;
}

.ribbon-red:before { left: 0; }
.ribbon-red:after  { right: 0; }


/* =========================================================
   15. FOOTER
   ========================================================= */

#footer-mob {
    margin-top: 100px;
    background: #0e0e0e;
    color: #fff;
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}

.social-links-mob { margin: 0 0 40px 0; }

.social-links-mob a {
    font-size: 18px;
    display: inline-block;
    background: #0e0e0e;
    color: #fff;
    line-height: 1;
    padding: 8px 0;
    margin-right: 4px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
}


/* =========================================================
   16. MISCELLANEA
   ========================================================= */

.space         { margin-top: 30px; }
.formato-stampa {
    background: #e9e9e9;
    padding: 20px;
    position: relative;
}

.formato-stampa:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border-bottom: 5px solid #046ed8;
    transition: border-width 0.6s linear;
}

.title-domanda {
    font-size: 20px;
    margin-top: 25px;
    font-weight: 600;
}

.infolevel {
    text-decoration: underline;
    background: #b4b4b4 !important;
    font-size: 15px !important;
    color: #ffffff !important;
    text-transform: uppercase;
}

/* WOD preview card (lista categorie) */
.imgwods img  { width: 100%; margin-bottom: 20px; }
.imgwods      { text-align: center !important; background: #e1e1e1 !important; padding: 0 !important; margin: 0 !important; }
.imgwods h4   { margin: 10px 0 15px 0 !important; }
.imgwods p    { margin: 10px 0 15px 0 !important; }
.imgwods a    { margin: 10px 0 25px 0 !important; }