/* ── CallKeet — Foglio di stile condiviso ── */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #E5384F;
    --primary-light: #FCA5A5;
    --text-primary: #1E293B;
    --text-secondary: #7C8DA0;
    --text-tertiary: #475569;
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --card-border: #E9EEF4;
    --divider: #F1F5F9;
    --green: #16A34A;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-group img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.logo-group span {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
header nav a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-left: 28px;
    transition: color .2s;
}
header nav a:hover { color: var(--primary); }

/* ── HERO ── */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
    background: #E5384F;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Decorative leaves */
.hero-leaf {
    position: absolute;
    pointer-events: none;
    opacity: .12;
    background: #fff;
}
.hero-leaf.leaf-1 {
    width: 180px;
    height: 80px;
    top: 24px;
    right: -30px;
    clip-path: ellipse(50% 38% at 50% 50%);
    transform: rotate(-35deg);
    opacity: .15;
}
.hero-leaf.leaf-2 {
    width: 120px;
    height: 50px;
    top: 60px;
    right: 80px;
    clip-path: ellipse(50% 38% at 50% 50%);
    transform: rotate(-55deg);
    opacity: .09;
}
.hero-leaf.leaf-3 {
    width: 200px;
    height: 90px;
    bottom: 20px;
    left: -40px;
    clip-path: ellipse(50% 38% at 50% 50%);
    transform: rotate(25deg);
    opacity: .13;
}
.hero-leaf.leaf-4 {
    width: 140px;
    height: 60px;
    bottom: 70px;
    left: 60px;
    clip-path: ellipse(50% 38% at 50% 50%);
    transform: rotate(50deg);
    opacity: .08;
}
.hero-leaf.leaf-5 {
    width: 100px;
    height: 44px;
    top: 50%;
    right: 5%;
    clip-path: ellipse(50% 38% at 50% 50%);
    transform: rotate(-20deg);
    opacity: .07;
}
.hero img {
    width: 96px;
    height: 96px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
    position: relative;
    z-index: 1;
}
.hero h1 em {
    font-style: normal;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hero p {
    max-width: 560px;
    margin: 0 auto 36px;
    font-size: 17px;
    color: rgba(255, 255, 255, .88);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
.badge-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.badge-row a img {
    height: 48px;
}

/* ── FEATURES ── */
.features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}
.features h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 48px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.feature-icon.red { background: rgba(229,56,79,.1); }
.feature-icon.green { background: rgba(22,163,74,.1); }
.feature-icon.blue { background: rgba(59,130,246,.1); }
.feature-text h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}
.feature-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── FAQ ── */
.faq {
    background: var(--surface);
    padding: 80px 24px;
}
.faq-inner {
    max-width: 720px;
    margin: 0 auto;
}
.faq h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 48px;
}
.faq-item {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: var(--bg);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color .2s;
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform .2s;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
    padding: 0 22px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── CTA ── */
.cta {
    text-align: center;
    padding: 80px 24px;
}
.cta h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 14px;
    transition: background .2s, transform .1s;
}
.btn-primary:hover {
    background: #C62839;
    transform: translateY(-1px);
}

/* ── SUPPORT MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover {
    color: var(--text-primary);
}
.modal-box h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}
.modal-box p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}
.btn-support {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 12px;
    transition: background .2s, transform .1s;
}
.btn-support:hover {
    background: #C62839;
    transform: translateY(-1px);
}

/* ── CONTENT (privacy, pagine testo) ── */
body.page-privacy {
    background: var(--surface);
}
.content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}
.content .last-updated {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}
.content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.content p, .content li {
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.8;
    margin-bottom: 12px;
}
.content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}
.content li { margin-bottom: 6px; }
.content a {
    color: var(--primary);
    text-decoration: none;
}
.content a:hover { text-decoration: underline; }
.content strong { color: var(--text-primary); }

/* ── ERROR PAGE (404) ── */
.page-error {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-error main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}
.error-container h1 {
    font-size: 96px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.error-container h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 12px;
}
.error-container p {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 16px;
}
.back-btn {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}
.back-btn:hover {
    background: #C62839;
}

/* ── FOOTER ── */
footer {
    background: #E5384F;
    position: relative;
    overflow: hidden;
    padding: 32px 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
}
footer::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 65px;
    background: #fff;
    opacity: .1;
    clip-path: ellipse(50% 38% at 50% 50%);
    top: -20px;
    left: 40px;
    transform: rotate(30deg);
    pointer-events: none;
}
footer::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 52px;
    background: #fff;
    opacity: .08;
    clip-path: ellipse(50% 38% at 50% 50%);
    bottom: -15px;
    right: 60px;
    transform: rotate(-25deg);
    pointer-events: none;
}
footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 12px;
}
footer a:hover { color: rgba(255, 255, 255, .6); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero { padding: 48px 20px 40px; }
    .features, .faq, .cta { padding: 48px 20px; }
    .content { padding: 32px 20px 60px; }
    .content h1 { font-size: 26px; }
    header nav { display: none; }
}
