/*
Theme Name: ON Caterina Fulgoni
Description: Tema personalizato creato da Caterina Fulgoni per il sit di Naummi Norberto
Template: twentytwentyfive
Version: 1.0
*/

@import url("../twentytwentyfive/style.css");

:root {
    --principale: #93703A;
    --sfondo: #000000;
    --testo: #FFFFFF;
}

body {
    background-color: var(--sfondo) !important;
}

header,
.has-base-background-color {
    background-color: var(--principale) !important;
}

/* Font Bodoni come predefinito per tutto il sito */
* {
    font-family: "Libre Bodoni", serif !important;
}

body,
html,
p,
h1, h2, h3, h4, h5, h6,
a,
span,
div,
li,
td, th,
input,
textarea,
select,
button {
    font-family: "Libre Bodoni", serif !important;
}

h1 {
    /*font-weight: bold;*/
    font-size: 68px;
    color: var(--testo);
}

h2.on_subtitle_homepage {
    /*font-weight: bold;*/
    font-size: 48px !important;
    color: var(--principale) !important;
}

h2.fix-margin-t {
    margin-top: 50px;
}

#page-title-homepage {
    max-width: 100% !important;
}

.video-container {
    position: relative; 
    max-width: 100%;
}

.video {
    max-width: 50%; 
    height: auto; 
    object-fit: contain;
}

.column-page-category {
    max-width: 100% !important;
    min-height: 100vh;
    background: white;
    display: flex;
    margin: 0;
    padding: 0;
}

.no-underline {
    text-decoration: none;
}

.artista-container {
    display: flex;
}

/*.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {*/
/*    max-width: fit-content !important;*/
/*}*/

.artista-text-container {
    font-size: 18px; 
    line-height: 1.8; 
    padding: 0 30px; 
    color: black; 
    text-align: justify;
    /*text-align: left; */
    /* margin-bottom: 120px; */
    width: 100%;
}

.on_home_image {
    /* height: 60vh !important; */
    width: 40vw !important;
}

.category-link {
    width: 100%;
}

/* remove header (forced) */
.wp-site-blocks > header {
    display: none !important;
}

.fix-logo {
    width: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.fix-logo-subtitle {
    font-size: 18px;
    /*margin-top: -5px;*/
}

.color-white {
    color: var(--testo) !important;
}

.color-primary {
    color: var(--principale) !important;
}

/* classe per rendere il testo in maiuscolo */
.to-uppercase {
    text-transform: uppercase;
}

.selected {
    border-bottom: 1px solid #2c1810;
    padding-bottom: 8px; /* Spazio tra testo e linea */
}

.shadow-interno {
    /* box-shadow: inset -5px 0 5px -5px rgba(255, 255, 255, 0.6); */
    filter: drop-shadow(-10px 0 -10px rgba(255, 255, 255, 0.8));
}

.image-inner-shadow,
.image-inner-rb-shadow{
    position: relative;
}

.image-inner-shadow::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    pointer-events: none;
}

.image-inner-rb-shadow::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top left, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 1) 30%, 
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.4) 80%,
        rgba(0, 0, 0, 0.2) 90%,
        transparent 100%
    );
    pointer-events: none;
}

.colonna-sinistra-artista,
.colonna-sinistra-category {
    width: 35%;
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    align-items: center;
    /* justify-content: center; */
    background: white;
    /* position: fixed; */
    /* top: 0; */
    /* left: 0; */
}

.colonna-destra-artista {
    width: 65%;
    padding: 60px 80px;
    background: white;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.colonna-destra-category {
    width: 65%;
    padding: 60px 80px;
    background: white;
}

.colonna-destra-category h3 {
    color: var(--principale);
    font-weight: bold;
}

.grid {
    display: flex;
    flex-direction: column;
}

.entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

main {
    margin: 0 !important;
}

.lettera-grande {
    color: var(--principale);
    font-size: 35px;
    font-weight: bold;
}

.font-regular {
    font-weight: normal !important;
}

.center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.bg-white { background-color: var(--testo); }
.bg-black { background-color: var(--sfondo); }
.title-second-level-page {
    color: var(--testo) !important;
    font-size: 45px;
    font-weight: bold;
}

.sticky {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.sticky-bottom {
    position: sticky;
    bottom: 0px;
    align-self: flex-end;
}

.h-100 {
    height: 100vh;
}

/* PAGINE LEGNO E PIETRA */
.category-posts-container {
    margin: 2rem 0;
}

.posts-grid {
    /*display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    
}

.posts-list .post-card {
    /* margin-bottom: 2rem; */
    /* border-bottom: 1px solid #eee; */
    /* padding-bottom: 2rem; */
}

.post-card {
    background: var(--sfondo);
    width: 300px !important;
    /* height: 300px !important; */
    /* border-radius: 8px; */
    overflow: hidden;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
    transition: transform 0.3s ease;
}

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

.post-image {
    overflow: hidden; /* Importante per nascondere la parte zoomata */
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* transform: scale(1.6) translateY(40px); */
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    margin: 0;
    padding: 1rem 0;
    font-size: 1.65rem;
}

.post-title a {
    color: var(--sfondo);
    text-decoration: none;
}

/* Stile per singolo articolo */
.custom-article {
    /*max-width: 800px;*/
    margin: 0 auto;
    padding: 2rem;
}

.custom-featured-image {
    margin-bottom: 2rem;
}

.custom-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
}

.article-meta span {
    margin-right: 1rem;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Stile per archivio/lista articoli */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card-title a {
    color: #333;
    text-decoration: none;
}

.card-title a:hover {
    color: #0073aa;
}

.card-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-excerpt {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

.site > header {
    display: none !important;
}

/* Container principale */
.article-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.article-container-alternative {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.alternative {
    margin: 0 auto;
    max-width: 40%;
}

/* Immagini laterali */
.side-images {
    display: flex;
    flex-direction: column;
    /*gap: 1rem;*/
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.side-image img {
    width: 100%;
    height: auto;
    /*border-radius: 8px;*/
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.side-image img:hover {
    transform: scale(1.05);
}

.images-article {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    margin: 0 auto;
}

/* Contenuto centrale */
.article-content {
    position: inherit;
    top: 20px;
    align-self: flex-start;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    padding: 0 1rem;
}

.article-content > p {
    margin-top: 0px !important;
}

.article-content a {
    color: gray;
}
.article-content a:hover {
    color: var(--primary);
}

/* Header dell'articolo */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    grid-column: 1 / -1;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
}

/* Footer dell'articolo */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    grid-column: 1 / -1;
    gap: 0.4rem;
    font-size: 14px;
    color: #666;
}

.article-footer a {
    color: #666;
}

.article-footer a:hover {
    color: white;
}

.back-button {
    cursor: pointer;
    margin: 20px;
}

/* tarik correzione bordo immagini su card */
.fix-card{
    height: 80px;
    margin-top: -10px;
}

.custom-social-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 20px 0;
}

.custom-social-icons div a img {
    /*width: 32px;*/
    /*height: 32px;*/
    transition: transform 0.2s;
}

.custom-social-icons div img:hover {
    transform: scale(1.2);
}

.column {
    flex-direction: column;
}

/*.colonna-destra-category h3 {*/
/*    font-weight: bold;*/
/*}*/

.custom-social-icons p {
    margin: 5px 0;
}

.media-container {
    max-width: 60vw;
}

.media-container video {
    width: 100%;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr 3fr 1fr;
        gap: 1rem;
    }
    
    .side-images {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    
    .artista-container {
        flex-direction: column;
    }
    
    .video {
        max-width: 100%;
        width: 100%;
    }
    
    .gallery {
        margin-top: 0px !important;
        padding-top: 30px !important;
        flex-direction: column !important;
    }
    
    .gallery-container {
        display: block;
        overflow-x: hidden;
    }
    
    .colonna-sinistra-artista {
        flex-direction: row;
        align-items: normal;
        /*align-items: none;*/
    }
    
    .colonna-destra-artista {
        width: fit-content;
        padding: 30px 40px;
    }
    
    .colonna-sinistra-category {
        width: 100%;
        /*height: fit-content;*/
    }
    
    .colonna-destra-category {
        width: auto;
    }
    
    .column-page-category {
        flex-direction: column;
    }
    
    .image-inner-shadow::after {
        background: none;
    }
    
    .article-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .custom-article {
        padding: 1rem;
    }
    
    .article-header { 
        margin-bottom: 0px; 
    }
    
    .article-container {
        padding: 0px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .side-images {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .side-image {
        min-width: 200px;
        flex-shrink: 0;
    }
    
    .left-images {
        order: -1;
    }
    
    .right-images {
        order: 1;
    }
    
    .custom-menu {
        flex-direction: column;
        gap: 15px;
    }

    .custom-menu .menu-item-spacing {
        margin-left: 0;
    }
    
    .sticky {
        position: inherit;
        height: 50%;
    }

    .sticky-bottom {
        position: inherit;
        height: 50%;
        align-self: auto;
    }
    
    .article-footer {
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid #eee;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem; /* più piccolo su mobile */
        line-height: 1.4;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .alternative {
        max-width: 100%;
    }
    
    .media-container {
        max-width: 90vw;
    }
    
    #page-title-homepage {
        font-size: 3.1rem !important;
    }
}