/* ============================================
   BLOG SECTION - CSS COMPLETO E RESPONSIVO
   ============================================ */

/* Base Styles */
.contenitoreBlog {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 150px;
    font-family: Satoshi, sans-serif;
    color: #25182c;
    text-align: justify;
}

.category-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: rgba(101, 50, 121, 0.1);
    color: #653279;
    font-weight: 700;
    text-transform: capitalize;
}

.centered {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    position: relative;
}

.form-control-detail {
    background: #fff;
    border-radius: 16px;
    margin: 16px;
    padding-left: 16px;
}

.titoloPagina {
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 48px;
    line-height: 120%;
    font-weight: 400;
    text-align: left;
}

.titleCat {
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 48px;
    line-height: 120%;
    font-weight: bold;
}

/* Newsletter Section */
.img-newsletter {
    background-image: url(/images/newsletter.png);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: 500px;
    justify-content: center;
    width: 100%;
}

.text-newsletter {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 120%;
    margin-bottom: 16px;
    text-align: center;
}

.subtitle-newsletter {
    font-feature-settings: "calt" off;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -.01em;
    line-height: 150%;
    text-align: center;
    padding: 0 20px;
}

.inputWrapp {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-newsletter {
    background: #653279;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-newsletter:hover {
    background: #522961;
}

/* Content Boxes */
.contenitoreBlog .d-flex.justify-content-between {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.content-box-blog {
    width: 48%;
}

.contenitoreBlog .p.description.big {
    margin-bottom: 0px;
    font-size: 18px;
    color: #55575b;
    line-height: 150%;
    text-align: justify;
}

.percheHome {
    margin: 150px auto;
    max-width: 1200px;
}

.divider {
    width: 100%;
    height: 1px;
    margin-top: 32px;
    margin-bottom: 32px;
    background-color: #ddd;
}

/* Images */
.blog-thumb,
.blog-thumb-detail {
    width: 100%;
    height: 520px;
    border-radius: 20px;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-thumb:hover,
.blog-thumb-detail:hover {
    transform: scale(1.02);
}

.blog-thumb.hero {
    width: 90%;
    height: 480px;
}

.blog-card-image {
    width: 100%;
    height: 327px;
    min-height: 327px;
    border-radius: 20px;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card-image:hover {
    transform: scale(1.05);
}

/* Author Info */
.author-img {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    border-radius: 64px;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    object-fit: cover;
}

.author-img.big {
    width: 48px;
    height: 48px;
}

.author-wrapper {
    display: flex;
    align-items: center;
}

.author {
    font-size: 16px;
    font-weight: 500;
}

.author.bold {
    font-weight: 700;
}

.data {
    font-size: 18px;
    font-weight: 500;
    color: #55575b;
}

/* Blog Cards */
.blog-card-wrapper {
    width: 48%;
    margin-bottom: 48px;
    transition: transform 0.3s ease;
}

.blog-card-wrapper:hover {
    transform: translateY(-5px);
}

.blog-card-content {
    padding-top: 32px;
}

.h4Title {
    margin-top: 16px;
    margin-bottom: 24px;
    font-size: 28px;
    line-height: 120%;
    font-weight: bold;
    color: #25182c;
}

.p {
    font-size: 16px;
    line-height: 150%;
}

.p.description {
    margin-bottom: 24px;
    color: #55575b;
}

/* Articles Section */
.artRecent {
    font-size: 32px;
    line-height: 150%;
    font-weight: bold;
    color: #000;
}

.section {
    padding-top: 25px;
    padding-bottom: 25px;
}

/* Categories */
.categories-wrapper {
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
    gap: 20px;
}

.category-link {
    margin-right: 20px;
    padding-top: 12px;
    padding-right: 0px;
    padding-bottom: 12px;
    color: rgba(37, 24, 44, 0.5);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #653279;
}

.category-link.w--current,
.selectedCategory {
    color: #25182C !important;
    font-weight: 700;
    border-bottom: 2px solid #653279;
}

.w-inline-block {
    max-width: 100%;
    display: inline-block;
}

/* Hero Section */
.hero_section.blog-category {
    height: 40vh;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/ecoturismo.jpeg');
    background-position: 0px 0px, 50% 50%;
    background-size: auto, cover;
    background-repeat: repeat, no-repeat;
}

.hero_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Content Wrappers */
.content_wrapper.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content_wrapper.flex.vertical {
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.content_wrapper.flex.align-top {
    flex-wrap: wrap;
    align-items: flex-start;
}

.content_wrapper.flex.align-top.margintop32 {
    margin-top: 48px;
}

.content_wrapper.flex.justify-center {
    justify-content: center;
}

.content_wrapper.flex.wrap {
    flex-wrap: wrap;
}

/* Container Article */
.container-articolo {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

.container-articolo.stroke {
    padding-top: 150px;
    padding-bottom: 150px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.blog-text-wrapper.hero {
    width: 90%;
    margin-bottom: 72px;
}

.bodycontent {
    width: 65%;
}

.bodywrapper {
    display: flex;
    padding-top: 60px;
    padding-bottom: 0px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

/* Links */
.contenitoreBlog .linkArt {
    text-decoration: none;
    color: #25182c !important;
}

.white {
    color: #fff;
}

.alignCenter {
    align-items: center;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media screen and (max-width: 991px) {
    .contenitoreBlog {
        padding: 20px;
        margin-top: 120px;
    }

    .titoloPagina {
        font-size: 40px;
    }

    .titleCat {
        font-size: 40px;
    }

    .contenitoreBlog .d-flex.justify-content-between {
        gap: 30px;
        margin-bottom: 50px;
    }

    .content-box-blog {
        width: 48%;
    }

    .blog-thumb,
    .blog-thumb-detail {
        height: 400px;
    }

    .h4Title {
        font-size: 24px;
    }

    .artRecent {
        font-size: 28px;
    }

    .blog-card-wrapper {
        width: 48%;
        margin-bottom: 40px;
    }

    .text-newsletter {
        font-size: 32px;
    }

    .img-newsletter {
        height: 400px;
    }

    .percheHome {
        margin: 100px auto;
    }

    .categories-wrapper {
        justify-content: flex-start;
        gap: 15px;
    }

    .category-link {
        margin-right: 15px;
        font-size: 14px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media screen and (max-width: 767px) {
    .contenitoreBlog {
        padding: 15px;
        margin-top: 100px;
    }

    .titoloPagina {
        font-size: 32px;
    }

    .titleCat {
        font-size: 32px;
    }

    /* Layout verticale per hero section */
    .contenitoreBlog .d-flex.justify-content-between {
        flex-direction: column-reverse;
        gap: 30px;
        margin-bottom: 40px;
    }

    .content-box-blog {
        width: 100%;
    }

    .contenitoreBlog .p.description.big {
        font-size: 16px;
    }

    .blog-thumb,
    .blog-thumb-detail {
        height: 300px;
    }

    .category-label {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Blog cards full width */
    .blog-card-wrapper {
        width: 100%;
        margin-bottom: 30px;
    }

    .blog-card-image {
        height: 250px;
        min-height: 250px;
    }

    .h4Title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .p.description {
        font-size: 15px;
        margin-bottom: 16px;
    }

    /* Articles section */
    .artRecent {
        font-size: 24px;
        text-align: center;
        margin-bottom: 20px;
    }

    .section {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .content_wrapper.flex {
        flex-direction: column;
        gap: 20px;
    }

    /* Categories mobile */
    .categories-wrapper {
        justify-content: center;
        width: 100%;
        gap: 10px;
        padding: 10px 0;
    }

    .category-link {
        margin-right: 10px;
        font-size: 13px;
        padding: 8px 0;
    }

    /* Author info */
    .author-img {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }

    .author {
        font-size: 14px;
    }

    .data {
        font-size: 14px;
    }

    /* Newsletter */
    .img-newsletter {
        height: 350px;
        background-size: cover;
    }

    .text-newsletter {
        font-size: 24px;
        padding: 0 15px;
    }

    .subtitle-newsletter {
        font-size: 14px;
        padding: 0 20px;
    }

    .inputWrapp {
        flex-direction: column;
        padding: 0 20px;
        width: 100%;
    }

    .form-control-detail {
        width: 100% !important;
        margin: 10px 0;
    }

    .btn-newsletter {
        width: 100%;
        max-width: 320px;
    }

    .percheHome {
        margin: 60px auto;
        padding: 0 15px;
    }

    /* Article content */
    .bodycontent {
        width: 100%;
        padding: 0 15px;
    }

    .blog-text-wrapper.hero {
        width: 100%;
        margin-bottom: 40px;
    }

    .bodywrapper {
        padding-top: 40px;
    }

    .blog-thumb.hero {
        width: 100%;
        height: 300px;
    }

    .container-articolo.stroke {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .divider {
        margin-top: 24px;
        margin-bottom: 24px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE SMALL
   ============================================ */

@media screen and (max-width: 479px) {
    .contenitoreBlog {
        padding: 10px;
        margin-top: 80px;
    }

    .titoloPagina {
        font-size: 28px;
        line-height: 110%;
    }

    .titleCat {
        font-size: 28px;
        line-height: 110%;
    }

    .contenitoreBlog .d-flex.justify-content-between {
        gap: 20px;
        margin-bottom: 30px;
    }

    .contenitoreBlog .p.description.big {
        font-size: 15px;
    }

    .blog-thumb,
    .blog-thumb-detail {
        height: 230px;
        border-radius: 15px;
    }

    .category-label {
        font-size: 11px;
        padding: 5px 10px;
        margin-top: 8px;
    }

    .blog-card-image {
        height: 200px;
        min-height: 200px;
        border-radius: 15px;
    }

    .h4Title {
        font-size: 20px;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .p.description {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .artRecent {
        font-size: 22px;
    }

    .section {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .blog-card-wrapper {
        margin-bottom: 25px;
    }

    .categories-wrapper {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .categories-wrapper::-webkit-scrollbar {
        display: none;
    }

    .category-link {
        margin-right: 8px;
        font-size: 12px;
        padding: 6px 0;
        white-space: nowrap;
    }

    .author-img {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }

    .author {
        font-size: 13px;
    }

    .data {
        font-size: 13px;
    }

    .img-newsletter {
        height: 300px;
        border-radius: 15px;
    }

    .text-newsletter {
        font-size: 20px;
        line-height: 110%;
        padding: 0 10px;
    }

    .subtitle-newsletter {
        font-size: 13px;
        padding: 0 15px;
    }

    .form-control-detail {
        height: 44px !important;
        font-size: 14px;
    }

    .btn-newsletter {
        padding: 10px 20px;
        font-size: 14px;
    }

    .percheHome {
        margin: 40px auto;
        padding: 0 10px;
    }

    .blog-thumb.hero {
        height: 250px;
    }

    .container-articolo.stroke {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .divider {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* ============================================
   ANIMAZIONI E TRANSIZIONI
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .blog-thumb,
    .blog-thumb-detail,
    .blog-card-image,
    .blog-card-wrapper {
        transition: none;
        transform: none;
    }

    .blog-thumb:hover,
    .blog-thumb-detail:hover,
    .blog-card-image:hover,
    .blog-card-wrapper:hover {
        transform: none;
    }
}

/* ============================================
   BLOG EXTENDED STYLES - CSS AGGIUNTIVO
   ============================================ */

/* Hero Section per Categoria */
.hero_section.blog-category {
    height: 20vh;
    min-height: 100px;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0;
}

.hero_content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero_content .category-label.white {
    color: white !important;
}

.hero_content .titleCat.white {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-top: 0px;
}

/* Paginazione Bootstrap Custom */
.pagination-wrapper .pagination {
    display: flex;
    gap: 8px;
}

.pagination-wrapper .page-item {
    list-style: none;
}

.pagination-wrapper .page-link {
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid #ddd;
    color: #25182c;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-wrapper .page-link:hover {
    background: #653279;
    color: white;
    border-color: #653279;
}

.pagination-wrapper .page-item.active .page-link {
    background: #653279;
    color: white;
    border-color: #653279;
}

.pagination-wrapper .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 10px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumbs a {
    color: #653279;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #522961;
}

.breadcrumbs span {
    color: #55575b;
}

.breadcrumbs i {
    color: #ddd;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    color: #25182c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #653279;
    color: white;
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #653279;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.read-more-btn:hover {
    background: #522961;
    transform: translateX(5px);
    color: white;
}

/* Comments Section (se necessario) */
.comments-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #ddd;
}

.comments-section h3 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
}

.comment {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 20px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-meta {
    display: flex;
    flex-direction: column;
}

.comment-name {
    font-weight: 700;
    color: #25182c;
}

.comment-date {
    font-size: 14px;
    color: #55575b;
}

.comment-text {
    color: #25182c;
    line-height: 160%;
}

/* Search Bar (opzionale) */
.blog-search {
    max-width: 600px;
    margin: 0 auto 60px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-wrapper input:focus {
    outline: none;
    border-color: #653279;
}

.search-wrapper button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #653279;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-wrapper button:hover {
    background: #522961;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-state i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 30px;
}

.empty-state h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #25182c;
}

.empty-state p {
    font-size: 18px;
    color: #55575b;
    margin-bottom: 30px;
}

/* Responsive Improvements */
@media screen and (max-width: 991px) {
    .hero_section.blog-category {
        height: 6vh;
        min-height: 90px;
    }

    .pagination-wrapper .page-link {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {
    .hero_section.blog-category {
        height: 10vh;
        min-height: 80px;
        margin-bottom: 10px;
    }

    .hero_content .titleCat.white {
        font-size: 32px;
    }

    .pagination-wrapper .pagination {
        gap: 5px;
        justify-content: center;
    }

    .pagination-wrapper .page-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .breadcrumbs {
        font-size: 13px;
        gap: 8px;
    }

    .comments-section {
        margin-top: 60px;
        padding-top: 40px;
    }

    .comment {
        padding: 20px;
    }

    .blog-search {
        margin-bottom: 40px;
    }

    .empty-state {
        padding: 60px 20px;
    }

    .empty-state i {
        font-size: 60px;
    }

    .empty-state h3 {
        font-size: 24px;
    }
}

@media screen and (max-width: 479px) {
    .hero_section.blog-category {
        height: 5vh;
        min-height: 70px;
    }

    .hero_content .titleCat.white {
        font-size: 28px;
    }

    .hero_content .category-label.white {
        font-size: 12px;
        padding: 6px 12px;
    }

    .social-share h4 {
        font-size: 20px;
    }

    .article-tags {
        gap: 8px;
    }

    .tag {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* Print Styles */
@media print {
    .hero_section,
    .navigation-component,
    .footer-component,
    .social-share,
    .back-to-blog,
    .percheHome,
    .categories-wrapper,
    .pagination-wrapper {
        display: none !important;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    .article-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* Dark Mode Support (opzionale) */
@media (prefers-color-scheme: dark) {
    /* Implementare se necessario */
}