@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ===========================
   Bio PAGE
=========================== */
.bio-section {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
padding: 80px 20px;
}

.bio-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #dee9d3;
    border-radius: 32px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .08);

}

.bio-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 30px;
    border: 6px solid #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);

}

.bio-title {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 58px;
    line-height: 1;
    color: #2F2F2F;

}

.bio-subtitle {
    margin: 18px 0 28px;
    color: #667A52;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .18em;

}

.bio-text {
    margin: 0 0 35px;
    color: #666;
    line-height: 1.8;
    font-size: 17px;

}

.bio-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;

}

.bio-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 58px;
    background: #667A52;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: .3s ease;

}

.bio-btn:hover {
    background: #4E6A50;
    transform: translateY(-3px);

}

.animate-rise {
    animation: .6s cubic-bezier(.22, 1, .36, 1) both rise;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ===========================
   NOW PAGE
=========================== */

.now-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero */

.now-hero {
    margin-bottom: 30px;
    text-align: center;
}

.now-image {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.now-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 3.75rem;
    font-weight: 600;
    line-height: 1.1;
    color: #2F2F2F;
    margin: 0 0 8px 0;
}



.now-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid #dee9d3;
    box-shadow: 0 24px 60px -20px rgba(47, 47, 47, .18);
    transition: .3s ease;
    display: block;
}

.now-image img:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px -20px rgba(47, 47, 47, .22);
}

/* Cards */

.now-grid {
    display: grid;
    gap: 18px;
}

.now-card {
    background: #fff;
    border: 1px solid #dee9d3;
    border-radius: 18px;
    padding: 26px 30px;
    transition: .3s ease;
}

.now-card:hover {
    border-color: #667A52;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    transform: translateY(-3px);
}

.now-card p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #666666;
}

/* Footer */

.now-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #dee9d3;
    text-align: center;
}

.now-footer strong {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #667A52;
    font-weight: 600;
}

.site-grid {
    display: flex;
}

.text-primary {
    color: #667A52 !important;
}

main {
    margin-top: 0px !important;
    /* background-color: #FAF8F5; */
    background-color: #eff1ed;
}

p {
    color: #666666;
}

section {
    /* background-color: #FAF8F5; */
    padding: 50px 12px;
}
section.blog-detail-sec{
   padding: 50px 20px;
}

.hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 60px -20px rgba(47, 47, 47, 0.18);
}

span.title-border {
    position: relative;
    z-index: 1;
}

span.title-border:before {
    content: "";
    height: 15px;
    position: absolute;
    width: 100%;
    background: #4e6a5069;
    bottom: 6px;
    z-index: -1;
}

.hero-greeting {
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #667A52;
    margin: 0 0 16px 0;
}

.hero-title,
.blog-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.15;
    color: #2F2F2F;
    margin: 0 0 24px 0;
}

.hero-intro {
    font-family: "Inter", sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: #2F2F2F;
    margin: 0 0 40px 0;
}

.hero-block {
    margin-bottom: 32px;
}

.hero-block:last-of-type {
    margin-bottom: 0;
}

.hero-block-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2F2F2F;
    margin: 0 0 12px 0;
}

.hero-block-text {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #666666;
    margin: 0;
}

section.hero-section,section.now-section,section.book-hero-sec {
    padding: 60px 0px;
}

.hero-closing {
    display: inline-block;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #4E6A50;
    margin-top: 40px;
    padding: 50px 16px;
    /* background: #667a5226; */
    border-radius: 0;
    border-left: 4px solid #667A52;
}

.hero-section .hero-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.hero-section .hero-content ul li+li {
    margin-top: 27px;
}

.hero-section .hero-content ul li {
    position: relative;
    padding-left: 25px;
}

.hero-section .hero-content ul li:before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #4e6a5069;
    left: 0;
    top: 8px;
    border: 4px solid #4e6a507d;
}


.badge-primary {
    color: #667A52;
    background: #667a5224;
}

.badge {
    border-radius: 99px;
    border: 1px solid #667a5247;
}

.library-item {
    /* padding: 20px; */
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dee9d3;
    overflow: hidden;
    transition: 0.3s linear;
}

.library-item .item-content {
    padding: 20px;
}

.library-item img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.library-item .item-content a {
    color: #667A52;
}

.library-item .item-content h4 {
    font-weight: 500;
    font-size: 22px;
}

.book-hero-sec .content-block {
    max-width: 1100px;
    margin: 0 auto 80px auto;
    text-align: center;
}

.library-item:hover {
    border-color: #667A52;
    box-shadow: 2px 3px 20px 0px #00000024;
    transform: scale(1.01);
}

.library-item .item-content .desc,
.library-item .item-content h4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.library-item .item-content h4 {
    -webkit-line-clamp: 2;
}

.blog-detail-sec .blog-container {
    max-width: 1100px;
  margin:auto;
}

.blog-detail-sec .blog-img img {
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.blog-detail-sec .content-block ul li::marker {
    color: #667A52;
}

.blog-detail-sec .content-block ul li+li {
    margin-top: 8px;
}

.blog-detail-sec .content-block h3 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 0;
}

.blog-detail-sec .content-block {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.blog-detail-sec .content-block p {
    margin-bottom: 0;
    margin-top: 12px;
}

.blog-detail-sec .content-block h2 {
    font-size: 28px;
    /* font-weight: 500; */
    font-family: "Cormorant Garamond", serif;
}

.blog-detail-sec .content-block .card {
    border-radius: 20px;
}

.blog-detail-sec .content-block .info-block a.card {
    text-decoration: none;
}

.blog-detail-sec .content-block .info-block a.card p {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.blog-detail-sec .content-block .info-block a.card:hover span {
    text-decoration: underline;
}

.blog-detail-sec .content-block .space-top {
    margin-top: 50px;
}

.card {
    transition: 0.3s linear;
}

.blog-detail-sec .content-block .info-block a.card:hover {
    border-color: #667A52;
}

@media (min-width: 600px) {
    .hero-title {
        font-size: 3.25rem;
    }
}

@media (min-width: 768px) {
    section {
        padding: 10px 0px;
    }
}

@media (min-width: 900px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

/* Responsive */

@media (max-width:900px) {
    .now-image {
        justify-content: center;
        order: -1;
    }
    .now-title {
        font-size: 3rem;
    }
}

@media (max-width:767px) {
.bio-section {
padding: 40px 20px;
}
.blog-detail-sec .content-block h3{
  margin-top:10px;
}
    .bio-card {
        padding: 35px 25px;
        border-radius: 24px;
    }
    .bio-image {
        width: 120px;
        height: 120px;
    }
    .bio-title {
        font-size: 44px;
    }
    .bio-text {
        font-size: 16px;
    }
    .now-section {
        padding: 50px 20px;
    }
    .now-title {
        font-size: 2.5rem;
    }
    .now-image img {
        max-width: 240px;
    }
    .now-card {
        padding: 20px;
    }
    .now-card p {
        font-size: 16px;
    }
}

/* ===========================
   HEADER
=========================== */
.container-header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-block: .9rem;
    padding-inline: max(1.25rem, calc((100% - 1100px) / 2));
    background-color: #faf8f5e6 !important;
    background-image: none !important;
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #dee9d3;
    box-shadow: none !important;
}

.container-header.position-sticky {
    top: 0;
    z-index: 1030;
}

.container-header .grid-child {
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    flex: 0 1 auto !important;
    align-items: center;
}

.container-header .grid-child:not(.container-nav) {
    display: flex !important;
}

.container-header .navbar-brand {
    color: #2f2f2f !important;
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
}

.container-header .navbar-brand a,
.container-header .navbar-brand span {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    color: #2f2f2f !important;
    letter-spacing: -.01em;
    white-space: nowrap;
    text-decoration: none !important;
}

.container-header .navbar-brand img.logo {
    max-height: 2.25rem;
    width: auto;
}

.container-header .navbar-brand:hover,
.container-header .navbar-brand:focus,
.container-header .navbar-brand:hover a,
.container-header .navbar-brand:hover span {
    color: #667a50 !important;
}

.container-header .site-description {
    color: #666 !important;
}

.container-header-right {
    align-items: center;
    gap: .5rem 1rem;
}

.container-header .container-nav {
    order: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0 !important;
    margin: 0;
    width: auto;
}

.container-lang-switcher {
    order: 2;
    flex-shrink: 0;
}

.container-lang-switcher .mod-languages ul {
    display: flex;
}

.container-lang-switcher .mod-languages li {
    margin: 0;
}

.container-lang-switcher .mod-languages a {
    display: flex;
    align-items: center;
    padding: .25rem;
    border-radius: 999px;
    transition: background-color .2s ease;
}

.container-lang-switcher .mod-languages a:hover {
    background: #f1f4ee;
}

.container-lang-switcher .mod-languages img {
    width: 22px;
    height: auto;
    border-radius: 3px;
}

.container-header .mod-menu {
    display: flex !important;
    flex-direction: row !important;
    flex: 0 1 auto !important;
    flex-wrap: wrap !important;
    color: #2f2f2f !important;
    gap: .25rem;
    row-gap: .35rem;
}

/* Hamburger toggle (injected by custom.js, mobile only) */
.container-header .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.container-header .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2f2f2f;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.container-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.container-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.container-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.container-header .mod-menu > li {
    position: static;
}

.container-header .mod-menu > li + li {
    margin-left: 0 !important;
}

.container-header .mod-menu > li:after {
    display: none !important;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
    display: inline-block;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-family: "Inter", sans-serif;
    font-size: .9rem;
    color: #6b6b6b !important;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease;
}

.container-header .mod-menu > li > a:hover {
    background: #f1f4ee;
    color: #2f2f2f !important;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.active > span,
.container-header .mod-menu > li.current > a {
    background: #667a5224;
    color: #4e6a50 !important;
    font-weight: 600;
}

@media (max-width: 640px) {
    .container-header {
        padding-inline: 1.1rem;
    }

    .container-header .navbar-brand {
        font-size: 1.2rem;
    }

    .container-header .nav-toggle {
        display: flex;
        order: 2;
    }

    .container-header-right {
        gap: .35rem;
    }

    .container-lang-switcher {
        order: 1;
    }

    .container-header .container-nav {
        order: 3;
    }

    .container-lang-switcher .mod-languages img {
        width: 26px;
    }

    .container-lang-switcher .mod-languages li.lang-active {
        display: none;
    }

    .container-header .container-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        background: #faf8f5;
        border-bottom: 1px solid #dee9d3;
        box-shadow: 0 12px 24px -12px #00000024;
        padding: .5rem 1.1rem 1rem !important;
    }

    .container-header.nav-open .container-nav {
        display: block;
    }

    .container-header .mod-menu {
        flex-direction: column !important;
        width: 100%;
        gap: 0;
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > span {
        display: block;
        width: 100%;
        border-radius: 10px;
        padding: .65rem .75rem;
    }
}

/* ===========================
   FOOTER
=========================== */
.container-footer {
    border-top: 1px solid #dee9d3;
    background: #faf8f5;
}

.container-footer .grid-child {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.container-footer p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: .9rem;
    color: #7a7a7a;
}

@media (max-width: 560px) {
    .container-footer .grid-child {
        padding: 1.5rem 1.1rem;
        text-align: center;
    }
}

/* ===========================
   MAIN CONTENT WIDTH
   Cassiopeia's default .grid-child caps at 1320px, which also boxes in
   main's background-color instead of letting it reach the edges. The
   wrapper and <main> itself stay full width so the background reaches
   the edges; the actual content gets a real max-width + centered margin,
   same as the footer's .grid-child does for its own content.
=========================== */
.grid-child.container-component {
    max-width: none;
}

main {
    padding-inline: 1.25rem;
}

main > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   BOOKS -- list page (Books / Libri category)
   Single-column list of book cards, matching the reference site's
   layout: no cover image in the list, title + language pill on top,
   author line, teaser, "Read my notes ->" link.
=========================== */
.book-list {
    list-style: none;
    margin: 40px auto 0;
    padding: 0;
    /* max-width: 760px; */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.book-list-item {
    display: block;
    border-radius: 16px;
    border: 1px solid #dee9d3;
    background: #fff;
    padding: 24px;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.book-list-item:hover {
    transform: translateY(-2px);
    border-color: #667A52;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.book-list-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.book-list-item .book-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    margin: 0;
    color: #2F2F2F;
}

.book-list-item .badge-pill {
    border-radius: 999px;
    background: #667a5224;
    color: #667A52;
    font-size: 12px;
    padding: 4px 12px;
    white-space: nowrap;
}

.book-list-item .book-author {
    margin: 6px 0 0;
    font-size: 14px;
    color: #666;
}

.book-list-item .book-teaser {
    margin: 12px 0 0;
    line-height: 1.7;
    color: #666;
}

.book-list-item .book-readmore {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #667A52;
}
.footer {
    margin-top: 0px !important;
}
/* ===========================
   BOOKS -- detail page
   Matches the reference site's article layout: back link, serif title,
   author/language line, content section (summary/topics/learned, cover
   image at the end of that section rather than a hero banner), a
   bordered "advice" card, and a two-up "more information" link grid.
=========================== */
.book-detail {
    /* max-width: 760px; */
    margin: 0 auto;
    padding: 56px 20px 80px;
}

.book-detail .back-link {
    font-size: 14px;
    font-weight: 600;
    color: #667A52;
    text-decoration: none;
}

.book-detail .back-link:hover {
    text-decoration: underline;
}

.book-detail-title {
    margin-top: 24px;
    margin-bottom: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 40px;
    line-height: 1.15;
    color: #2F2F2F;
}

@media (min-width: 768px) {
    .book-detail-title {
        font-size: 52px;
    }
}

.book-detail-meta {
    margin-top: 8px;
    color: #666;
}

.book-detail-section {
    margin-top: 48px;
}

.book-detail-info-row {
    margin-top: 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.book-detail-advice,
.book-detail-more {
    flex: 1 1 280px;
    border-radius: 16px;
    border: 1px solid #dee9d3;
    background: #fff;
    padding: 24px;
}

@media (min-width: 768px) {
    .book-detail-advice,
    .book-detail-more {
        padding: 32px;
    }
}

.book-detail h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    margin: 0;
}

.book-detail h3 {
    margin-top: 24px;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 500;
}

.book-detail p {
    margin-top: 12px;
    margin-bottom: 0;
    line-height: 1.7;
    color: #666;
}

.book-detail .dotted-list {
    margin-top: 12px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-detail .dotted-list li {
    display: flex;
    gap: 12px;
    line-height: 1.7;
    color: #666;
}

.book-detail .dotted-list li::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 8px;
    border-radius: 50%;
    background: #667A52;
}

.book-detail-cover {
    margin-top: 32px;
    width: 100%;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

/* Book articles embed their own cover inline (.book-detail-cover above).
   Joomla's default article view also auto-renders the "Full Text Image"
   as a floated figure before the article body when one is set -- if a
   future book gets one added via the admin (Images and Links tab), this
   stops it from floating a duplicate cover to the left of the title. */
.com-content-article:has(.book-detail) .item-image {
    display: none;
}

.more-info-grid {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

@media (min-width: 600px) {
    .more-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.more-info-card {
    display: block;
    border-radius: 12px;
    border: 1px solid #dee9d3;
    background: #fff;
    padding: 16px 20px;
    text-decoration: none;
    transition: border-color .2s ease;
}

.more-info-card:hover {
    border-color: #667A52;
}

.more-info-card:hover .value {
    text-decoration: underline;
}

.more-info-card .label {
    display: block;
    font-size: 14px;
    color: #666;
}

.more-info-card .value {
    display: block;
    margin-top: 4px;
    font-weight: 500;
    color: #667A52;
}

/* The Advice / More information custom fields are rendered manually in
   the book-detail-info-row (see article/default.php) -- hide Joomla's own
   automatic fields output so it doesn't also appear near the top of the
   page. */
ul.fields-container {
    display: none;
}