/* ================================================
   Thailand Fantastic — Blog Section Homepage
   File: blog-section.css
   ================================================ */

/* -----------------------------------------------
   WRAPPER GENERALE
----------------------------------------------- */
.tf-blog-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* -----------------------------------------------
   HEADER SEZIONE
----------------------------------------------- */
.tf-blog-header {
    margin-bottom: 2rem;
}

.tf-blog-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #111111;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.tf-blog-header h2 span {
    color: var(--tf-primary, #2E8B57);
}

.tf-blog-header p {
    font-size: 0.95rem;
    color: #718096;
    margin: 0;
    max-width: 520px;
}

/* -----------------------------------------------
   GRIGLIA TOP: ARTICOLO IN EVIDENZA + SIDEBAR
----------------------------------------------- */
.tf-blog-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

/* --- ARTICOLO IN EVIDENZA --- */
.tf-feat {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2eee8;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(46, 139, 87, 0.08);
}

.tf-feat-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.tf-feat-body {
    padding: 1.5rem;
}

.tf-feat-cat {
    display: inline-block;
    background: rgba(46, 139, 87, 0.1);
    color: #2E8B57;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.tf-feat-title {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: #111111;
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

.tf-feat-excerpt {
    font-size: 0.9rem;
    color: #718096;
    margin: 0 0 1.25rem;
    line-height: 1.65;
}

.tf-btn-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2E8B57;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(46, 139, 87, 0.35);
    transition: all 0.2s ease;
}

.tf-btn-read:hover {
    background: #256f45;
    box-shadow: 0 4px 14px rgba(46, 139, 87, 0.45);
    color: #ffffff;
    text-decoration: none;
}

/* --- SIDEBAR ARTICOLI RECENTI --- */
.tf-sidebar {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2eee8;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(46, 139, 87, 0.08);
}

.tf-sidebar-header {
    background: #2E8B57;
    padding: 0.85rem 1.25rem;
}

.tf-sidebar-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.tf-rec-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #e2eee8;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tf-rec-item:last-child {
    border-bottom: none;
}

.tf-rec-item:hover {
    background: #F5F9F7;
    text-decoration: none;
}

.tf-rec-thumb {
    width: 70px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.tf-rec-title {
    font-size: 0.83rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -----------------------------------------------
   CAROSELLO DESTINAZIONI
----------------------------------------------- */
.tf-car-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tf-car-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.tf-car-header h3 span {
    color: #2E8B57;
}

.tf-car-nav {
    display: flex;
    gap: 6px;
}

.tf-car-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2eee8;
    background: #ffffff;
    color: #2E8B57;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    line-height: 1;
}

.tf-car-arrow:hover {
    background: #2E8B57;
    color: #ffffff;
    border-color: #2E8B57;
}

.tf-car-track-wrap {
    overflow: hidden;
    border-radius: 8px;
}

.tf-car-track {
    display: flex;
    gap: 14px;
    transition: transform 0.35s ease;
    will-change: transform;
}

/* Card 4:2 = aspect-ratio 2/1 */
.tf-dest-card {
    flex: 0 0 calc((100% - 42px) / 4);
    aspect-ratio: 2 / 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
}

.tf-dest-card:hover .tf-dest-img {
    transform: scale(1.05);
}

.tf-dest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tf-dest-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.tf-dest-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0.7rem 0.9rem;
}

.tf-dest-name {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Dot indicators */
.tf-car-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 0.9rem;
}

.tf-car-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4e8dd;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.tf-car-dot.active {
    background: #2E8B57;
    width: 18px;
    border-radius: 3px;
}

/* -----------------------------------------------
   RESPONSIVE
----------------------------------------------- */
@media (max-width: 900px) {
    .tf-blog-grid {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 680px) {
    .tf-blog-section {
        padding: 2rem 1rem;
    }

    .tf-blog-grid {
        grid-template-columns: 1fr;
    }

    .tf-dest-card {
        flex: 0 0 calc((100% - 14px) / 2);
    }
}
