/* 
  Sito Web: Miglioramento della Vita
  Palette Libro: Oro #C9A84C, Nero #1A0A00, Rosso Scuro #8B0000, Bianco #FFFFFF, Grigio #F5F5F5
  Palette Conferenza: Viola #7B3FA0, Grigio Chiaro #F0EEEB, Rosso #E8001C, Testo #2C2C2A
*/

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

html {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: #111111;
    background-color: #FFFFFF;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img,
iframe {
    max-width: 100%;
}

/* --- VARIABLES --- */
:root {
    --color-oro: #C9A84C;
    --color-nero: #111111;
    --color-nero-libro: #1A0A00;
    --color-rosso-scuro: #8B0000;
    --color-rosso-conf: #E8001C;
    --color-bg-light: #F5F5F5;
    --color-self-analisi: #D1D1D1;
    --color-argento-dark: #A0A0A0;
}

/* --- NAVBAR --- */
header {
    background-color: var(--color-nero);
    width: 100%;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hero-banner {
    width: 100%;
    height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../assets/images/header.webp');
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--color-oro);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 20px;
}

.hero-banner h1 {
    font-family: 'Oswald', sans-serif;
    color: #FFFFFF;
    font-size: clamp(24px, 4vw, 60px); /* Responsive per evitare che esca dallo schermo */
    font-weight: 500;
    -webkit-text-stroke: 1.5px #000000;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    letter-spacing: 1px;
    line-height: 1.2;
    white-space: nowrap;
    max-width: none;
    text-transform: none;
    margin: 0;
}

.hero-banner p {
    color: #FFFFFF;
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
    max-width: 900px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.45);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: var(--color-oro);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.mdv-nav {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.mdv-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.mdv-nav a:hover,
.mdv-nav a.active {
    color: var(--color-oro);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-oro);
    outline-offset: 3px;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-oro {
    background-color: var(--color-oro);
    color: var(--color-nero);
}

.btn-oro:hover {
    background-color: #d8b757;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

/* --- UTILITIES --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.section-padding { padding: 60px 0; }
.full-width { width: 100%; }

/* --- LIBRO PAGE --- */
.banner-libro {
    width: 100%;
    min-height: 500px;
    background-color: var(--color-nero-libro);
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('../assets/images/dn-banner.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.banner-libro .subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner-libro .title {
    font-size: 80px;
    color: var(--color-oro);
    margin-bottom: 16px;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
    letter-spacing: 2px;
}

.banner-libro .author {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner-self-analisi {
    width: 100%;
    min-height: 500px;
    background-color: #000;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/images/self-analisi-banner.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px solid var(--color-argento-dark);
}

.banner-self-analisi .subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 500;
}

.banner-self-analisi .title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(40px, 8vw, 80px);
    color: #FFFFFF;
    margin-bottom: 16px;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
}

.banner-self-analisi .author {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.prodotto-section {
    background-color: #FFFFFF;
    padding: 60px 20px;
}

.prodotto-grid {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .prodotto-grid {
        grid-template-columns: 1fr;
    }
}

.prodotto-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.dianetics-product-section {
    padding-bottom: 80px;
}

.dianetics-product-grid {
    grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 56px;
}

.dianetics-product-grid .prodotto-image {
    position: sticky;
    top: 96px;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dianetics-product-grid .prodotto-info {
    display: grid;
    gap: 42px;
}

.product-story-block {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 0;
}

.product-story-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 28px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.product-story-block .btn {
    align-self: flex-start;
}

.purchase-promo-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    overflow-x: clip;
    overflow-y: visible;
}

@supports not (overflow: clip) {
    .purchase-promo-row {
        overflow-x: hidden;
    }
}

.purchase-promo-row .btn {
    flex: 0 0 auto;
}

.purchase-promo-image-link {
    display: block;
    flex: 0 1 460px;
    max-width: 460px;
    opacity: 0;
    transform: translateX(120%);
}

.purchase-promo-row.is-visible .purchase-promo-image-link {
    animation: purchasePromoSlideIn 1.4s ease-out 0.1s forwards;
}

.purchase-promo-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(139, 0, 0, 0.14), 0 4px 12px rgba(201, 168, 76, 0.18);
}

.self-analisi-page .purchase-promo-image,
.purchase-card-section .purchase-card-self + .purchase-promo-image-link .purchase-promo-image {
    box-shadow: 0 12px 26px rgba(17, 17, 17, 0.12), 0 4px 12px rgba(160, 160, 160, 0.2);
}

@keyframes purchasePromoSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .purchase-promo-image-link {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.product-story-block p {
    text-align: justify;
    text-justify: inter-word;
}

.prodotto-info h2 {
    font-size: 32px;
    color: var(--color-nero-libro);
    margin-bottom: 24px;
    line-height: 1.2;
}

.prodotto-info p {
    color: #444;
    font-size: 16px;
    margin-bottom: 32px;
}

.self-analisi-page .prodotto-info h2 {
    color: var(--color-nero);
}

.self-analisi-page .prodotto-info p {
    line-height: 1.6;
}

.book-cover-quote {
    max-width: 320px;
    margin: 2px auto 24px;
    padding: 16px 18px 16px 20px;
    border-left: 3px solid #24515A;
    border-radius: 0 8px 8px 0;
    background: rgba(36, 81, 90, 0.06);
    color: #24515A;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.book-cover-quote p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    font-style: italic;
    text-align: left;
}

.book-cover-quote cite {
    display: block;
    margin-top: 10px;
    color: #222;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.book-cover-quote-dianetics {
    border-left-color: var(--color-oro);
    background: rgba(201, 168, 76, 0.09);
    color: var(--color-nero-libro);
}

.book-cover-quote-dianetics cite {
    color: var(--color-rosso-scuro);
}

.btn-argento {
    background-color: #000000;
    color: #FFFFFF;
    border: 1px solid var(--color-argento-dark);
}

.btn-argento:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.storia-card {
    background: #FFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.storia-card p {
    font-style: italic;
    color: #666;
    font-size: 13px;
    margin-bottom: 16px;
}

.storia-card .author-name {
    color: var(--color-oro);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.official-link-section {
    background-color: var(--color-bg-light);
    padding: 20px 20px 80px 20px;
    text-align: center;
}

.official-link-section a {
    color: var(--color-oro);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.official-link-section a:hover {
    color: var(--color-nero);
    transform: translateY(-2px);
}

/* --- ACQUISTO PAGE --- */
.banner-acquisto {
    width: 100%;
    background-color: var(--color-nero-libro);
    padding: 28px 20px;
    border-bottom: 2px solid var(--color-oro);
    text-align: center;
}

.banner-acquisto .subtitle {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.banner-acquisto h1 {
    color: var(--color-oro);
    font-size: 24px;
    font-weight: 600;
}

.form-section {
    background-color: var(--color-bg-light);
    padding: 60px 20px;
}

.step-bar {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eee;
    color: #666;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-dot.active {
    background: var(--color-oro);
    color: var(--color-nero);
}

.step-label {
    font-size: 11px;
    color: #666;
}

.step-label.active {
    color: var(--color-nero);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 1px;
    background: #ddd;
    margin: 0 16px;
}

.acquisto-form {
    max-width: 560px;
    margin: 0 auto;
    background: #FFF;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--color-oro);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.22);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.checkbox-group input {
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 11px;
    color: #4D4D4D;
    line-height: 1.5;
}

.checkbox-group input:focus-visible {
    outline-offset: 2px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 14px;
}

/* --- HOME PAGE --- */
.hero-home {
    padding: 80px 20px;
    background-color: #FFF;
}

.hero-home h2 {
    text-align: center;
    font-size: 36px;
    color: var(--color-nero);
    margin-bottom: 40px;
}

.hero-home > p {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .product-cards { grid-template-columns: 1fr; }
}

.card {
    background: var(--color-bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

.card-img-centered {
    object-position: center;
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-nero);
    text-align: center;
}

.card-content p {
    font-size: 14px;
    color: #555;
    text-align: center;
}

/* --- MISC --- */
.page-header {
    background: var(--color-bg-light);
    padding: 80px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    color: var(--color-nero);
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-section-title {
    margin-bottom: 24px;
    font-size: 20px;
    color: var(--color-nero);
}

.contact-form-panel {
    background: var(--color-bg-light);
    padding: 40px;
    border-radius: 8px;
}

.contact-muted-intro {
    color: #666;
    max-width: 600px;
    margin: 16px auto 0 auto;
}

.contact-info-item {
    margin-bottom: 24px;
}

.contact-info-label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-info-text {
    color: #333;
    font-size: 16px;
}

.contact-phone-link {
    color: inherit;
    text-decoration: none;
}

.contact-email-link,
.legal-link {
    color: var(--color-oro);
    text-decoration: none;
}

.inherit-link {
    color: inherit;
}

.contact-message-field {
    min-height: 120px;
}

.full-width-btn {
    width: 100%;
}

.map-section {
    padding-top: 0;
}

.map-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-iframe {
    border: 0;
}

.honeypot-field {
    display: none;
}

/* --- LIBRI PAGE --- */
.libri-bridge {
    padding: 80px 20px;
    background-color: #f8f9fa;
    min-height: 60vh;
}

.libri-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding-top: 40px;
}

.libro-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.libro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.libro-card img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background-color: #f0f0f0;
    padding: 20px;
}

.libro-card-content {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.libro-card-content h3 {
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: #111;
    text-transform: uppercase;
}

.libro-card-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-scopri {
    display: inline-block;
    padding: 12px 30px;
    background-color: #111;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.libro-card:hover .btn-scopri {
    background-color: var(--color-oro, #c9a84c);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.section-intro h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.section-intro p {
    font-size: 18px;
    color: #555;
}

/* --- CHI SIAMO PAGE --- */
.chi-siamo-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.chi-siamo-content h2 {
    color: var(--color-nero-libro);
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    margin-bottom: 24px;
}

.chi-siamo-content p {
    color: #444;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
}

.chi-siamo-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.chi-siamo-gallery .product-story-image {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .chi-siamo-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- LEGAL PAGES --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-external-link {
    text-align: center;
}

.legal-content h2 {
    color: var(--color-oro);
    margin-bottom: 20px;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
}

.legal-content p {
    margin-bottom: 15px;
    color: #444;
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 40px;
}

/* --- DIANETICS SUCCESS CAROUSEL --- */
.success-carousel-section {
    background-color: var(--color-bg-light);
    padding: 60px 20px;
    overflow: hidden;
}

.success-carousel-section .section-title {
    text-align: center;
    font-size: 36px;
    color: var(--color-nero-libro);
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    margin-bottom: 50px;
    text-transform: uppercase;
    font-weight: 700;
}

.success-carousel {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--color-oro) rgba(0, 0, 0, 0.08);
    -webkit-overflow-scrolling: touch;
}

.success-carousel:hover {
    overflow-x: auto;
    cursor: grab;
}

.success-carousel:active {
    cursor: grabbing;
}

.success-carousel::-webkit-scrollbar {
    height: 8px;
}

.success-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
}

.success-carousel::-webkit-scrollbar-thumb {
    background: var(--color-oro);
    border-radius: 999px;
}

.success-carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: successCarouselScroll 80s linear infinite;
}

.success-carousel:hover .success-carousel-track {
    animation-play-state: paused;
}

.success-carousel .storia-card {
    flex: 0 0 340px;
    min-height: 260px;
}

.purchase-card-section {
    background-color: var(--color-bg-light);
    padding: 8px 20px 36px;
}

.purchase-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFB 100%);
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11), 0 2px 6px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.purchase-card-promo-row {
    align-items: stretch;
    justify-content: center;
}

.purchase-card-promo-row .purchase-card {
    flex: 0 0 460px;
    margin: 0;
    align-self: stretch;
    padding-top: 6px;
    padding-bottom: 6px;
}

.purchase-card-promo-row .purchase-card img {
    width: 90px;
}

.purchase-card-promo-row .purchase-card-self {
    padding-top: 10px;
    padding-bottom: 10px;
}

.purchase-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.48);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.15), 0 5px 14px rgba(201, 168, 76, 0.16);
}

.purchase-card img {
    width: 58px;
    height: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.16));
    transition: transform 0.28s ease;
}

.purchase-card:hover img {
    transform: translateY(-2px) rotate(-2deg);
}

.purchase-card .btn {
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.purchase-card .btn:hover {
    transform: none;
    box-shadow: none;
}

.self-success-section .section-title {
    color: var(--color-nero);
}

.self-success-section .success-carousel {
    scrollbar-color: var(--color-argento-dark) rgba(0, 0, 0, 0.08);
}

.self-success-section .success-carousel::-webkit-scrollbar-thumb {
    background: var(--color-argento-dark);
}

.self-success-section .storia-card .author-name {
    color: var(--color-argento-dark);
}

.purchase-card-self {
    border-color: rgba(160, 160, 160, 0.32);
}

.purchase-card-self:hover {
    border-color: rgba(160, 160, 160, 0.62);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.15), 0 5px 14px rgba(160, 160, 160, 0.2);
}

@keyframes successCarouselScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 12px));
    }
}

.placeholder-page {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f9f9f9;
    padding: 60px 20px;
}

.placeholder-page h1 {
    font-family: 'Cinzel', serif;
    color: var(--color-oro);
    font-size: 3rem;
    margin-bottom: 20px;
}

.placeholder-page p {
    font-size: 1.2rem;
    color: #666;
}

/* --- COOKIE BANNER GDPR --- */
.cookie-banner-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 24px;
    display: none;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner-container.show {
    display: block;
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-text {
    flex: 1;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.cookie-text strong {
    color: var(--color-nero);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-cookie-accept {
    background-color: var(--color-oro);
    color: var(--color-nero);
}

.btn-cookie-accept:hover {
    background-color: #d8b757;
}

.btn-cookie-reject {
    background-color: #eee;
    color: #333;
}

.btn-cookie-reject:hover {
    background-color: #ddd;
}

.btn-cookie-customize {
    background-color: transparent;
    border-color: #ccc;
    color: #555;
}

.btn-cookie-customize:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

/* Modale Personalizzazione */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cookie-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.cookie-modal {
    background: #FFF;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cookie-modal h3 {
    margin-bottom: 16px;
    color: var(--color-nero);
}

.cookie-modal p {
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cookie-option:last-of-type {
    border-bottom: none;
}

.cookie-option label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.cookie-option .cookie-desc {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    font-weight: normal;
}

.cookie-modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* --- MAIN FOOTER --- */
.main-footer {
    background-color: #000000 !important;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 30px 0;
    font-size: 13px;
    display: block !important;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.footer-logo .logo {
    font-size: 14px;
    letter-spacing: 2px;
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    justify-content: center;
    white-space: nowrap;
    max-width: 100%;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-oro);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    padding-top: 30px;
    margin-top: 20px;
}

.footer-copyright p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.footer-legal-links {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-legal-links-compact {
    margin-top: 5px;
}

.footer-legal-links a {
    color: inherit;
    font-size: 10px;
    text-decoration: underline;
    opacity: 1;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
}

/* --- CUSTOM MODAL POPUP --- */
.status-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.status-modal {
    background: #FFF;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.status-modal-overlay.show .status-modal {
    transform: translateY(0);
}

.status-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 28px;
}

.status-modal-icon.success {
    background-color: rgba(201, 168, 76, 0.1);
    color: var(--color-oro);
}

.status-modal-icon.error {
    background-color: rgba(232, 0, 28, 0.1);
    color: var(--color-rosso-conf);
}

.status-modal-title {
    font-size: 22px;
    color: var(--color-nero);
    margin-bottom: 12px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.status-modal-message {
    font-size: 15px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}

.status-modal-btn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
}

/* --- RESPONSIVE PASS --- */
@media (max-width: 1024px) {
    header {
        padding: 12px 20px;
    }

    .navbar-container {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }

    .logo {
        text-align: center;
        line-height: 1.35;
    }

    .mdv-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .prodotto-grid {
        grid-template-columns: 36% 1fr;
        gap: 32px;
    }

    .dianetics-product-grid {
        grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
        gap: 40px;
    }

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

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    header {
        position: static;
        padding: 14px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .section-padding,
    .form-section,
    .hero-home,
    .prodotto-section,
    .hero-banner {
        height: auto;
        min-height: 360px;
        padding: 48px 16px;
    }

    .hero-banner h1 {
        max-width: 100%;
        white-space: normal;
        font-size: clamp(32px, 11vw, 48px);
        -webkit-text-stroke: 1px #000000;
    }

    .banner-libro,
    .banner-self-analisi {
        min-height: 360px;
        padding: 56px 16px;
    }

    .banner-libro .subtitle,
    .banner-self-analisi .subtitle {
        letter-spacing: 2px;
        line-height: 1.4;
    }

    .banner-libro .title,
    .banner-self-analisi .title {
        font-size: clamp(42px, 15vw, 64px);
        line-height: 1;
        overflow-wrap: anywhere;
    }

    .prodotto-grid,
    .dianetics-product-grid,
    .product-cards,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .dianetics-product-section {
        padding-bottom: 44px;
    }

    .dianetics-product-grid .prodotto-image {
        position: static;
        min-height: 0;
        max-width: 300px;
        margin: 0 auto 12px;
    }

    .dianetics-product-grid .prodotto-info {
        gap: 18px;
    }

    .product-story-block {
        min-height: auto;
        padding: 28px 0;
        border-top: 1px solid #eeeeee;
    }

    .product-story-image {
        height: 300px;
    }

    .product-story-block:first-child {
        border-top: none;
    }

    .purchase-promo-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .purchase-promo-image-link {
        flex-basis: auto;
        max-width: 100%;
    }

    .product-story-image {
        margin-bottom: 22px;
    }

    .prodotto-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .prodotto-info h2,
    .hero-home h2,
    .page-header h1 {
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.2;
    }

    .acquisto-form,
    .contact-form-panel {
        padding: 28px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .step-bar {
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        width: 92px;
    }

    .step-line {
        margin: 11px 8px 0;
    }

    .footer-nav {
        flex-wrap: wrap;
        white-space: normal;
        gap: 14px 20px;
    }

    .cookie-actions,
    .cookie-modal-actions {
        flex-direction: column;
    }

    .btn-cookie,
    .cookie-modal-actions .btn-cookie {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .mdv-nav {
        gap: 10px 12px;
    }

    .mdv-nav a {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .logo,
    .footer-logo .logo {
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .btn {
        width: 100%;
        padding: 14px 18px;
        text-align: center;
        white-space: normal;
    }

    .banner-acquisto h1 {
        font-size: 22px;
        line-height: 1.25;
    }

    .acquisto-form,
    .contact-form-panel {
        padding: 24px 16px;
    }

    .checkbox-group label {
        font-size: 10px;
    }

    .page-header {
        padding: 56px 16px;
    }

    .placeholder-page h1 {
        font-size: 2.1rem;
        line-height: 1.15;
    }

    .placeholder-page p {
        font-size: 1rem;
    }

    .status-modal {
        padding: 30px 20px;
    }

    .footer-content {
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .success-carousel {
        overflow-x: auto;
    }

    .success-carousel-track {
        animation: none;
    }
}

@media (max-width: 768px) {
    .success-carousel-section {
        padding: 44px 16px;
    }

    .success-carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
    }

    .success-carousel-track {
        animation: none;
    }

    .success-carousel-section .section-title {
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.2;
    }

    .success-carousel .storia-card {
        flex-basis: min(82vw, 320px);
        min-height: 300px;
        scroll-snap-align: start;
    }

    .purchase-card-section {
        padding: 0 16px 32px;
    }

    .purchase-card {
        max-width: 340px;
        padding: 10px 14px;
        gap: 14px;
    }

    .purchase-card-promo-row .purchase-card {
        flex-basis: auto;
        width: 100%;
        max-width: 340px;
    }

    .purchase-card img {
        width: 52px;
    }
}

@media (max-width: 480px) {
    .libri-bridge {
        padding: 48px 16px;
    }

    .libri-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 24px;
    }

    .libro-card img {
        height: 280px;
        padding: 16px;
    }

    .libro-card-content {
        padding: 24px 18px;
    }

    .section-intro h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .section-intro p {
        font-size: 16px;
    }

    .purchase-card .btn {
        width: auto;
    }
}
