/* Cartomanzia.love – foglio di stile unico (sostituisce Avada/Fusion Builder) */
:root {
  --blue: #009cde;
  --blue-dark: #145da0;
  --blue-899: #0c80b2;
  --pink: #ff5a79;
  --magenta: #ff00ff;
  --text: #343434;
  --header-bg: #141318;
  --footer-bg: #003660;
  --copy-bg: #090816;
  --font: Roboto, "Segoe UI", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --font-btn: "PT Sans", Roboto, "Segoe UI", Arial, sans-serif;
  --container: 1100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: #fff; }
img, video { max-width: 100%; height: auto; }
a { color: var(--blue); }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .8em; font-weight: 700; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 2000; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--header-bg); position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 84px; padding: 12px 20px; }
.logo img { display: block; width: 150px; height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a { color: #fff; text-decoration: none; font-size: 14px; padding: 10px 14px; display: block; border-radius: 3px; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a:focus, .main-nav a[aria-current="page"] { color: var(--pink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg); border-top: 1px solid #333; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 6px 0; }
  .main-nav a { padding: 14px 24px; border-bottom: 1px solid #2a2a2e; font-size: 15px; }
}

/* ---------- Sezioni e pulsanti ---------- */
.section { padding: 50px 0; }
.section-title { font-size: 2rem; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 20px; text-align: center; }
.section-sub { font-size: 1.4rem; text-align: center; margin-bottom: 20px; }
.lead { font-size: 1.2rem; color: var(--magenta); font-weight: 700; margin: 30px 0 14px; }
.note { font-size: .8rem; color: var(--text); margin: 10px 0 0; }
.small { font-size: .9rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-btn); font-size: 18px; line-height: 1.2; text-transform: uppercase; color: #fff !important; background: var(--blue); border: 0; border-radius: 2px; padding: 17px 40px; text-decoration: none; cursor: pointer; transition: filter .2s, transform .1s; box-shadow: 0 2px 2px rgba(0,0,0,.1); min-width: 240px; }
.btn:hover, .btn:focus { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-pink { background: var(--pink); }
.btn-dark { background: var(--blue-dark); }
.btn-899 { background: var(--blue-899); }
.btn-sm { font-size: 15px; padding: 12px 24px; min-width: 0; }
.btn-block { width: 100%; }
.phone-img { display: block; margin: 0 auto; max-width: 300px; }
.cards-img { display: block; margin: 0 auto; max-width: 300px; }

/* ---------- Home: hero ---------- */
.hero { background: #000; }
.hero a, .hero img { display: block; margin: 0 auto; }
.hero img { width: 100%; max-width: 1440px; }

/* ---------- Home: ricarica (2 colonne) ---------- */
.ricarica { padding: 0; }
.ricarica .cols { display: grid; grid-template-columns: 1fr 1fr; }
.ricarica .col { padding: 40px 24px 50px; text-align: center; }
.ricarica .col-web { background: linear-gradient(180deg, #ffeaee 0%, #ffa8b8 100%); }
.ricarica .col-tel { background: linear-gradient(180deg, #e5f6f9 0%, #06b4d3 100%); }
.ricarica .sub { font-size: 1rem; margin-bottom: 20px; }
.ricarica .big-sub { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.ricarica .btn-wrap { margin-top: 26px; }
@media (max-width: 900px) { .ricarica .cols { grid-template-columns: 1fr; } }

/* ---------- Home: sezione nera ---------- */
.about { background: radial-gradient(circle at center top, #2b2b2b 0%, #000 100%); color: #fff; text-align: center; padding: 50px 0 40px; }
.about img { max-width: 280px; }
.about h2 { font-size: 1.8rem; color: #f4f4f4; margin: 20px 0 16px; }
.about p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 1em; }

/* ---------- Home: appuntamenti ---------- */
.appuntamenti { background: linear-gradient(180deg, #fff 0%, #f6f6f6 100%); text-align: center; }
.appuntamenti h2 { color: var(--pink); font-size: 2rem; text-transform: uppercase; display: inline-block; border-bottom: 2px solid var(--pink); padding-bottom: 6px; }
.appuntamenti h3 { font-size: 1.4rem; }

/* ---------- Operatrici in tempo reale ---------- */
.live { text-align: center; }
.live h2 { font-size: 1.2rem; color: #424242; text-transform: uppercase; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; background: #f4f4f4; border-radius: 6px; padding: 8px 16px; font-size: .95rem; margin-bottom: 18px; }
.legend b { margin-right: 4px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.dot-libera { background: #2fa84f; }
.dot-occupata { background: #e53935; }
.dot-pausa { background: #f5a623; }
.ops-status { font-size: .85rem; color: #666; margin-bottom: 12px; min-height: 1.2em; }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; max-width: 760px; margin: 0 auto; list-style: none; padding: 0; }
.op { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; padding: 10px 12px; text-align: left; box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: transform .3s, opacity .3s; }
.op.flash { animation: opflash .9s ease; }
@keyframes opflash { 0% { background: #fff8c4; } 100% { background: #fff; } }
.op .heart { width: 22px; height: 22px; flex: none; }
.op-libera .heart { color: #2fa84f; } .op-occupata .heart { color: #e53935; } .op-pausa .heart { color: #f5a623; } .op-altro .heart { color: #999; }
.op-libera .heart { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.op .name { font-weight: 700; font-size: .95rem; }
.op .code { font-size: .8rem; color: #777; line-height: 1.3; }
.op .state { font-size: .72rem; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.op-libera .state { color: #2fa84f; } .op-occupata .state { color: #e53935; } .op-pausa .state { color: #f5a623; }
.ops-empty { color: #777; padding: 20px; }

/* ---------- Home: iscriviti ---------- */
.promo { background: linear-gradient(180deg, #23b4ed 10%, #cbf2f4 100%); text-align: center; }
.promo h2 { font-size: 1.4rem; color: #000; text-transform: uppercase; }
.promo video { max-width: 400px; width: 100%; display: block; margin: 0 auto 30px; background: #000; border-radius: 4px; }

/* ---------- Home: credito telefonico ---------- */
.credito { background: linear-gradient(180deg, #e6dd5a 0%, #f6f1c5 100%); text-align: center; }
.credito h2 { font-size: 1.4rem; color: #000; text-transform: uppercase; margin-bottom: 8px; }
.credito .red { color: #ff0000; font-weight: 700; font-size: 1.2rem; margin-bottom: 20px; }
.credito .red strong { font-size: 1.4rem; display: block; }

/* ---------- Share ---------- */
.share-box { padding: 60px 0 50px; text-align: center; color: #eee; }
.share-title { font-size: 1rem; font-weight: 400; margin-bottom: 20px; }
.share-icons { display: flex; justify-content: center; gap: 200px; }
.share-icons a { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.share-fb { background: #3b5998; } .share-wa { background: #77e878; }
@media (max-width: 600px) { .share-icons { gap: 60px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #ddd; font-size: .8rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding: 43px 20px 40px; }
.footer-col img { width: 170px; height: auto; display: block; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu li { border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-menu a { color: #ddd; text-decoration: none; display: block; padding: 8px 0 8px 14px; position: relative; font-size: .9rem; }
.footer-menu a::before { content: "›"; position: absolute; left: 0; top: 7px; }
.footer-menu a:hover { color: #fff; }
.footer-text p { color: #ddd; }
.footer-copy { background: var(--copy-bg); color: #bbb; padding: 18px 0; text-align: center; }
.footer-copy a { color: #ddd; }
.footer-legal { background: #fff; padding: 8px 0; text-align: center; font-size: .75rem; }
.footer-legal a { color: #333; margin: 0 8px; text-decoration: none; font-weight: 700; }
@media (max-width: 800px) { .footer-cols { grid-template-columns: 1fr; gap: 24px; } }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 4px; background: rgba(0,0,0,.55); color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 900; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Pagine interne ---------- */
.page-hero { text-align: center; padding: 50px 0 40px; }
.page-hero h1 { font-size: 2rem; color: var(--pink); text-transform: uppercase; display: inline-block; border-bottom: 2px solid var(--pink); padding-bottom: 6px; }
.promo2 { background: radial-gradient(circle at center top, #dbcd11 0%, #ede1a8 100%); text-align: center; padding: 50px 0; }
.promo2 h1 { font-size: 2rem; color: #404040; }
.promo2 h1 span { display: block; font-size: 2.4rem; }
.promo2 .price { font-size: 2.4rem; color: var(--blue); font-weight: 700; margin: 0 0 16px; }
.app-page { background: rgba(164,213,221,.19); text-align: center; padding-bottom: 40px; }
.app-page h1 { font-size: 1.8rem; color: var(--pink); text-transform: uppercase; display: inline-block; border-bottom: 2px solid var(--pink); padding-bottom: 6px; }
.app-page h2 { font-size: 1.2rem; color: #185dc4; text-transform: uppercase; }
.app-page .info { max-width: 820px; margin: 0 auto; }
.app-page .info p { margin-bottom: 1.2em; }
.app-page .choose { font-size: 1.4rem; font-weight: 700; color: #323232; text-transform: uppercase; margin: 30px 0 0; }
.app-cc { background: #fff7f8; text-align: center; padding: 30px 0; }
.app-cc h2 { font-size: 1.2rem; color: #e84548; text-transform: uppercase; }
.app-cc .cards-img { max-width: 320px; margin-bottom: 20px; }
.contact-page { background: #f7eaea; padding: 50px 0; }
.contact-page h1 { font-size: 2rem; color: #e71d60; text-align: center; font-weight: 400; }
.contact-page .intro { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.contact-page .intro .sub { font-size: 1.2rem; color: #222; }
.lavora-page { padding: 50px 0; }
.lavora-page h1 { font-size: 2rem; color: var(--pink); text-align: center; }
.lavora-page .intro { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.lavora-page .intro .sub { font-size: 1.3rem; font-weight: 700; }

/* ---------- Form ---------- */
.form { max-width: 560px; margin: 0 auto; }
.form label { display: block; margin-bottom: 14px; font-size: .9rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d2d2d2; border-radius: 3px; font: inherit; background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.form .check input { margin-top: 4px; flex: none; }
.form .actions { text-align: center; margin-top: 20px; }
.form .hp { position: absolute; left: -9999px; top: -9999px; }
.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 4px; display: none; }
.form-msg.ok { display: block; background: #e1f6e5; color: #1b5e20; border: 1px solid #b8e4c1; }
.form-msg.err { display: block; background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c3; }

/* ---------- Pagine legali ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 40px 20px 60px; }
.legal h1 { font-size: 1.9rem; color: var(--pink); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; color: #222; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1em 0; }
.legal th, .legal td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }
.legal th { background: #f4f4f4; }
.legal .meta { color: #777; font-size: .85rem; }

/* ---------- Pagina minuti gratis ---------- */
.mg-hero { background: linear-gradient(180deg, #1a1a2e 0%, #4a1942 100%); color: #f4f4f4; text-align: center; padding: 30px 20px; }
.mg-hero img { width: 300px; }
.mg-hero h1 { font-size: 1.6rem; font-weight: 400; margin: 16px 0 0; }
.mg-body { text-align: center; padding: 30px 20px; }
.mg-body .intro { color: #e94cbf; margin-bottom: 24px; }
.mg-form { max-width: 420px; margin: 0 auto; }
.mg-form .lbl { color: #ff0000; font-weight: 700; display: block; margin: 12px 0 4px; font-size: .9rem; }
.mg-form input[type=tel] { width: 100%; max-width: 280px; padding: 10px; border: 1px solid #ccc; border-radius: 3px; font: inherit; text-align: center; }
.mg-form .radios { margin: 8px 0 20px; }
.mg-form .radios label { margin: 0 8px; }
.mg-body .omaggio { color: #e94cbf; font-weight: 700; margin-top: 30px; }
.mg-body .omaggio-txt { font-size: .9rem; max-width: 620px; margin: 0 auto 20px; }
.mg-body .rates { font-size: .75rem; color: #333; max-width: 640px; margin: 0 auto 30px; }
.mg-footer { background: #f2e8f1; text-align: center; padding: 24px 20px; font-size: .8rem; color: #333; }

/* ---------- Cookie banner: nero, testo bianco, pulsanti blu ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000; background: #000; color: #fff; box-shadow: 0 -4px 24px rgba(0,0,0,.5); font-size: .92rem; line-height: 1.45; }
.cookie-banner[hidden] { display: none; }
.cb-inner { max-width: 1100px; margin: 0 auto; padding: 18px 20px 16px; }
.cookie-banner h2 { font-size: 1.05rem; margin: 0 0 8px; color: #fff; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner a { color: #8fd3ff; text-decoration: underline; }
.cb-prefs { border-top: 1px solid #333; border-bottom: 1px solid #333; padding: 10px 0; margin-bottom: 12px; }
.cb-cat { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.cb-cat input { width: 18px; height: 18px; margin-top: 2px; accent-color: #0d6efd; flex: none; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cb-btn { background: #0d6efd; color: #fff; border: 2px solid #0d6efd; border-radius: 6px; padding: 10px 22px; font: inherit; font-weight: 700; cursor: pointer; min-width: 140px; transition: background .2s; }
.cb-btn:hover, .cb-btn:focus { background: #0b5ed7; border-color: #0b5ed7; }
.cb-btn-outline { background: transparent; }
.cb-btn-outline:hover, .cb-btn-outline:focus { background: #0d6efd; }
@media (max-width: 600px) { .cb-actions { flex-direction: column; } .cb-btn { width: 100%; } .cookie-banner { max-height: 85vh; overflow: auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
