/* ========================================
   Cystinorm Landing Page - CSS
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.6; color: #333; background: #fff; overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; display: block; }
a { color: #C31946; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #a01237; text-decoration: underline; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: #1a1a1a; }
h1 { font-size: 2rem; }
h2 { font-size: 1.65rem; margin-bottom: .75rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* --- Container --- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 2px solid #C31946; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 8px 20px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; color: #C31946; text-decoration: none; flex-shrink: 0; }
.logo img { width: 32px; height: 55px; }
.logo:hover { color: #a01237; text-decoration: none; }
.main-nav ul { display: flex; gap: 18px; align-items: center; }
.main-nav a { font-size: .9rem; font-weight: 500; color: #333; white-space: nowrap; padding: 6px 0; }
.main-nav a:hover { color: #C31946; text-decoration: none; }
.btn-header-cta { display: inline-block; background: #FFCE12; color: #1a1a1a; font-weight: 700; font-size: .9rem; padding: 10px 20px; border-radius: 6px; text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: background .2s, transform .1s; }
.btn-header-cta:hover { background: #f0c000; text-decoration: none; transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; width: 40px; height: 40px; position: relative; }
.hamburger, .hamburger::before, .hamburger::after { display: block; width: 24px; height: 2px; background: #C31946; border-radius: 2px; transition: transform .3s; }
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* --- CTA Buttons --- */
.btn-cta { display: inline-block; background: #FFCE12; color: #1a1a1a; font-weight: 700; font-size: 1.15rem; padding: 16px 40px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer; transition: background .2s, transform .1s, box-shadow .2s; box-shadow: 0 4px 12px rgba(255,206,18,.35); text-align: center; }
.btn-cta:hover { background: #f0c000; text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,206,18,.45); }
.btn-cta:active { transform: translateY(0); }
.cta-wrap { text-align: center; padding: 20px 0; }
.cta-sub { display: block; text-align: center; font-size: .85rem; color: #666; margin-top: 6px; }

/* --- Section base --- */
section { padding: 50px 0; }
section:nth-child(even) { background: #fdf6f8; }
.section-title { text-align: center; color: #C31946; margin-bottom: 1.5rem; }
.section-subtitle { text-align: center; color: #555; max-width: 700px; margin: 0 auto 2rem; }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, #fdf6f8 0%, #fff 100%); padding: 40px 0 50px; }
.hero-inner { display: flex; align-items: center; gap: 40px; }
.hero-image { flex: 0 0 40%; text-align: center; }
.hero-image img { margin: 0 auto; max-height: 420px; width: auto; }
.hero-content { flex: 1; }
.hero-content h1 { font-size: 2.1rem; color: #C31946; margin-bottom: .5rem; }
.hero-content .hero-tagline { font-size: 1.15rem; color: #555; margin-bottom: 1rem; }
.hero-content .hero-price { font-size: 1.5rem; font-weight: 700; color: #C31946; margin-bottom: .5rem; }
.hero-social-proof { display: flex; align-items: center; gap: 8px; margin-bottom: 1.25rem; flex-wrap: wrap; }
.hero-stars { color: #f5a623; font-size: 1.2rem; }
.hero-rating-text { font-size: .9rem; color: #555; }

/* --- Benefici --- */
.benefici-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.beneficio-card { background: #fff; border-radius: 10px; padding: 24px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid #f0e0e4; }
.beneficio-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.beneficio-card h3 { color: #C31946; margin-bottom: 8px; }

/* --- Order Form --- */
.order-section { padding: 40px 0; }
.order-form-wrapper { max-width: 520px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 4px 24px rgba(195,25,70,.1); border: 2px solid #C31946; }
.order-form-intro { text-align: center; margin-bottom: 1.5rem; font-size: 1rem; color: #333; line-height: 1.5; }
.order-form-intro strong { color: #C31946; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .95rem; color: #333; }
.form-group input { width: 100%; padding: 14px 16px; font-size: 1rem; border: 2px solid #ddd; border-radius: 8px; transition: border-color .2s; background: #fafafa; }
.form-group input:focus { border-color: #C31946; outline: none; background: #fff; }
.form-group input.error { border-color: #e74c3c; }
.form-error-msg { color: #e74c3c; font-size: .82rem; margin-top: 4px; display: none; }
.form-error-msg.visible { display: block; }
.btn-submit { display: block; width: 100%; background: #FFCE12; color: #1a1a1a; font-weight: 700; font-size: 1.2rem; padding: 16px; border: none; border-radius: 8px; cursor: pointer; transition: background .2s, transform .1s; box-shadow: 0 4px 12px rgba(255,206,18,.35); position: relative; }
.btn-submit:hover { background: #f0c000; transform: translateY(-1px); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.btn-submit .spinner { display: none; width: 20px; height: 20px; border: 3px solid rgba(26,26,26,.2); border-top-color: #1a1a1a; border-radius: 50%; animation: spin .6s linear infinite; position: absolute; right: 20px; top: 50%; margin-top: -10px; }
.btn-submit.loading .spinner { display: inline-block; }
.btn-submit.loading .btn-text { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-privacy { font-size: .8rem; color: #666; text-align: center; margin-top: 12px; }
.form-privacy a { color: #C31946; }
.trust-badges { display: flex; justify-content: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: #555; }
.trust-badge .badge-icon { font-size: 1.2rem; }

/* --- Ingredienti --- */
.ingredienti-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.ingrediente-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid #f0e0e4; }
.ingrediente-card img { width: 100%; height: 172px; object-fit: cover; }
.ingrediente-card .ingrediente-info { padding: 16px; }
.ingrediente-card h3 { color: #C31946; margin-bottom: 6px; }
.ingrediente-card p { font-size: .92rem; color: #555; margin-bottom: 0; }
.ingrediente-link { font-size: .82rem; display: inline-block; margin-top: 6px; }

/* --- Recensioni --- */
.recensioni-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.recensione-card { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid #f0e0e4; }
.recensione-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.recensione-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.recensione-name { font-weight: 700; color: #1a1a1a; }
.recensione-city { font-size: .85rem; color: #888; }
.recensione-stars { color: #f5a623; margin-bottom: 8px; }
.recensione-text { font-size: .95rem; color: #444; line-height: 1.5; }

/* --- Come Ordinare --- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step-card { text-align: center; padding: 24px 16px; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: #C31946; color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.step-card h3 { color: #1a1a1a; margin-bottom: 8px; }
.step-card p { font-size: .92rem; color: #555; }

/* --- Dove si Compra --- */
.dove-compra-inner { max-width: 700px; margin: 0 auto; text-align: center; }

/* --- FAQ --- */
.faq-list { max-width: 750px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px 0; background: none; border: none; cursor: pointer; font-size: 1.05rem; font-weight: 600; color: #1a1a1a; text-align: left; gap: 12px; }
.faq-question:hover { color: #C31946; }
.faq-question .faq-icon { font-size: 1.3rem; transition: transform .3s; flex-shrink: 0; color: #C31946; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 0 18px; color: #555; line-height: 1.6; }

/* --- Controindicazioni --- */
.controindicazioni-box { max-width: 750px; margin: 0 auto; background: #fff5f7; border-left: 4px solid #C31946; border-radius: 6px; padding: 24px; }
.controindicazioni-box ul { list-style: disc; padding-left: 20px; }
.controindicazioni-box li { margin-bottom: 8px; color: #555; }

/* --- Rating Stars Display --- */
.rating-display { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 12px 0; }
.rating-display .stars { color: #f5a623; font-size: 1.4rem; letter-spacing: 2px; }
.rating-display .rating-text { font-size: .95rem; color: #555; }

/* --- Footer --- */
.site-footer { background: #1a1a1a; color: #ccc; padding: 40px 0 24px; font-size: .88rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-studies { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #333; }
.footer-studies ol { list-style: decimal; padding-left: 20px; }
.footer-studies li { margin-bottom: 6px; }
.footer-studies a { color: #f5a623; }
.footer-studies a:hover { color: #fff; }
.footer-links { margin-bottom: 20px; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; }
.footer-links a { color: #ccc; font-size: .88rem; }
.footer-links a:hover { color: #fff; }
.footer-registro, .footer-update, .footer-disclaimer, .footer-copy { text-align: center; margin-bottom: 12px; }
.footer-disclaimer { font-size: .8rem; color: #999; max-width: 800px; margin-left: auto; margin-right: auto; }
.footer-copy { color: #777; font-size: .82rem; margin-bottom: 0; }

/* --- Legal Pages --- */
.legal-page { padding: 40px 0; min-height: 60vh; }
.legal-page h1 { color: #C31946; margin-bottom: 1.5rem; font-size: 1.8rem; }
.legal-page h2 { color: #C31946; margin-top: 2rem; margin-bottom: .75rem; font-size: 1.3rem; }
.legal-page h3 { margin-top: 1.5rem; margin-bottom: .5rem; }
.legal-page p, .legal-page li { color: #444; line-height: 1.7; }
.legal-page ul, .legal-page ol { padding-left: 20px; margin-bottom: 1rem; }
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }

/* --- Contact Form --- */
.contact-form-wrapper { max-width: 580px; margin: 0 auto; }
.contact-form-wrapper .form-group textarea { width: 100%; padding: 14px 16px; font-size: 1rem; border: 2px solid #ddd; border-radius: 8px; transition: border-color .2s; background: #fafafa; font-family: inherit; resize: vertical; min-height: 120px; }
.contact-form-wrapper .form-group textarea:focus { border-color: #C31946; outline: none; background: #fff; }
.contact-form-wrapper .form-group textarea.error { border-color: #e74c3c; }
.privacy-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
.privacy-check input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; accent-color: #C31946; flex-shrink: 0; }
.privacy-check label { font-size: .88rem; color: #555; }
.form-message { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .92rem; }
.form-message.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-message.error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* --- Thank You Page --- */
.thankyou-section { text-align: center; padding: 80px 0; min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.thankyou-inner { max-width: 600px; margin: 0 auto; }
.thankyou-icon { font-size: 4rem; color: #27ae60; margin-bottom: 16px; }
.thankyou-inner h1 { color: #C31946; margin-bottom: 1rem; }

/* --- Modalita d'uso --- */
.modalita-uso-inner { max-width: 700px; margin: 0 auto; }
.modalita-uso-inner ul { list-style: disc; padding-left: 20px; }
.modalita-uso-inner li { margin-bottom: 8px; color: #555; }

/* --- A Cosa Serve --- */
.cosa-serve-inner { max-width: 800px; margin: 0 auto; }
.cosa-serve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-top: 1.5rem; }
.cosa-serve-grid img { border-radius: 10px; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .hero-inner { flex-direction: column-reverse; text-align: center; gap: 24px; }
    .hero-image { flex: auto; }
    .hero-content h1 { font-size: 1.7rem; }
    .hero-social-proof { justify-content: center; }
    .cosa-serve-grid { grid-template-columns: 1fr; }
    .ingredienti-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
    section { padding: 36px 0; }

    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #eee; box-shadow: 0 4px 12px rgba(0,0,0,.1); padding: 16px 20px; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 12px; }
    .main-nav a { font-size: 1rem; padding: 8px 0; }

    .logo span { display: none; }

    .ingredienti-grid { grid-template-columns: 1fr; }
    .recensioni-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }

    .order-form-wrapper { padding: 24px 18px; }
    .btn-cta { font-size: 1.05rem; padding: 14px 28px; }

    .footer-links ul { flex-direction: column; align-items: center; gap: 8px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .header-inner { padding: 6px 15px; }
    .hero { padding: 24px 0 36px; }
    .hero-content h1 { font-size: 1.45rem; }
    .hero-image img { max-height: 280px; }
    .steps-grid { grid-template-columns: 1fr; }
    .benefici-grid { grid-template-columns: 1fr; }
}

/* --- Skip Link --- */
.skip-link { position: absolute; top: -100%; left: 16px; background: #C31946; color: #fff; padding: 10px 20px; z-index: 9999; border-radius: 0 0 6px 6px; font-weight: 600; }
.skip-link:focus { top: 0; }

/* --- Utilities --- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
