/* Topbar Message - stesso stile di .topbar-one__left a */
.topbar-one__message {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

@media (min-width: 1200px) {
    .main-nav-one .logo-box {
        max-width: 160px;
        padding: 10px 0;
    }
}

.main-nav-one .main-nav__main-navigation .main-nav__navigation-box>li+li {
    margin-left: 35px;
}

.main-nav-one .main-nav__main-navigation .main-nav__navigation-box>li>a {
    font-size: 16px;
}

/* Page Header - Background visibile */
.page-header__bg {
    opacity: 0.4;
    background-size: cover;
}

/* Contact Page Improvements */
.contact-one__swimmer {
    opacity: 0.15;
    right: 0;
    left: auto;
    max-width: 400px;
}

.contact-one__content h3 {
    color: var(--thm-primary);
}

.contact-one__social a {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--thm-primary);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.contact-one__social a:hover {
    background: var(--thm-secondary);
    transform: translateY(-3px);
}

/* CTA One - Blue Tribe Style */
.cta-one__phone i {
    font-size: 2rem;
    margin-right: 15px;
    color: var(--thm-primary);
}

/* Google Maps */
.google-map__contact {
    filter: grayscale(20%);
}

/* Form Select Styling */
.contact-one__form select {
    width: 100%;
    height: 60px;
    padding: 0 30px;
    background-color: #f4f4f4;
    border: none;
    font-size: 16px;
    color: #7c7c7c;
    margin-bottom: 20px;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237c7c7c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}
/* Course Cards Fix - Box allineati con immagini */
.course-one__single {
    display: flex;
    flex-direction: column;
}

.course-one__content {
    width: 100%;
    flex-grow: 1;
}

.course-one__content p {
    width: 85%;
}

/* Course Cards - Altezza uniforme */
.course-one__carousel .owl-stage {
    display: flex;
}

.course-one__carousel .owl-item {
    display: flex;
}

.course-one__carousel .item {
    display: flex;
    width: 100%;
}

.course-one__single {
    height: 100%;
}

.course-one__image-inner > img {
    height: 240px;
    object-fit: cover;
}

/* Page Header to CTA-Two gradient fade */
.page-header {
    padding-bottom: 0;
}

.page-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(9, 77, 112, 0) 0%, rgba(9, 77, 112, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

.page-header .container {
    z-index: 2;
}

/* ==============================================
   FIX HOMEPAGE MOBILE - Spazio bianco e menu
   ============================================== */

/* Fix overflow orizzontale - solo su body, page-wrapper ha gia overflow:hidden */
body {
    overflow-x: clip;
}

/* Fix immagine kite safari che esce dal viewport su mobile */
@media (max-width: 1199px) {
    .cta-three__moc {
        display: none;
    }
}

/* Fix icona hamburger menu: deve essere all'estrema destra su mobile */
@media (max-width: 1199px) {
    .main-nav-one .logo-box {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .main-nav-one .logo-box .side-menu__toggler {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: auto !important;
    }
}

/* Fix side menu mobile - deve coprire tutto lo schermo */
.side-menu__block {
    width: 100%;
    height: 100%;
}

.side-menu__block-inner {
    max-width: 300px;
    width: 80%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fix elementi decorativi che causano overflow su mobile */
@media (max-width: 991px) {
    .contact-one__swimmer,
    .video-two__swimmer,
    .site-footer__fish-1,
    .site-footer__fish-2,
    .site-footer__fish-3,
    .site-footer__tree-1,
    .site-footer__tree-2 {
        display: none;
    }
}

/* ==============================================
   FIX Sezione Funfact / Istruttori Certificati
   ============================================== */

/* Il titolo originale era "Fun facts" (corto), il nostro è molto più lungo.
   Adattiamo il box per contenere testo lungo */
.funfact-one__title {
    width: auto;
    min-width: 283px;
    height: auto;
    min-height: 96px;
    padding: 15px 20px;
    font-size: 16px;
    letter-spacing: 0.2em;
    line-height: 1.4em;
}

/* Su tablet: titolo orizzontale sopra il blocco giallo */
@media (max-width: 991px) {
    .funfact-one__title {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        transform: rotate(0) translateX(0);
        -webkit-transform: rotate(0) translateX(0);
        transform-origin: center;
    }

    .funfact-one__title::before {
        content: '';
        width: 10000px;
        position: absolute;
        top: 0;
        left: 100%;
        height: 100%;
        background-color: var(--thm-black);
    }

    .funfact-one .inner-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .funfact-one .inner-container::before {
        top: 0;
        left: 50%;
        width: 35px;
        height: 10px;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        clip-path: polygon(0 0, 50% 100%, 100% 0);
        -webkit-clip-path: polygon(0 0, 50% 100%, 100% 0);
    }
}

/* Su mobile: statistiche impilate */
@media (max-width: 767px) {
    .funfact-one__single {
        justify-content: center;
        margin-bottom: 25px;
    }

    .funfact-one .inner-container {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* ==============================================
   FIX Sezione Blog / Novità e Articoli - Background
   ============================================== */
.blog-one__home-one {
    background-size: cover;
    background-position: center center;
}

/* ==============================================
   FIX Sezione CTA Five / Lifestyle - Box sovrapposti
   ============================================== */

/* I box hanno position:absolute e con immagini 180x180 (vs icone 60px del template)
   diventano troppo alti e si sovrappongono alla sezione precedente.
   Riduciamo le immagini e adattiamo il layout. */
.cta-five__box img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Aumenta padding-top della sezione per fare spazio ai box */
.cta-five {
    padding-top: 180px;
}

/* Fix box wrap per evitare che esca troppo dalla sezione */
.cta-five__box-wrap {
    right: 0;
}

/* Limita la larghezza del contenuto testo per non finire sotto i box */
.cta-five__content {
    max-width: 45%;
}

/* Su schermi medi */
@media (max-width: 1440px) {
    .cta-five__box-wrap {
        right: 0;
    }
}

@media (max-width: 1199px) {
    .cta-five__content {
        max-width: 100%;
    }
}

/* Su tablet e mobile: box in colonna dentro la sezione */
@media (max-width: 1199px) {
    .cta-five {
        padding-top: 120px;
    }

    .cta-five__box-wrap {
        position: relative;
        bottom: auto;
        right: auto;
        margin-bottom: 40px;
        display: flex;
        flex-wrap: wrap;
    }

    .cta-five__box:nth-child(2) {
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .cta-five__box {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .cta-five__box:nth-child(2) {
        transform: none;
    }
}

/* ==============================================
   Sezione Diventa Socio / Membership
   ============================================== */
.membership-section {
    position: relative;
    padding-top: 80px;
    padding-bottom: 100px;
    background-color: #094d70;
}

/* Nascondi le onde bianche sopra la brand section */
.brand-one__home-one::before {
    display: none;
}

.membership-section__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #094d70;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: overlay;
    opacity: 0.05;
}

.membership-section .container {
    position: relative;
    z-index: 2;
}

/* Feature boxes in cima */
.membership-section__features {
    margin-bottom: 60px;
}

.membership-feature {
    text-align: center;
    padding: 35px 25px;
    height: 100%;
}

.membership-feature i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.membership-feature h4 {
    font-family: var(--thm-font);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.membership-feature p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.membership-feature--dark {
    background-color: var(--thm-black);
    color: #fff;
}

.membership-feature--dark i {
    color: var(--thm-primary);
}

.membership-feature--dark p {
    color: #c1cfe1;
}

.membership-feature--blue {
    background-color: var(--thm-base);
    color: #fff;
}

.membership-feature--blue i {
    color: #fff;
}

.membership-feature--blue p {
    color: rgba(255, 255, 255, 0.8);
}

.membership-feature--yellow {
    background-color: var(--thm-primary);
    color: var(--thm-black);
}

.membership-feature--yellow i {
    color: var(--thm-black);
}

.membership-feature--yellow p {
    color: rgba(5, 27, 53, 0.7);
}

/* Testo a sinistra */
.membership-section__text .block-title p {
    color: #c1cfe1;
}

.membership-section__text .block-title h3 {
    color: #fff;
}

.membership-section__description {
    color: #c1cfe1;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.membership-section__benefits li {
    color: #fff;
    font-size: 17px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.membership-section__benefits li i {
    color: var(--thm-primary);
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

/* Form a destra */
.membership-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.membership-form-wrapper__title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--thm-black);
    font-size: 22px;
    font-weight: 700;
}

.membership-form-wrapper__title i {
    margin-right: 10px;
    color: var(--thm-base);
}

.membership-form__group {
    margin-bottom: 20px;
}

.membership-form__input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    outline: none;
}

.membership-form__input:focus {
    border-color: var(--thm-base);
}

.membership-form__group .error-message {
    color: #dc3545;
    display: none;
    margin-top: 5px;
    font-size: 13px;
}

.membership-form__server-error {
    color: #dc3545;
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

.membership-form__alert {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.membership-form__alert i {
    margin-right: 8px;
}

.membership-form__alert--success {
    background-color: #d4edda;
    color: #155724;
}

.membership-form__alert--error {
    background-color: #f8d7da;
    color: #721c24;
}

.membership-form__submit {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
}

.membership-form__submit i {
    margin-right: 10px;
}

.membership-form__note {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
    color: #999;
    font-size: 13px;
}

.membership-form__note i {
    margin-right: 5px;
}

/* Responsive membership */
@media (max-width: 991px) {
    .membership-section__text {
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .membership-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .membership-feature {
        margin-bottom: 15px;
    }

    .membership-section__features {
        margin-bottom: 40px;
    }

    .membership-form-wrapper {
        padding: 25px 20px;
    }

    .membership-section__description {
        font-size: 16px;
    }
}

/* ==============================================
   Pagina Viaggi - Sezione Intro
   ============================================== */
.viaggi-intro {
    padding: 80px 0 60px;
}

.viaggi-intro__text {
    font-size: 18px;
    line-height: 1.9;
    color: #555;
    text-align: center;
    margin-bottom: 50px;
}

.viaggi-intro__text strong {
    color: var(--thm-base);
}

.viaggi-feature {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.viaggi-feature__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--thm-base);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.viaggi-feature__icon i {
    font-size: 30px;
    color: #fff;
}

.viaggi-feature__icon--accent {
    background-color: var(--thm-black);
}

.viaggi-feature__icon--warm {
    background-color: #e8553d;
}

.viaggi-feature__icon--gold {
    background-color: var(--thm-primary);
}

.viaggi-feature__icon--gold i {
    color: var(--thm-black);
}

.viaggi-feature__title {
    font-family: var(--thm-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-black);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.viaggi-feature__text {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 767px) {
    .viaggi-intro {
        padding: 60px 0 40px;
    }

    .viaggi-intro__text {
        font-size: 16px;
        margin-bottom: 35px;
    }

    .viaggi-feature {
        margin-bottom: 25px;
    }

    .viaggi-feature__icon {
        width: 65px;
        height: 65px;
    }

    .viaggi-feature__icon i {
        font-size: 24px;
    }
}

/* ==============================================
   Pagina Team
   ============================================== */
.team-section {
    position: relative;
    padding: 80px 0 100px;
    background-color: #094d70;
}

.team-section__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #094d70;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: overlay;
    opacity: 0.05;
}

.team-section .container {
    position: relative;
    z-index: 2;
}

.team-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.team-card__photo {
    width: 200px;
    height: 200px;
    margin: 25px auto 0;
    border-radius: 50%;
    overflow: hidden;
}

.team-card__photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card__photo img {
    transform: scale(1.05);
}

.team-card__placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    border-radius: 50%;
}

.team-card__placeholder svg {
    width: 100%;
    height: 100%;
}

.team-card__info {
    padding: 25px;
    text-align: center;
}

.team-card__name {
    font-family: var(--thm-font);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.team-card__role {
    display: block;
    font-size: 14px;
    color: var(--thm-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.team-card__bio {
    color: #c1cfe1;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.team-card__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-card__links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
}

.team-card__links a:hover {
    background: var(--thm-primary);
    color: var(--thm-black);
    transform: translateY(-2px);
}

.team-card__iko {
    width: auto !important;
    padding: 0 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600;
    gap: 5px;
}

.team-card__iko i {
    font-size: 14px;
}

@media (max-width: 767px) {
    .team-section {
        padding: 60px 0 60px;
    }

    .team-card__info {
        padding: 20px;
    }

    .team-card__name {
        font-size: 20px;
    }
}
