/* Cartomanzia Promozionale - foglio di stile */

/* Variabili cromatiche */
:root {
    --plum: #39233f;
    --violet: #734674;
    --gold: #e5c38b;
    --ink: #302634;
    --muted: #66536c;
    --pale: #f5edf6;
    --line: #e4d8e5;
    --cream: #fffaf2;
}

/* Impostazioni generali */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font: 16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid #a56d29;
    outline-offset: 4px;
}

h1,h2,p {
    margin: 0 0 .75rem;
}

h1,h2 {
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem,4vw,3.3rem);
    letter-spacing: -.025em;
}

h2 {
    font-size: clamp(1.55rem,2.4vw,2rem);
    color: var(--plum);
}

.wrap {
    width: min(1160px,calc(100% - 40px));
    margin-inline: auto;
}

/* Header e navigazione */
.site-header {
    background: var(--plum);
    color: white;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    font-size: 1.15rem;
}

.brand-symbol {
    color: var(--gold);
    font-size: 2rem;
}

.brand strong {
    display: block;
    line-height: 1.1;
}

nav {
    display: flex;
    gap: 1.3rem;
    font-size: .88rem;
}

nav a {
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Hero */
.hero {
    background-color: #39233f;
    background-image: linear-gradient(90deg,rgba(37,20,43,.98) 0%,rgba(37,20,43,.91) 35%,rgba(37,20,43,.38) 69%,rgba(37,20,43,.05) 100%),url("../img/hero.webp");
    background-size: cover;
    background-position: center,right center;
    color: #fff;
}

.hero-inner {
    min-height: 365px;
    display: flex;
    align-items: center;
    padding-block: 42px;
}

.hero-copy {
    max-width: 570px;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 480px;
    color: #f5eaf5;
    font-size: 1.05rem;
}

.eyebrow {
    color: var(--gold);
    font-size: .83rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

/* Pulsanti e CTA */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.4rem;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: .65rem 1rem;
    background: var(--violet);
    color: #fff;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    line-height: 1.25;
}

.btn:hover {
    background: #59345d;
}

.btn.gold {
    background: var(--gold);
    color: var(--plum);
}

.btn.gold:hover {
    background: #f2d5a4;
}

.btn.outline {
    background: transparent;
    border-color: #e4cfe4;
}

.btn.pending {
    background: #eee7ef;
    color: #66536c;
    font-size: .85rem;
}

/* Sezioni e numerazioni telefoniche */
.section {
    padding-block: 36px;
}

.intro {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
}

.service {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    background: #fff;
}

.service.featured {
    background: var(--cream);
    border-color: #e7d6b7;
}

.service p {
    margin: 0;
    font-size: .9rem;
}

.label {
    font-size: .75rem !important;
    text-transform: uppercase;
    letter-spacing: .045em;
    font-weight: 750;
    color: var(--violet);
}

.number {
    font-weight: 800;
    font-size: clamp(1.3rem,2.05vw,1.8rem);
    color: var(--plum);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}

.number:hover {
    text-decoration: underline;
}

.service .price {
    font-size: 1.12rem;
    font-weight: 750;
    color: var(--violet);
}

.price small {
    font-size: .76rem;
    font-weight: 500;
    color: var(--muted);
}

.service .btn {
    width: 100%;
    margin-top: auto;
}

/* Circuiti di pagamento */
.cards {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin: .1rem 0 .4rem;
}

.cards span {
    border: 1px solid #ddd6df;
    border-radius: 3px;
    background: #fff;
    padding: 3px 4px;
    font-size: .66rem;
    font-weight: 800;
    line-height: 1.15;
}

.visa {
    color: #173b83;
}

.mc {
    color: #a63d22;
}

.amex {
    color: #17659b;
}

/* Sezione operatori online */
.tinted {
    background: var(--pale);
}

.queue {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    padding: 25px;
    text-align: center;
    color: var(--muted);
}

.queue p {
    margin: 0;
}

.queue iframe {
    border: 0;
    width: 100%;
    display: block;
    min-height: 0;
}

/* Ricariche e offerte */
.recharge {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--cream);
}

.recharge-image {
    min-height: 280px;
    background: #51334e url("../img/ricariche.webp") center/cover no-repeat;
}

.recharge-copy {
    padding: 28px;
}

.recharge-copy .number {
    display: inline-block;
    margin-bottom: .75rem;
}

.offers {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 7px;
    margin: 1.25rem 0;
}

.offers div {
    border: 1px solid #eadbc6;
    background: white;
    padding: 12px 4px;
    border-radius: 6px;
    text-align: center;
}

.offers strong,.offers span {
    display: block;
}

.offers strong {
    font-size: 1.5rem;
    color: var(--violet);
    line-height: 1.2;
}

.offers span {
    font-size: .82rem;
}

/* Servizio cortesia */
.support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.support p {
    margin: 0;
}

.draft-note {
    font-size: .78rem;
    color: var(--muted);
    margin-top: .8rem;
}

/* Footer */
footer {
    background: var(--plum);
    color: #fff;
    padding: 26px 0;
    font-size: .85rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-inner > div {
    width: 100%;
}

.footer-inner p {
    color: #e8dce9;
    margin: .4rem 0 0;
}

/* Regole responsive / preferenze utente */
@media (max-width: 1000px) {
    .services {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .number {
        font-size: 1.7rem;
    }

}

/* Regole responsive / preferenze utente */
@media (max-width: 680px) {
    .wrap {
        width: calc(100% - 28px);
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
        gap: .65rem;
    }

    nav {
        width: 100%;
        gap: 1rem;
        flex-wrap: wrap;
        font-size: .8rem;
    }

    .hero {
        background-image: linear-gradient(180deg,rgba(37,20,43,.08) 0%,rgba(37,20,43,.25) 25%,rgba(37,20,43,.95) 61%,#25142b 100%),url("../img/hero.webp");
        background-position: center,70% top;
        background-size: cover,auto 65%;
        background-repeat: no-repeat;
    }

    .hero-inner {
        min-height: 0;
        padding: 170px 0 30px;
        align-items: flex-end;
    }

    .hero-copy > p:not(.eyebrow) {
        font-size: .96rem;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .actions .btn {
        font-size: .86rem;
        padding: .65rem .4rem;
    }

    .section {
        padding-block: 26px;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service {
        padding: 17px;
    }

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

    .recharge-image {
        min-height: 185px;
    }

    .recharge-copy {
        padding: 18px;
    }

    .offers {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .support {
        display: block;
    }

    .support > div+div {
        margin-top: 1rem;
    }

}

/* Regole responsive / preferenze utente */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

}

/* Linea amore: variante cromatica dedicata */
.service.love {
    background: #fff1f5;
    border-color: #e7a9be;
}

.service.love .label,.service.love .price {
    color: #a32255;
}

.service.love .number {
    color: #831b45;
}

.service.love .btn {
    background: #b5265c;
    color: #fff;
}

.service.love a.btn:hover {
    background: #951b49;
}

.service.love .btn.pending {
    font-size: inherit;
    cursor: default;
}

/* Regole responsive / preferenze utente */
@media (max-width: 680px) {
    .recharge-image {
        min-height: 245px;
        background-position: center 25%;
    }

}
/* Tariffe: indicazioni IVA e popup riutilizzabile */
.price small {
    font-weight: 400;
    color: var(--ink);
}

.price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .65rem;
    width: 100%;
}

.tariff-details {
    position: relative;
    font-size: .78rem;
}

.tariff-details summary {
    cursor: pointer;
    color: var(--violet);
    list-style: none;
    text-decoration: underline;
    padding: .3rem 0;
}

.tariff-details summary::-webkit-details-marker {
    display: none;
}

.tariff-details summary:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
}

.tariff-popup {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    width: 160px;
    padding: 10px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 5px 18px #39233f26;
}

.tariff-popup table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.tariff-popup caption {
    font-weight: 700;
    margin-bottom: .35rem;
}

.tariff-popup th,
.tariff-popup td {
    padding: .25rem;
    border-bottom: 1px solid var(--line);
}

/* Servizio cortesia WhatsApp */
.whatsapp-section {
    background: #edf8f1;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    background: #167447;
    color: #fff;
    padding: .8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
}

.whatsapp-link:hover {
    background: #105b37;
}

.whatsapp-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.whatsapp-label {
    display: block;
    font-size: .8rem;
}

.whatsapp-link strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.2;
}

.whatsapp-contact .draft-note {
    margin-top: .4rem;
}


/* Impaginazione della pagina informativa */
.legal-page {
    max-width: 860px;
    padding-block: 3rem;
    overflow-wrap: anywhere;
}

.legal-page h1 {
    color: var(--plum);
    margin-bottom: 1rem;
}

.legal-page h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: .75rem;
}

.legal-page ul {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: .35rem;
}

.legal-page a:not(.btn) {
    color: var(--violet);
}

.legal-page .legal-date {
    color: var(--muted);
    font-size: .9rem;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .legal-page {
        padding-block: 2rem;
    }
}
