/*
Theme Name: Ariano Renato
Theme URI: https://quadracode.com
Author: Quadracode
Author URI: https://quadracode.com
Description: Tema WordPress personalizzato con Bootstrap.
Version: 1.0
Text Domain: ariano
*/

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
}

hr{
    opacity:0.1;
}

.btn{
	border:1px solid #ccc;
	border-radius:0;
	text-transform: uppercase;
	font-size:12px;
	font-weight:700;
	padding:15px 30px;
}

.ariano{
	 filter: brightness(0) invert(1);
	 display: block;
	 margin: 0 auto;
}

/* NAVBAR: bianca da subito */
.navbar-ariano {
	background: #ffffff;
	padding-top: 2rem;
	padding-bottom: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Link navbar (WordPress + Bootstrap) */
.navbar-ariano .nav-link,
.navbar-ariano .menu-item a {
    color: #000000 !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    transition: color .3s ease, opacity .3s ease;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    position: relative; /* per la righetta animata */
}

/* Riga underline animata in hover */
.navbar-ariano .nav-link::after,
.navbar-ariano .menu-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0; /* puoi alzare o abbassare la riga */
    width: 0%;
    height: 2px;
    background-color: #e4573d;
    transition: width .3s ease;
}

/* Hover: testo arancione + underline da sinistra a destra */
.navbar-ariano .nav-link:hover,
.navbar-ariano .menu-item a:hover {
    color: #e4573d !important;
    opacity: 1;
}

.navbar-ariano .nav-link:hover::after,
.navbar-ariano .menu-item a:hover::after {
    width: 100%;
}

/* Toggler (hamburger) nero */
.navbar-ariano .navbar-toggler {
    border-color: rgba(0,0,0,0.7);
}

.navbar-ariano .navbar-toggler-icon {
    filter: invert(0); /* nera */
}

/* HERO fullscreen con sfondo immagine + sfumatura scura ↓ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-start; /* contenuto più in alto */
    color: #ffffff;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.4) 40%,
            rgba(0,0,0,0.0) 100%
        ),
        url("images/renato-ariano.jpg");

    background-size: cover;
    background-position: center 20%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
}

@media (max-width: 767.98px) {
    .hero-content {
        padding-top: 1.25rem;
    }
}

.hero-content h1 {
    margin: 0;
    color: #ffffff;
    font-size: 100px;
    line-height: 0;
    letter-spacing: 2px;
    font-family: "Libre Baskerville", serif !important;
}

.hero-divider {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.hero-section .lead {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    font-family: "Libre Baskerville", serif !important;
    font-weight: 400;
    font-size: 15px;
    line-height: 26px;
}

/* Sezione "Le mie opere" che esce dal hero */
#opere {
    background-color: #ffffff;
    padding-top: 0;
    padding-bottom: 24px;
}

#opere .opere-container {
    position: relative;
    z-index: 3;
    margin-top: -215px; /* libri attaccati al bordo inferiore del hero */
}

/* Su schermi più piccoli sovrapponi meno, per evitare casino */
@media (max-width: 991.98px) {
    #opere .opere-container {
        margin-top: -110px;
    }
}

@media (max-width: 767.98px) {
    #opere .opere-container {
        margin-top: -150px;
    }
}

/* Animazione ingresso copertine (fade + slide up) */
@keyframes bookFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#opere .book-item {
    opacity: 0;
    transform: translateY(30px);
    animation: bookFadeUp 0.8s ease forwards;
}

/* Ritardo diverso per ogni libro */
#opere .books-list li:nth-child(1) .book-item { animation-delay: 0.10s; }
#opere .books-list li:nth-child(2) .book-item { animation-delay: 0.25s; }
#opere .books-list li:nth-child(3) .book-item { animation-delay: 0.40s; }

#opere .book-item {
    opacity: 0;
    transform: translateY(30px);
    animation: bookFadeUp 0.8s ease forwards;
}

/* Piccolo ritardo diverso per ogni libro */
#opere .books-list li:nth-child(1) .book-item { animation-delay: 0.10s; }
#opere .books-list li:nth-child(2) .book-item { animation-delay: 0.25s; }
#opere .books-list li:nth-child(3) .book-item { animation-delay: 0.40s; }


/* Sezione opere editoriali */
#opere .section-subtitle {
    font-family: "Libre Baskerville", serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: #e4573d;
}

#opere .section-title {
    font-family: "Libre Baskerville", serif;
    font-size: 3rem;
    letter-spacing: 0.08em;
    margin-bottom: 100px;
}

#opere .title-white{
    color:#fff;
}

.home-books-heading {
    margin-top: 1.5rem;
}

.home-books-heading .section-subtitle {
    font-family: "Libre Baskerville", serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: #e4573d;
}

.home-books-heading .section-title {
    font-family: "Libre Baskerville", serif;
    font-size: 3rem;
    letter-spacing: 0.08em;
}

.home-books-heading .title-white {
    color: #fff;
}

/* Copertine libri */
#opere .book-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

#opere .book-item {
    margin: 0;
}

#opere .book-cover {
    display: block;
    width: auto;
    height: 460px;
    max-width: 320px;
    max-height: none;
    margin-left: auto;
    margin-right: auto;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Effetto hover sulle copertine */
#opere .book-cover:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

#opere .book-title {
    font-family: "Libre Baskerville", serif;
    font-size: 0.95rem;
    color: #333333;
}

.home-books-cta {
    margin-bottom: 0.5rem;
}

.home-author-intro {
    padding: 30px 0 18px;
    background: linear-gradient(180deg, rgba(250,246,240,0.88) 0%, #ffffff 100%);
}

.home-author-intro .section-title {
    color: #1f1f1f;
}

.home-author-intro-text {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.home-author-intro-text p {
    margin-bottom: 1.35rem;
    font-size: 1.38rem;
    line-height: 1.9;
    color: #3b342f;
    font-family: Libre Baskerville, serif;
}

.home-author-intro-text p:last-child {
    margin-bottom: 0;
}

/* Sezione articoli */
.section-articoli {
    padding-top: 0;
    padding-bottom: 140px;
}

.section-articoli .section-subtitle {
    font-family: "Libre Baskerville", serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: #e4573d;
}

.section-articoli .section-title {
    font-family: "Libre Baskerville", serif;
    font-size: 2.4rem;
    letter-spacing: 0.04em;
}

/* Card articoli */
.post-card {
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.post-card:last-child {
    border-right: none;
}

.post-date {
    font-family: "Libre Baskerville", serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: #e4573d;
}

.post-title a {
    text-decoration: none;
    color: #222;
    font-family: "Libre Baskerville", serif;
}

.post-title a:hover {
    color: #e4573d;
}

.post-excerpt {
    color: #555;
}

/* Mobile: niente bordo verticale */
@media (max-width: 767.98px) {
    .post-card {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .post-card:last-child {
        border-bottom: none;
    }

    #opere .title-white{
       color:#fff;
    }

    .home-books-heading {
        margin-top: 1rem;
    }

    .home-books-heading .section-title {
        font-size: 1.9rem;
        margin-bottom: 1.5rem !important;
    }

    .home-books-heading .section-subtitle {
        padding: 0 12px;
    }

    .home-author-intro-text p {
        font-size: 1.12rem;
        line-height: 1.75;
    }

    .opere-container{
      padding-top:10px;
    }

    #opere .books-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 0;
    }

    #opere .books-list > li {
        display: block;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #opere .book-link,
    #opere .book-item {
        text-align: center;
    }
}


/* FOOTER */
.footer-ariano {
    background: #333333;
    color: #ffffff;
    padding-top: 100px;
    padding-bottom: 80px;
}

.footer-ariano .ariano-footer {
    max-width: 460px;
    filter: brightness(0) invert(1); /* rende il logo bianco */
}

.footer-ariano .footer-contact {
    font-size: 0.95rem;
    color: #ffffff;
    opacity: 0.9;
    font-family: "Libre Baskerville", serif;
}

.footer-ariano a {
    color: #ffffff;
    text-decoration: none;
}

.footer-ariano a:hover {
    color: #e4573d;
}

/* --- HERO: libro in absolute fuori dal container (solo desktop) --- */
.hero-section {
    position: relative;
}

.hero-book-absolute {
    position: absolute;
    right: 05px;
    top: 50%;
    transition: width .35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    width: 151px;

}

/* Allargamento reale del contenitore */
.hero-book-absolute:hover {
    width: 300px; /* puoi mettere 260/280/320 a piacere */
}

.hero-book {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.25);
    transition: transform .3s ease;
}

.hero-book-cover {
    width: 100%;
    display: block;
    transition: transform .3s ease;
}

/* Overlay */
.hero-book-overlay {
    position: absolute;
    inset: 0;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.65) 40%,
        rgba(0, 0, 0, 0.0) 100%
    );

    color: #ffffff;
    opacity: 0;
    transform: translateY(10%);
    transition: opacity .3s ease, transform .3s ease;
}

/* Il libro cresce solo verso sinistra */
.hero-book {
    transform-origin: center right;
}



/* L’overlay appare normalmente */
.hero-book:hover .hero-book-overlay {
    opacity: 1;
    transform: translateY(0);
}
/* --- MOBILE: sezione separata --- */
.hero-book-section {
    background: #ffffff;
}

.hero-book-mobile {
    max-width: 260px;
    margin: 0 auto;
}

/* la card del libro mobile mantiene lo stesso stile */
.hero-book-mobile .hero-book {
    width: 100%;
}


/* CARD EVENTO IN STILE BOOK FESTIVAL */
.event-card {
    position: relative;
    border: none;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 40px;
}

.event-card-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.event-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.event-card:hover .event-card-image {
    transform: scale(1.08);
}

/* Overlay */
.event-card-overlay {
    position: absolute;
    inset: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;

    background: linear-gradient(
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.55) 100%
    );

    color: #fff;
}

.event-card-title a {
    color: #fff;
    font-family: "Libre Baskerville", serif;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
}

.event-card-excerpt {
    margin-top: 15px;
    font-size: 1rem;
    opacity: 0.85;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.event-card-link a {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #a8e0d4;  /* verde acqua simile all’immagine */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event-card-link a:hover {
    color: #fff;
}

/* Barra colorata inferiore */
.event-card-bottom-bar {
    width: 100%;
    height: 10px;
    background-color: #e4573d; /* verde acqua */
}

/* ============================
   PAGINA ARTICOLO (SINGLE POST)
   ============================ */

/* Hero immagine full-width */
.post-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.65) 60%,
        rgba(0,0,0,0.85) 100%
    );
}

.post-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 120px;
}

/* Data */
.post-hero-date {
    font-family: "Libre Baskerville", serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Titolo con iniziale evidenziata */
.post-hero-title {
    font-family: "Libre Baskerville", serif;
    font-size: 2.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.post-hero-title-initial {
    display: inline-block;
    margin-right: 0.3rem;
    padding: 0.25rem 0.6rem;
    border: 2px solid #e4573d; /* colore box iniziale */
    font-size: 3.2rem;
    line-height: 1;
}

.post-hero-title-rest {
    display: inline-block;
}

/* Categoria */
.post-hero-category {
    font-family: "Libre Baskerville", serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    padding-top: 1rem;
}

.post-hero-category::before {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    background-color: #e4573d;
    margin: 0 auto 0.75rem auto;
}

/* Corpo articolo */
.post-body-section {
    background-color: #ffffff;
    padding-top: 70px;
    padding-bottom: 90px;
}

.single-article {
    font-family: "Libre Baskerville", serif;
    font-size: 1rem;
    line-height: 1.9;
    color: #333333;
}

/* Drop cap sul primo paragrafo */
.post-body-content p:first-of-type::first-letter {
    float: left;
    font-size: 3.4rem;
    line-height: 1;
    padding-right: 0.2em;
    padding-top: 0.08em;
    font-weight: 700;
    color: #e4573d;
    font-family: "Libre Baskerville", serif;
}

/* Stile blockquote elegante */
.post-body-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid #e4573d;
    background-color: #f8f8f8;
    font-style: italic;
}

/* Link nel testo */
.post-body-content a {
    color: #e4573d;
    text-decoration: underline;
}

.post-body-content a:hover {
    color: #b53f2b;
}

/* Responsivo */
@media (max-width: 767.98px) {

    .post-hero-content {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .post-hero-title {
        font-size: 2.1rem;
        padding: 0 10px;
    }

    .post-hero-title-initial {
        font-size: 2.4rem;
    }

    .post-body-section {
        padding-top: 50px;
        padding-bottom: 70px;
    }
}


/* ============================
   ARCHIVIO ARTICOLI
   ============================ */

.archive-main {
    background-color: #f7f7f7;
    padding-top: 80px;
    padding-bottom: 100px;
}

/* Header archivio */
.archive-header {
    margin-bottom: 60px;
}

.archive-title {
    font-family: "Libre Baskerville", serif;
    font-size: 2.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Iniziale in box stile Odrin */
.archive-title-initial {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.15rem 0.65rem 0.25rem;
    border: 2px solid #e4573d; /* verde acqua o usa il tuo colore */
    font-size: 3rem;
    line-height: 1;
}

.archive-title-rest {
    display: inline-block;
}

/* Search a destra */
.archive-search-wrapper form {
    position: relative;
}

.archive-search-wrapper input[type="search"] {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    font-size: 0.95rem;
    min-width: 220px;
}

.archive-search-wrapper input[type="submit"],
.archive-search-wrapper button {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.95rem;
    color: #e4573d;
}

/* CARD ARTICOLO IN ARCHIVIO */
.archive-post {
    border-bottom: 1px solid #e6e6e6;
}

.archive-post:last-of-type {
    border-bottom: none;
}

.archive-post-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

/* Data */
.archive-post-date {
    font-family: "Libre Baskerville", serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: #333;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
}

.archive-post-date::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    background-color: #e4573d;
    margin-top: 0.35rem;
}

/* Titolo */
.archive-post-title a {
    font-family: "Libre Baskerville", serif;
    text-decoration: none;
    color: #222;
    position: relative;
}

/* Decorazione sottile tipo pattern */
.archive-post-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.archive-post-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px;
    height: 4px;
    background-image: repeating-linear-gradient(
        to right,
        #dcdcdc,
        #dcdcdc 6px,
        transparent 6px,
        transparent 10px
    );
}

/* Excerpt */
.archive-post-excerpt p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Paginazione */
.archive-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
    background-color: #e4573d;
    color: #ffffff;
    border-color: #e4573d;
}

/* Mobile */
@media (max-width: 767.98px) {

    .archive-main {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .archive-header {
        align-items: flex-start;
    }

    .archive-title {
        font-size: 2rem;
    }

    .archive-title-initial {
        font-size: 2.6rem;
    }

    .archive-search-wrapper {
        width: 100%;
        margin-top: 20px;
    }

    .archive-search-wrapper input[type="search"] {
        width: 100%;
        min-width: 0;
    }
}

/* ============================
   SEARCH FORM ELEGANTE
   ============================ */

.ariano-search-form {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 260px;
}

.ariano-search-input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    padding: 10px 40px 10px 14px;
    font-family: "Libre Baskerville", serif;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: #333;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.ariano-search-input:focus {
    outline: none;
    border-color: #e4573d;
    box-shadow: 0 0 0 3px rgba(29,169,161,0.15);
}

/* Pulsante con lente */
.ariano-search-submit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.ariano-search-icon {
    font-size: 18px;
    line-height: 1;
    color: #e4573d;
    transition: color .3s ease;
}

.ariano-search-submit:hover .ariano-search-icon {
    color: #0b7d75;
}

/* Mobile */
@media (max-width: 767.98px) {

    .ariano-search-form {
        max-width: 100%;
        width: 100%;
        margin-top: 15px;
    }

    .ariano-search-input {
        width: 100%;
        font-size: 1rem;
    }
}

/* ============================
   PAGINA RICERCA
   ============================ */

/* Riga con la query (es. "PROVA") */
.search-query-line {
    font-family: "Libre Baskerville", serif;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.6rem;
}

/* Testo no-results + bottone */
.search-no-results-text {
    font-family: "Libre Baskerville", serif;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
}

.search-no-results-text::after {
    content: "";
    display: block;
    width: 130px;
    height: 2px;
    background-color: #e4573d;
    margin: 0.6rem auto 0 auto;
}


/* ============================
   PAGINE STATICHE (page.php)
   ============================ */

/* Fascia sopra con titolo + breadcrumb */
.page-hero {
    background-color: #f5f1e8;
    padding: 104px 0 32px;
    margin-top: 0;
}

.page-hero-title {
    font-family: "Libre Baskerville", serif;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

/* Breadcrumb */
.page-breadcrumb {
    font-size: 0.9rem;
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #777;
}

.page-breadcrumb a {
    color: #777;
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: #e4573d;
}

.page-breadcrumb .sep {
    margin: 0 0.35rem;
}

/* Sezione centrale */
.page-main-section {
    padding: 80px 0 100px;
    background-color: #ffffff;
}

/* Monogramma / logo */
.page-monogram-wrapper {
    margin-bottom: 25px;
}

.page-monogram-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 50%;
    border: 1px solid #e2d5c4;
    background-color: #faf6f0;
}

.page-monogram-letter {
    font-family: "Libre Baskerville", serif;
    font-size: 4rem;
    color: #e4573d;
}

/* Titoli e sottotitoli della pagina */
.page-main-title {
    font-family: "Libre Baskerville", serif;
    font-size: 2.2rem;
    color: #333;
}

.page-main-subtitle {
    font-family: "Libre Baskerville", serif;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e4573d;
}

/* Corpo testo pagina */
.page-article {
    font-family: "Libre Baskerville", serif;
    color: #333;
}

.page-body-content p {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.3rem;
}

/* Citazioni in pagina (come blocco centrale evidenziato) */
.page-body-content blockquote {
    margin: 2.5rem 0;
    padding: 1.8rem 2rem;
    background-color: #faf6f0;
    border-left: 3px solid #e4573d;
    font-style: italic;
}

/* Mobile */
@media (max-width: 767.98px) {
    .page-hero {
        padding: 84px 0 20px;
    }

    .page-hero-title {
        font-size: 1.3rem;
        text-align: left;
    }

    .page-main-section {
        padding: 60px 0 80px;
    }

    .page-main-title {
        font-size: 1.8rem;
    }
}

/* ============================
   SCHEDA LIBRO (Template: Scheda Libro)
   ============================ */

.book-page-section {
    padding: 80px 0 100px;
    background-color: #ffffff;
}

/* Sidebar sinistra */
.book-sidebar {
    font-family: "Libre Baskerville", serif;
    border-right: 1px solid #eee;
}

.book-sidebar-title {
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #333;
}

/* Lista meta libro */
.book-meta-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.book-meta-list .label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: #999;
}

.book-meta-list .value {
    color: #333;
}

/* Box acquisto */
.book-buy-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-family: "Libre Baskerville", serif;
}

/* Colonna destra: contenuto libro */
.book-main {
    font-family: "Libre Baskerville", serif;
}

.book-cover-main img {
    display: block;
    width: 100%;
    height: auto;
}

.book-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0;
}

/* Testo della scheda libro */
.book-body-content p {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.3rem;
}

/* Responsivo */
@media (max-width: 991.98px) {
    .book-sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .book-page-section {
        padding: 60px 0 80px;
    }
}

/* ============================
   NAVBAR MOBILE TRASPARENTE
   ============================ */
@media (max-width: 992px) {

    /* Navbar mobile stabile in alto con toggle allineato a destra */
    .navbar-ariano {
        top: 0;
        left: 0;
        right: 0;
        background: transparent !important;
        box-shadow: none !important;
        padding-top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
        padding-bottom: 0.9rem;
        min-height: 72px;
    }

    .navbar-ariano .container {
        display: flex;
        justify-content: flex-end !important;
        align-items: flex-start;
        position: relative;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-ariano .navbar-collapse {
        width: 100%;
        margin-top: 0.75rem;
        text-align: right;
    }

    .home .navbar-ariano .navbar-collapse.show,
    .home .navbar-ariano .navbar-collapse.collapsing {
        background: rgba(27, 27, 27, 0.82);
        padding: 0.9rem 1rem;
        border-radius: 10px;
    }

    body:not(.home) .navbar-ariano .navbar-collapse.show,
    body:not(.home) .navbar-ariano .navbar-collapse.collapsing {
        background: #f5f1e8;
        padding: 0.9rem 1rem;
        border-radius: 10px;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    }

    /* Hamburger bianco */
    .navbar-ariano .navbar-toggler {
        border: 0;
        margin-left: auto;
        margin-right: 0.25rem;
        padding: 0.35rem;
        position: relative;
        top: 0;
        z-index: 1031;
        color: #ffffff;
    }

    .navbar-ariano .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }

    body:not(.home) .navbar-ariano .navbar-toggler {
        color: #333333;
    }

    body:not(.home) .navbar-ariano .navbar-toggler-icon {
        filter: brightness(0) saturate(100%) invert(18%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(96%) contrast(88%);
    }

    .navbar-ariano .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-ariano.navbar-scrolled {
        top: 0;
        padding-top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
        padding-bottom: 0.9rem;
        min-height: 72px;
    }

    /* Link del menu mobile */
    .home .navbar-ariano .nav-link,
    .home .navbar-ariano .menu-item a {
        color: #ffffff !important;
    }

    body:not(.home) .navbar-ariano .nav-link,
    body:not(.home) .navbar-ariano .menu-item a {
        color: #333333 !important;
    }

    /* Hover arancione anche su mobile */
    .navbar-ariano .nav-link:hover,
    .navbar-ariano .menu-item a:hover {
        color: #e4573d !important;
    }

    /* Underline arancione sotto i link anche nel collapse */
    .navbar-ariano .nav-link::after,
    .navbar-ariano .menu-item a::after {
        background-color: #e4573d !important;
    }
}


/* ============================
   ARCHIVIO LIBRI – CARD ORIZZONTALE
   ============================ */

.books-archive-main {
    background-color: #f7f7f7;
    padding-top: 80px;
    padding-bottom: 100px;
}

.books-archive-title {
    font-family: "Libre Baskerville", serif;
    font-size: 2.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: #233238;
}

.books-archive-subtitle {
    font-size: 1rem;
    color: #666;
    max-width: 520px;
}

.books-archive-viewall {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: #233238;
    border-bottom: 1px solid transparent;
}

.books-archive-viewall:hover {
    color: #e4573d;
    border-color: #e4573d;
}

/* Griglia */
.books-archive-row {
    margin-top: 15px;
}

/* Card libro: copertina a sinistra, testo a destra */
.book-card {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 16px 18px;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    gap: 18px;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

/* Copertina */
.book-card-image-link {
    flex: 0 0 110px;
    display: block;
}

.book-card-image {
    width: 100%;
    border-radius: 3px;
    display: block;
}

/* Testo a destra */
.book-card-body {
    flex: 1;
    text-align: left;
}

.book-card-title {
    font-family: "Libre Baskerville", serif;
    font-size: 1.05rem;
    margin-bottom: 0.1rem;
}

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

.book-card-title a:hover {
    color: #e4573d;
}


.book-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* Bottone */
.btn-book-card {
    border-radius: 0;
    border: 1px solid #233238;
    background-color: transparent;
    color: #233238;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 8px 18px;
}

.btn-book-card:hover {
    background-color: #233238;
    color: #ffffff;
}

/* Mobile: copertina sopra, testo sotto */
@media (max-width: 575.98px) {
    .book-card {
        flex-direction: column;
        padding: 16px 14px;
    }

    .book-card-image-link {
        flex: 0 0 auto;
        max-width: 180px;
    }
}


.book-video-embed iframe {
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ============================
   HOME – SEZIONE ARTICOLI
   stile tipo "Fresh Stories"
   ============================ */

.home-articles-header .section-subtitle {
    font-family: "Libre Baskerville", serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: #e4573d;
}

.home-articles-header .section-title {
    font-family: "Libre Baskerville", serif;
    font-size: 2.6rem;
    letter-spacing: 0.06em;
}

/* Bottone "Vedi tutti gli articoli" in stile pieno scuro */
.btn-articoli-more {
    border-radius: 0;
    border: 1px solid #333;
    background-color: #333;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    padding: 14px 32px;
    letter-spacing: 0.1em;
}

.btn-articoli-more:hover {
    background-color: #ffffff;
    color: #333;
}

/* Griglia articoli */
.home-articles-grid {
    margin-top: 10px;
}

.home-article-card {
    text-align: left;
}

/* Immagine con hover leggero */
.home-article-image-wrapper {
    position: relative;
    overflow: hidden;
}

.home-article-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .35s ease;
}

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

/* Badge categoria in overlay */
.home-article-category {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 6px 12px;
    background-color: #ffffff;
    color: #333;
    font-family: "Libre Baskerville", serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

/* Meta (data) */
.home-article-meta {
    font-family: "Libre Baskerville", serif;
    font-size: 0.85rem;
    color: #777;
}

/* Titolo */
.home-article-title {
    font-family: "Libre Baskerville", serif;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
}

.home-article-title a {
    color: #222;
    text-decoration: none;
}

.home-article-title a:hover {
    color: #e4573d;
}

/* Excerpt */
.home-article-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* Mobile */
@media (max-width: 767.98px) {
    .home-articles-header {
        text-align: left;
    }

    .home-articles-header .section-title {
        font-size: 2.1rem;
    }

    .home-articles-header .section-subtitle {
        margin-bottom: 0.3rem;
    }

    .home-articles-header .col-md-4 {
        text-align: left;
    }

    .home-articles-header .btn-articoli-more {
        margin-top: 10px;
    }

    .home-article-image {
        height: 220px;
    }
}


.archive-posts-grid {
    align-items: stretch;
}

.archive-post-card {
    border-bottom: none;
    height: 100%;
}
