/* =====================================================
   JORDAN TRAIL - CSS OTTIMIZZATO E PULITO
   ===================================================== */

/* ===== VARIABILI CSS ===== */
:root {
   /* --sand: #C9A57B;
    --dark: #2C2416;
    --light: #F5F1E8;
    --accent: #8B6F47;
    --white: #FFF;
    --gray: #6B6B6B;
    --border: #E8E3D8;*/

    --sand: #F59E0B;
    --dark: #2C2416;
    --light: #F5F1E8;
    --accent: #D97706;
    --white: #FFF;
    --gray: #6B6B6B;
    --border: #E2E8F0;

    
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4 {
    font-family: Georgia, serif;
    line-height: 1.2;
    font-weight: 400;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: .3s;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    color: var(--dark);
    letter-spacing: -1px;
}

.brand-sub {
    font-size: .7rem;
    color: var(--sand);
    font-style: italic;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark);
    font-size: .9rem;
    transition: color .2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--sand);
}

.nav-btn {
    background: var(--sand);
    color: var(--white) !important;
    padding: .5rem 1.5rem;
    border-radius: 10px; /*25*/
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--dark);
    transition: .3s;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 10px;/*25*/
    text-decoration: none;
    font-weight: 600;
    transition: all .3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--sand);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent);
}

.btn-secondary {
    border: 2px solid var(--dark);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #FDFBF7 0%, #F8F5F0 100%);
}

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-pre {
    display: block;
    font-size: 2.5rem;
    color: var(--sand);
    margin-bottom: .5rem;
}

.title-main {
    display: block;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: .9;
    letter-spacing: -2px;
}

.hero-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--gray);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    font-size: .9rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-top:40px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
}

.image-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--sand);
    color: white;
    padding: .5rem 1.2rem;
    border-radius: 15px;/*20*/
    font-weight: 700;
    font-size: .85rem;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--dark);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--sand);
    line-height: 1;
}

.stat-label {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    opacity: .9;
}

.stat-desc {
    font-size: .85rem;
    margin-top: .5rem;
    opacity: .8;
}

/* ===== SECTIONS ===== */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-lead,
.page-lead {
    font-size: 1.25rem;
    color: var(--gray);
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--gray);
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.content-text p {
    margin-bottom: 1.5rem;
}

.content-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.text-link {
    color: var(--sand);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

.text-link:hover {
    color: var(--accent);
}

/* ===== EXCERPT SECTION ===== */
.excerpt-section {
    background: var(--light);
}

.featured-excerpt {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem 2rem;
    border-left: 4px solid var(--sand);
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

.featured-excerpt p {
    font-family: Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 1rem;
    font-style: italic;
}

.featured-excerpt cite {
    display: block;
    text-align: right;
    font-size: .9rem;
    color: var(--gray);
    margin-top: 2rem;
    font-style: normal;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: .3s;
}

.feature-card:hover {
    border-color: var(--sand);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

/* ===== REVIEWS CAROUSEL ===== */
.reviews-section {
    background: var(--light);
}

.rating-summary {
    text-align: center;
    margin-bottom: 3rem;
}

.stars {
    color: var(--sand);
    font-size: 1.5rem;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.reviews-track {
    display: flex;
    gap: 2rem;
    transition: transform .5s ease;
}

.review-card {
    min-width: calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    flex-shrink: 0;
}

.review-stars {
    color: var(--sand);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.review-author {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: .3s;
}

.carousel-dot.active {
    background: var(--sand);
    width: 30px;
    border-radius: 5px;
}

/* ===== PHOTO GALLERY ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.photo-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: .5s;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    color: white;
    padding: 1.5rem;
    font-weight: 600;
}

/* ===== SOCIAL SECTION ===== */
.social-section {
    background: var(--light);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: .3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.social-card h3 {
    font-size: 1.1rem;
    margin-bottom: .75rem;
}

.social-card p {
    font-size: .9rem;
    color: var(--gray);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--dark), #3a3024);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: .9;
}

.cta-note {
    font-size: .9rem;
    margin-top: 1rem;
    opacity: .8;
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding-top: 140px;
    padding-bottom: 3rem;
    text-align: center;
    background: var(--light);
}

/* ===== BOOK PAGE ===== */
.book-showcase {
    padding: 4rem 0;
}

.book-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
}

.book-cover-col img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
    margin-bottom: 2rem;
}

.book-details-box {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
}

.details-list {
    list-style: none;
    margin: 1rem 0;
}

.details-list li {
    padding: .7rem 0;
    border-bottom: 1px solid var(--border);
}

.price-display {
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--sand);
    text-align: center;
    margin: 1.5rem 0;
}

/* ===== AUTHOR PAGE ===== */
.author-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
}

.author-photo-col img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.author-text-col p {
    margin-bottom: 1.5rem;
}

/* ===== MARCO COMPANION SECTION ===== */
.marco-companion-section {
    background: var(--light);
    padding: 6rem 0;
}

.companion-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

.companion-photo-col img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.companion-text-col h2 {
    margin-bottom: 1rem;
}

.companion-text-col p {
    margin-bottom: 1.5rem;
}

/* ===== VALUES SECTION ===== */
.values-section {
    background: var(--white);
    padding: 6rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: .3s;
    background: var(--white);
}

.value-item:hover {
    border-color: var(--sand);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

/* ===== TRAIL INTRO (VIAGGIO PAGE) ===== */
.trail-intro {
    background: white;
    padding: 4rem 0;
}

.trail-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.trail-intro-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.trail-intro-content p {
    margin-bottom: 1.5rem;
}

/* ===== PLACES GRID ===== */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.place-card-large {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.place-card-large img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.place-content {
    padding: 2rem;
}

/* ===== GALLERIA RICORDI: Masonry + Lightbox ===== */

.memories-section {
    background: var(--light);
    position: relative;
}

/* --- Griglia Masonry --- */
.masonry-gallery {
    columns: 3;
    column-gap: 1rem;
}

.masonry-item {
    break-inside: avoid;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 6px;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Hover: zoom interno */
.masonry-item:hover img {
    transform: scale(1.06);
    opacity: 0.92;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
}

/* Pulsanti lightbox */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    line-height: 1;
}

.lightbox-close {
    top: 1.2rem;
    right: 1.2rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- Responsive masonry --- */
@media (max-width: 768px) {
    .masonry-gallery {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .masonry-gallery {
        columns: 1;
    }
}
 
/* ===== PURCHASE PAGE ===== */
.availability-section {
    background: var(--light);
    padding: 3rem 0;
}

.availability-box {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.availability-box h3 {
    margin-bottom: 2rem;
    color: var(--sand);
}

.availability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.availability-item {
    padding: 2rem;
    background: var(--light);
    border-radius: 8px;
}

.availability-number {
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--sand);
    line-height: 1;
    font-weight: 700;
}

.availability-label {
    font-size: .95rem;
    margin-top: 1rem;
    line-height: 1.5;
}

.availability-note {
    font-size: .9rem;
    color: var(--gray);
    margin-top: 1.5rem;
}

.purchase-options-section {
    padding: 4rem 0;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.option-box {
    background: white;
    border: 3px solid var(--border);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: .3s;
}

.option-box.direct {
    border-color: var(--sand);
    background: linear-gradient(135deg, #FFFBF7, #FFF8F0);
}

.option-box.amazon {
    border-color: var(--accent);
}

.option-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.option-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sand);
    color: white;
    padding: .5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: .9rem;
}

.option-highlight {
    background: var(--accent);
    color: white;
    padding: .5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: .9rem;
}

.option-box h3 {
    margin: 1rem 0 1.5rem;
    font-size: 2rem;
}

.option-price {
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--sand);
    margin: 1.5rem 0;
}

.option-benefits {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
}

.option-benefits li {
    padding: .7rem 0;
    border-bottom: 1px solid var(--border);
}

.amazon-note {
    font-size: .85rem;
    color: var(--gray);
    margin-top: 1rem;
}

.shipping-info {
    background: var(--light);
    padding: 3rem 0;
}

.info-box {
    max-width: 900px;
    margin: 0 auto;
}

.shipping-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.shipping-option {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.shipping-option.highlighted {
    border-color: var(--sand);
    background: linear-gradient(135deg, #FFF8F0, #FFF);
}

.shipping-note {
    font-size: .9rem;
    color: var(--gray);
    margin-top: .5rem;
}

.purchase-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

/* ===== FORMS ===== */
.order-form {
    margin-top: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: .5rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--sand);
}

.form-checkbox {
    margin-bottom: 1.5rem;
}

.form-checkbox label {
    display: flex;
    gap: .75rem;
    cursor: pointer;
}

.form-checkbox a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.2s;
}

.form-checkbox a:hover {
    color: var(--dark);
    text-decoration: underline;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    background: #10B981;
    color: white;
    display: block;
}

.form-message.error {
    background: #fee;
    color: #c00;
    display: block;
}

/* ===== SIDEBAR ===== */
.sidebar-sticky {
    position: sticky;
    top: 120px;
}

.product-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.product-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.product-author {
    color: var(--gray);
    margin-bottom: 1rem;
}

.product-price {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.price-amount {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    color: var(--sand);
    display: block;
}

.price-note {
    font-size: .9rem;
    color: var(--gray);
    margin-top: .5rem;
    display: block;
}

.product-features {
    list-style: none;
    margin: 1.5rem 0;
}

.product-features li {
    padding: .7rem 0;
    border-bottom: 1px solid var(--border);
}

.faq-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

details {
    margin-bottom: 1rem;
    cursor: pointer;
}

summary {
    font-weight: 600;
    padding: .5rem 0;
}

/* ===== LEGAL PAGES ===== */
.legal-section {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section h3 {
    margin-top: 2rem;
}

/* ===== ERROR PAGE ===== */
.error-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-section h1 {
    font-size: 10rem;
    color: var(--sand);
    line-height: 1;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: .5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .9rem;
    transition: .2s;
}

.footer-col a:hover {
    color: var(--sand);
}

.footer-main p {
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.copyright {
    font-size: .85rem;
    opacity: .7;
    margin-top: 1.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 2rem 0 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .copyright {
    margin: 0;
    opacity: 1;
}

.footer-bottom .developer {
    margin: 0;
}

.footer-bottom .developer a {
    color: var(--sand);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.footer-bottom .developer a:hover {
    color: white;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--sand);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Tablet e Desktop Piccoli */
@media (max-width: 1024px) {
    .hero-wrapper,
    .content-grid,
    .book-layout,
    .author-layout,
    .purchase-layout {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .review-card {
        min-width: calc(50% - 1rem);
    }

    .shipping-options,
    .options-grid,
    .availability-grid {
        grid-template-columns: 1fr;
    }

 
    .companion-layout {
        grid-template-columns: 1fr;
    }

    .companion-photo-col {
        order: -1;
    }

    .companion-photo-col img {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .menu-btn {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: .3s;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 1rem;
        display: block;
    }

    .hero-actions,
    .form-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 100px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .review-card {
        min-width: 100%;
    }

    .reviews-carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .reviews-carousel::-webkit-scrollbar {
        display: none;
    }

    .reviews-track {
        gap: 1rem;
    }

    .review-card {
        min-width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
    }

    .social-grid,
    .places-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        margin-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .availability-number {
        font-size: 3.5rem;
    }

    .option-price {
        font-size: 2rem;
    }
}


/* ========================================
   SEZIONE TEMI DEL ROMANZO
   ======================================== */

.book-themes {
    margin: 4rem 0;
    padding: 0 1rem;
}

.book-themes h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    text-align: left;
}

/* Grid responsive per i 4 box */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Singola card tema */
.theme-card {
    background: #f8f6f3;
    padding: 2rem 1.5rem;
    border-left: 4px solid #c9a961;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.theme-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.theme-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Responsive - 2 colonne su tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 1 colonna */
@media (max-width: 767px) {
    .book-themes {
        margin: 3rem 0;
    }
    
    .book-themes h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .themes-grid {
        gap: 1.5rem;
    }
    
    .theme-card {
        padding: 1.5rem 1.2rem;
    }
    
    .theme-card h3 {
        font-size: 1.2rem;
    }
}


/* AGGIUNGI QUESTE MODIFICHE AL TUO CSS */

/* ===== PLACES SECTION CON BACKGROUND ALTERNATO ===== */
.places-section {
    background: var(--light); /* Sfondo beige chiaro */
    padding: 6rem 0;
}

.place-card-large  {
    background: white; /* Card dispari bianche */
}


/* ===== MEMORIES SECTION CON BACKGROUND E BOX COLORATI ===== */
.memories-section {
    background: var(--white); /* Sfondo bianco per alternare */
}

 
.memory-item  {
    background: #F5F1E8; /* Box pari beige chiaro */
}

/* Miglioramento della caption per contrasto */
.memory-caption {
    padding: 1.5rem;
    background: inherit; /* Mantiene il colore del box */
}

.memory-caption h4 {
    margin-bottom: .5rem;
    color: var(--sand); /* Mantieni il colore sabbia */
}

/* ===== CITAZIONE MARCO ===== */
.quote-marco {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 2.5rem auto;
    padding: 1rem 2rem;
    border: none;
    font-style: italic;
}

/* Virgolette decorative */
.quote-marco::before {
    content: '\201C';
    display: block;
    font-size: 5rem;
    line-height: 1;
    color: var(--sand);
    font-family: Georgia, serif;
    margin-bottom: -1rem;
}

.quote-marco p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}
.quote-marco {
    margin-bottom: 0;
}



.why-read-section {
    background-color: #fdf6ec;
    border-top: 1px solid #ecdfc9;
    border-bottom: 1px solid #ecdfc9;
    padding: 5rem 0;
}

/* Layout a due colonne affiancate */
.why-read-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ---- Colonna sinistra: intro ---- */
.why-read-intro-col {
    position: sticky;
    top: 6rem; /* resta visibile mentre si scrolla la lista */
}

/* Kicker sopra il titolo */
.why-read-kicker {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.why-read-intro-col h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.why-read-intro-col p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* ---- Colonna destra: lista numerata ---- */
.why-read-list {
    list-style: none;
    counter-reset: why-counter;
    display: flex;
    flex-direction: column;
    gap: 0; /* divisori gestiti con border-bottom */
}

/* Singola voce della lista */
.why-read-item {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid #e8dcc8;
}

.why-read-item:first-child {
    border-top: 1px solid #e8dcc8;
}

/* Numero grande e sottile — stile editoriale */
.why-read-num {
    flex-shrink: 0;
    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #d4b896;
    line-height: 1;
    min-width: 2.2rem;
}

/* Testo della voce */
.why-read-text {
    font-size: 0.97rem;
    color: #4a3f32;
    line-height: 1.7;
}

.why-read-text strong {
    color: var(--dark);
    font-weight: 600;
}

 

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .why-read-section {
        padding: 3.5rem 0;
    }

    /* Su mobile: tutto in colonna */
    .why-read-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Non sticky su mobile */
    .why-read-intro-col {
        position: static;
    }

    .why-read-intro-col h2 {
        font-size: 1.8rem;
    }

    .why-read-num {
        font-size: 1.25rem;
        min-width: 1.8rem;
    }
}



/* ===== COOKIE MESSAGE BOX ===== */
.cookie-message-box {
    max-width: 760px;
    margin: 0 auto 3rem;
    background: var(--light);
    border-left: 4px solid var(--sand);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}
 
.cookie-message-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}
 
.cookie-message-box p {
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    color: var(--dark);
}
 
.cookie-closing {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.2rem !important;
    color: var(--sand) !important;
    margin-top: 2rem;
}
 
/* Icona decorativa */
.cookie-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}
 
/* Badge con i tre punti chiave */
.cookie-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
 
.cookie-badge span {
    background: var(--white);
    border: 1px solid var(--sand);
    color: var(--sand);
    font-weight: 600;
    font-size: .9rem;
    padding: .5rem 1.2rem;
    border-radius: 20px;
}
 
/* Link di ritorno */
.cookie-back {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
 
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cookie-message-box {
        padding: 2rem 1.5rem;
    }
 
    .cookie-message-box h2 {
        font-size: 1.6rem;
    }
 
    .cookie-badge {
        flex-direction: column;
        align-items: flex-start;
    }
 
    .cookie-back {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* =====================================================
   FAQ SECTION - AI SEO
   ===================================================== */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-light, #f9f7f4);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0ddd8;
}

.faq-item:first-child {
    border-top: 1px solid #e0ddd8;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.4rem 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--accent, #8B6914);
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-bottom: 1.4rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary, #444);
}

.faq-question[aria-expanded="true"] + .faq-answer {
    display: block;
}
