/* ==========================================================================
   Homepage „Travel Island” — recreare a temei WordPress
   (foloseste imaginile din assets/img/ti/: cer, valuri, nisip, bara albastra)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Amaranth:wght@400;700&family=Lobster&family=PT+Sans:wght@400;700&display=swap');

body.home {
    background-color: #cce6fc;
    background-image: url('../img/ti/bg_sky_water.jpg');
    background-repeat: repeat-x;
    background-position: top center;
}

/* Header lizibil pe cer deschis */
body.home .site-header:not(.is-scrolled) {
    color: #1E4672;
}

body.home .site-header:not(.is-scrolled) .brand,
body.home .site-header:not(.is-scrolled) .brand__text,
body.home .site-header:not(.is-scrolled) .nav-link,
body.home .site-header:not(.is-scrolled) .nav-contact,
body.home .site-header:not(.is-scrolled) .nav-phone,
body.home .site-header:not(.is-scrolled) .nav-hours,
body.home .site-header:not(.is-scrolled) .nav-toggle {
    color: #1E4672;
}

body.home .site-header:not(.is-scrolled) .nav-link.is-active {
    color: #B07A3A;
}

body.home .site-header:not(.is-scrolled) .brand__mark {
    color: #1E4672;
}

/* ── Hero: slider incadrat, pe cer ───────────────────────────────────────── */
.ti-page {
    background: transparent;
}

/* Peisajul de sus: aceleasi straturi ca in tema veche (fara suprapuneri) */
.ti-page {
    background:
        url('../img/ti/bg_waves_tile_cover.png') repeat-x center 460px,
        url('../img/ti/bg_details.png') no-repeat top center,
        url('../img/ti/bg_waves_tile.png') repeat-x left 460px;
}

.ti-hero {
    padding: calc(var(--header-h) + 3rem) 0 0;
    background: transparent;
}

.ti-hero__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
    width: 100%;
    /* Sliderul preia si locul casetei Contact, care a coborat sub el. */
    max-width: calc(672px + 340px + .6rem);
    margin: 0 auto;
}

.ti-sliderwrap {
    position: relative;
}

.ti-slider {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 4px solid #ffffff;
    border-radius: 5px;
    background: #fff;
}

.ti-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
}

.ti-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.ti-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Încadrare imagine: „Umple” (cover) sau „Întreagă” (contain + fundal blurat). */
.ti-slider--fit-contain .ti-slide img {
    object-fit: contain;
}

.ti-slide__blur {
    position: absolute;
    inset: -24px;
    background-position: center;
    background-size: cover;
    filter: blur(18px) brightness(0.72);
    transform: scale(1.08);
}

/* Textele hero-ului peste slider (eyebrow, titlu, subtitlu, buton). */
.ti-slider__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 2.2rem 1.3rem 1.25rem;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(180deg, rgba(17, 56, 97, 0) 0%, rgba(17, 56, 97, 0.78) 82%);
    color: #ffffff;
    pointer-events: none;
}

.ti-slider__eyebrow {
    margin: 0 0 .3rem;
    font-family: 'Amaranth', sans-serif;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #ffd166;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.ti-slider__title {
    margin: 0;
    font-family: 'Lobster', cursive;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.ti-slider__text {
    margin: .45rem 0 0;
    max-width: 52ch;
    font-size: .92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.ti-slider__actions {
    margin: .8rem 0 0;
    pointer-events: auto;
}

.ti-slider__caption .ti-btn {
    padding: .6rem 1.2rem;
    font-size: .74rem;
}

/* Sagetile sliderului — imaginea din tema veche (flexslider) */
.ti-arrow {
    position: absolute;
    top: 50%;
    margin-top: -26px;
    z-index: 4;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    background: url('../img/ti/bg_direction_nav.png') no-repeat;
    cursor: pointer;
    text-indent: -999em;
    overflow: hidden;
}

.ti-arrow--prev { left: -20px; background-position: 0 0; }
.ti-arrow--next { right: -21px; background-position: -52px 0; }

/* Punctele sliderului — imaginea din tema veche (flexslider) */
.ti-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

/* Tinta de atingere de 48x48px; punctul vizual ramane de 13px. */
.ti-dot {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ti-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    margin: -6.5px 0 0 -6.5px;
    background: url('../img/ti/bg_control_nav.png') no-repeat 0 0;
}

.ti-dot:hover::before { background-position: 0 -13px; }
.ti-dot.is-active::before { background-position: 0 -26px; }
.ti-dot:focus-visible::before { outline: 2px solid #2D659E; outline-offset: 2px; }

/* ── Continut transparent peste fundalul temei ──────────────────────────── */
.ti-content {
    background: transparent;
    padding: 0;
}

.ti-side {
    display: grid;
    gap: 1rem;
}

/* Cutia Contact are aceeasi inaltime ca sliderul (672 x 9/16 = 378px) */
@media (min-width: 961px) {
    .ti-side .ti-box {
        display: flex;
        flex-direction: column;
        min-height: 378px;
    }

    /* In randul Bun venit + Contact caseta nu mai trebuie sa egaleze sliderul. */
    .ti-mid .ti-side .ti-box {
        min-height: 0;
    }

    .ti-side .ti-box .ti-btn {
        margin-top: auto;
        align-self: flex-start;
    }

    /* Lista Contact personalizata: chenarul se lipeste de continut,
       butonul sta imediat sub lista (fara gol mare). */
    .ti-side .ti-box.ti-box--compact {
        min-height: 0;
    }

    .ti-side .ti-box.ti-box--compact .ti-btn {
        margin-top: 1rem;
    }
}

/* Chenarul de contact: text mai mic, pe un rand; buton mai mic */
.ti-side .ti-box__list li,
.ti-side .ti-box__list a {
    gap: .4rem;
    padding-bottom: .4rem;
    font-size: .72rem;
    line-height: 1.4;
}

.ti-side .ti-box__list li.ti-single {
    white-space: nowrap;
}

.ti-side .ti-box__list .icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.ti-side .ti-box__list li strong {
    width: 64px;
}

.ti-side .ti-btn {
    padding: .45rem .8rem;
    font-size: .7rem;
}

/* Rândul „Google Maps” din lista de contact (sub adresa) — deschide modalul */
.ti-side .ti-box__list .ti-map-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: #1E4672;
    text-align: left;
    cursor: pointer;
}

.ti-side .ti-box__list .ti-map-link:hover {
    color: #2D659E;
    text-decoration: underline;
}

/* Harta Google Maps embed sub chenarul Contact (bifa "Afiseaza harta") */
.ti-side .ti-box .ti-map {
    margin: 1rem 1rem 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #D8E7F0;
    border-radius: 6px;
}

.ti-side .ti-map iframe {
    display: block;
    width: 100%;
    height: 180px;
    border: 0;
}

/* ── Modal harta Google Maps (vedere teren) ─────────────────────────────── */
.ti-mapmodal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.ti-mapmodal[hidden] { display: none; }

.ti-mapmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 35, 60, .72);
}

.ti-mapmodal__dialog {
    position: relative;
    width: min(960px, 100%);
    padding: .75rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.ti-mapmodal__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #DCEAF3;
    border-radius: 6px;
}

.ti-mapmodal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ti-mapmodal__close {
    position: absolute;
    top: -.7rem;
    right: -.7rem;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #1E4672;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ti-mapmodal__close:hover { background: #2D659E; }

.ti-mapmodal__ext {
    display: inline-block;
    margin-top: .6rem;
    font-size: .78rem;
    font-weight: 700;
    color: #1E4672;
    text-decoration: none;
}

.ti-mapmodal__ext:hover { text-decoration: underline; }

body.map-modal-open { overflow: hidden; }

/* ── Mod editare vizuala: canvas-ul clasic de blocuri ───────────────────── */
body.ve-active .ti-editor {
    padding: calc(var(--header-h) + 2rem) 0 2.5rem;
}

.ti-editor__hint {
    margin: 0 0 1.2rem;
    padding: .7rem 1rem;
    border: 1px solid #E9D48A;
    border-radius: 4px;
    background: #FFF6DC;
    color: #6B5A16;
    font-family: 'PT Sans', sans-serif;
    font-size: .85rem;
}

/* Randul Bun venit + Contact + carduri, sub slider, pe aceeasi latime */
.ti-mid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas:
        "welcome contact"
        "features features";
    gap: .6rem;
    width: 100%;
    max-width: calc(672px + 340px + .6rem);
    margin: 0 auto;
}

.ti-mid > .ti-welcome,
.ti-mid > .ve-block[data-type="text"] { grid-area: welcome; }

.ti-mid > .ti-side,
.ti-mid > .ve-block[data-type="contact"] { grid-area: contact; }

.ti-mid > .ti-features,
.ti-mid > .ve-block[data-type="cards"] { grid-area: features; }

/* Chenarul de bun venit — in coloana din stanga a randului */
.ti-welcome {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.2rem 0;
}

/* Contactul porneste de la acelasi nivel cu chenarul Bun venit. */
.ti-mid .ti-side {
    padding-top: 1.2rem;
}

/* Blocuri suplimentare (list / split / cta) si cele din editor. */
.ti-extra-blocks {
    padding: 1.6rem 0 .4rem;
}

.ti-extra-blocks > .container {
    width: 100%;
    max-width: calc(672px + 340px + .6rem);
}

.ti-extra-blocks .ve-block {
    margin-bottom: 1rem;
}

.ti-extra {
    margin: 0 0 1rem;
}

.ti-extra__box {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #D8E7F0;
    border-radius: 6px;
    box-shadow: 0 12px 30px -26px rgba(36, 74, 114, .6);
}

.ti-extra__intro {
    margin: 1rem 1rem 0;
    color: #4F6A80;
    font-family: 'PT Sans', sans-serif;
    font-size: .92rem;
    line-height: 1.6;
}

.ti-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem 1.4rem;
    margin: 0;
    padding: 1rem 1rem 1.2rem;
    list-style: none;
}

.ti-checklist--1 { grid-template-columns: 1fr; }

.ti-checklist li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    color: #2B4A6B;
    font-family: 'PT Sans', sans-serif;
    font-size: .9rem;
    line-height: 1.45;
}

.ti-checklist .icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: .15rem;
    color: #2D659E;
}

.ti-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #D8E7F0;
    border-radius: 6px;
    box-shadow: 0 12px 30px -26px rgba(36, 74, 114, .6);
}

.ti-split__text { padding: 1.4rem; }

.ti-split__media {
    min-height: 240px;
    background: #DDEEF7;
}

.ti-split__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ti-split__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #2D659E;
}

.ti-split__placeholder .icon {
    width: 42px;
    height: 42px;
}

.ti-split--left .ti-split__text { order: 2; }
.ti-split--left .ti-split__media { order: 1; }

.ti-extra__eyebrow {
    margin: 0 0 .4rem;
    color: #2D659E;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.ti-split__title {
    margin: 0 0 .8rem;
    color: #2D659E;
    font-family: 'Lobster', cursive;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.15;
}

.ti-split__actions { margin: .9rem 0 0; }

.ti-cta {
    padding: 1.5rem 1.6rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #2D659E 0%, #1E4672 100%);
    color: #ffffff;
}

.ti-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.ti-cta__title {
    margin: 0 0 .4rem;
    color: #ffffff;
    font-family: 'Lobster', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.15;
}

.ti-cta__text {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-family: 'PT Sans', sans-serif;
    font-size: .92rem;
    line-height: 1.55;
}

.ti-features__head {
    max-width: calc(672px + 340px + .6rem);
    margin: 0 auto .8rem;
}

.ti-features__title {
    margin: 0 0 .4rem;
    color: #2D659E;
    font-family: 'Lobster', cursive;
    font-size: 1.7rem;
    font-weight: 400;
    text-align: center;
}

.ti-features__intro {
    margin: 0 0 .8rem;
    color: #4F6A80;
    font-family: 'PT Sans', sans-serif;
    font-size: .95rem;
    line-height: 1.6;
    text-align: center;
}

.ti-features__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ti-features__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ti-welcome--center .ti-welcome__inner { text-align: center; }

.ti-welcome__box {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #D8E7F0;
    border-radius: 6px;
    box-shadow: 0 12px 30px -26px rgba(36, 74, 114, .6);
}

.ti-welcome__box .ti-welcome__bar {
    margin: 0;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ti-welcome__inner {
    max-width: 880px;
    margin-inline: auto;
    padding: 1.7rem 2rem 1.9rem;
    text-align: left;
}

.ti-kicker {
    margin: 0 0 .6rem;
    color: #2D659E;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.ti-title {
    margin: 0 0 1.1rem;
    color: #2D659E;
    font-family: 'Lobster', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.1;
    text-align: center;
}

.ti-prose {
    color: #4F6A80;
    font-family: 'PT Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

.ti-prose p {
    margin: 0 0 .8rem;
}

.ti-prose p:last-child { margin-bottom: .9rem; }

.ti-welcome__cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .7rem;
    margin: 0;
}

.ti-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.4rem;
    border-radius: 4px;
    background: #113861;
    color: #ffffff;
    font-family: 'PT Sans', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}

.ti-btn:hover { background: #4E83B8; color: #ffffff; }

.ti-btn--gold { background: #EFA80F; color: #113861; }
.ti-btn--gold:hover { background: #f7bd42; }

.ti-btn--outline {
    background: transparent;
    color: #2D659E;
    box-shadow: inset 0 0 0 1px #2D659E;
}

.ti-btn--outline:hover { background: #ffffff; color: #2D659E; }

/* ── Facilitati — 3 cutii mici, in culorile chenarului Contact ──────────── */
.ti-features {
    padding: .6rem 0 2rem;
}

/* Aceeasi latime ca rândul slider + contact (672 + 340 + .6rem) */
.ti-features__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px;
    gap: 1rem .6rem;
    width: 100%;
    max-width: calc(672px + 340px + .6rem);
    margin: 0 auto;
}

.ti-feature {
    padding: 0 0 .9rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #D8E7F0;
    border-radius: 6px;
    box-shadow: 0 10px 24px -28px rgba(36, 74, 114, .6);
}

/* Bara albastra, identica cu cea din chenarul Contact */
.ti-feature .ti-box__bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .7rem;
    padding: 8px 12px 0;
    font-size: .95rem;
    letter-spacing: .01em;
}

.ti-feature__name {
    min-width: 0;
}

.ti-feature__body {
    padding: 0 1rem;
    font-family: 'PT Sans', sans-serif;
}

.ti-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #ffffff;
}

.ti-feature__icon .icon { width: 14px; height: 14px; }

.ti-feature p,
.ti-feature ul li {
    color: #2B4A6B;
    font-family: 'PT Sans', sans-serif;
    font-size: .8rem;
    line-height: 1.45;
}

.ti-feature p { margin: 0; }

.ti-feature ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ti-feature ul li {
    padding: .3rem 0;
    border-bottom: 1px solid #C9E1EB;
}

.ti-feature ul li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

/* ── Cutii cu bara albastra ─────────────────────────────────────────────── */
.ti-boxes {
    padding: 0 0 1.4rem;
}

.ti-boxes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
}

.ti-box {
    padding: 0 0 1.2rem;
    background: #ffffff;
    border: 1px solid #D8E7F0;
    border-radius: 6px;
    box-shadow: 0 10px 24px -28px rgba(36, 74, 114, 0.6);
}

.ti-box__bar {
    position: relative;
    height: 36px;
    margin: 0 0 1rem;
    padding: 8px 14px 0;
    border-radius: 5px 5px 0 0;
    background: url('../img/ti/bar_box_blue_tile.jpg') repeat-x;
    color: #ffffff;
    font-family: 'Amaranth', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: .02em;
}

.ti-box__bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 36px;
    background: url('../img/ti/bar_box_blue_left.jpg') no-repeat;
}

.ti-box__bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 9px;
    height: 36px;
    background: url('../img/ti/bar_box_blue_right.jpg') no-repeat;
}

.ti-box__list {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0 1rem;
    list-style: none;
    font-family: 'PT Sans', sans-serif;
}

.ti-box__list li,
.ti-box__list a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #C9E1EB;
    color: #2B4A6B;
    font-size: .95rem;
    text-decoration: none;
}

.ti-box__list a:hover { color: #EFA80F; }

.ti-box__list .icon {
    width: 17px;
    height: 17px;
    color: #2D659E;
}

.ti-box__list li strong {
    width: 88px;
    color: #2D659E;
    font-weight: 700;
}

.ti-box__text {
    margin: 0 1rem 1rem;
    color: #4F6A80;
    font-family: 'PT Sans', sans-serif;
    font-size: .95rem;
    line-height: 1.6;
}

.ti-box .ti-btn { margin: 0 1rem; }

.ti-box__social {
    display: flex;
    gap: .5rem;
    margin: 1rem 1rem 0;
}

.ti-box__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #DDEEF7;
    color: #2D659E;
}

.ti-box__social a:hover { background: #2D659E; color: #ffffff; }
.ti-box__social .icon { width: 17px; height: 17px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .ti-hero__row {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .ti-mid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "welcome"
            "contact"
            "features";
        max-width: 100%;
    }

    .ti-features__grid,
    .ti-features__grid--2,
    .ti-features__grid--3 {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .ti-welcome {
        max-width: 100%;
    }

    .ti-welcome__inner {
        padding: 1.3rem 1.2rem 1.5rem;
    }
}

@media (max-width: 720px) {
    .ti-hero { padding-top: calc(var(--header-h) + 1rem); }
    .ti-slider { aspect-ratio: 16 / 10; }

    .ti-split { grid-template-columns: 1fr; }
    .ti-split--left .ti-split__text,
    .ti-split--left .ti-split__media { order: initial; }
    .ti-split__media { min-height: 190px; }
    .ti-checklist { grid-template-columns: 1fr; }
    .ti-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .ti-cta { padding: 1.2rem; }

    /* Sageti mici, centrate vertical ca pe desktop, dar fara sa acopere textul. */
    .ti-arrow {
        top: 50%;
        margin-top: -24px;
        width: 48px;
        height: 48px;
        background: none;
    }
    .ti-arrow::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 36px;
        height: 36px;
        margin: -18px 0 0 -18px;
        background: url('../img/ti/bg_direction_nav.png') no-repeat;
        background-size: 72px 36px;
    }
    .ti-arrow--prev { left: 4px; }
    .ti-arrow--next { right: 4px; }
    .ti-arrow--prev::before { background-position: 0 0; }
    .ti-arrow--next::before { background-position: -36px 0; }

    /* Textul sliderului mai mic si cu loc liber fata de sageti. */
    .ti-slider__caption {
        padding: 1.6rem 3.6rem 1rem;
    }
    .ti-slider__eyebrow {
        font-size: .55rem;
        letter-spacing: .12em;
    }
    .ti-slider__title {
        font-size: 1rem;
        line-height: 1.2;
    }
    .ti-slider__text {
        font-size: .7rem;
        line-height: 1.4;
    }
    .ti-slider__caption .ti-btn {
        padding: .45rem .8rem;
        font-size: .62rem;
    }

    /* Bara titlului poate trece pe doua randuri fara sa fie taiata. */
    .ti-welcome__box .ti-welcome__bar {
        height: auto;
        min-height: 36px;
        padding: 8px 14px;
        font-size: .9rem;
        line-height: 1.3;
        letter-spacing: .05em;
    }
    .ti-welcome__box .ti-welcome__bar::before,
    .ti-welcome__box .ti-welcome__bar::after {
        height: 100%;
        background-size: 100% 100%;
    }

    .ti-title {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .ti-prose {
        font-size: .9rem;
        line-height: 1.6;
    }

    .ti-welcome__cta .ti-btn {
        padding: .55rem 1rem;
        font-size: .72rem;
    }
}


/* ── Bara albastra de banner (full_banner) ─────────────────────────────── */
.ti-banner {
    position: relative;
    height: 36px;
    margin: 1.6rem 0 0;
    padding: 7px 10px 0;
    border-radius: 4px;
    background: url('../img/ti/bar_box_blue_tile.jpg') repeat-x;
    color: #ffffff;
}

.ti-banner__title {
    float: left;
    margin: 0 12px 0 4px;
    font-family: 'Lobster', cursive;
    font-size: 1.3rem;
    line-height: 1;
}

.ti-banner__content {
    float: left;
    margin-top: 2px;
    color: #a9d4ff;
    font-family: 'PT Sans', sans-serif;
    font-size: 1.05rem;
}

.ti-banner__content strong {
    color: #efa80f;
    font-weight: 700;
}

.ti-banner__link {
    float: right;
    padding: 2px 8px;
    border-radius: 3px;
    background: #113861;
    color: #ffffff;
    font-family: 'PT Sans', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

.ti-banner__link:hover { background: #4e83b8; }

/* ── Cutii cu poze aranjate (fancy_posts) ──────────────────────────────── */
.ti-fancy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    padding: 1.8rem 0 1rem;
}

.ti-fancy__post {
    text-align: left;
}

.ti-fancy__image {
    display: block;
    padding: 6px;
    background: #cce6fc;
    border-radius: 5px;
    overflow: hidden;
}

.ti-fancy__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
}

.ti-fancy__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    color: #8fb3bf;
}

.ti-fancy__ph .icon { width: 44px; height: 44px; }

.ti-fancy__post h3 {
    margin: .6rem 0 .35rem;
    color: #2d659e;
    font-family: 'Lobster', cursive;
    font-size: 1.4rem;
    font-weight: 400;
}

.ti-fancy__post p {
    margin: 0 0 .8rem;
    color: #4F6A80;
    font-family: 'PT Sans', sans-serif;
    font-size: .93rem;
    line-height: 1.6;
}

.ti-btn--light {
    background: #4e83b8;
    color: #ffffff;
    padding: .45rem .9rem;
}

.ti-btn--light:hover { background: #2d659e; color: #ffffff; }

/* ── Decalul de nisip (footer_detail) ──────────────────────────────────── */
body.home .site-footer {
    display: none;
}

.ti-footer-decal {
    position: relative;
    height: 306px;
    background: url('../img/ti/footer_tile.png') repeat-x;
}

.ti-footer-decal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/ti/footer_detail.png') no-repeat center bottom;
}

.ti-footer-decal__inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 2;
    text-align: center;
    color: #2B4A6B;
    font-family: 'PT Sans', sans-serif;
    font-size: .85rem;
}

.ti-footer-decal__inner p {
    margin: 0 0 .2rem;
}

.ti-footer-decal__inner a {
    color: #2D659E;
    text-decoration: none;
}

.ti-footer-decal__inner a:hover {
    color: #EFA80F;
}

@media (max-width: 720px) {
    .ti-banner__content { display: none; }
    .ti-footer-decal { height: 190px; }
    .ti-footer-decal__inner { bottom: 14px; }
}
