/*
Theme Name: LOT&SPOT WordPress Theme
Theme URI: https://lotnspot.it/
Author: LOT&SPOT
Description: Tema WordPress della landing LOT&SPOT, trasferita senza modifiche visive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: lotspot-wordpress-theme
*/

:root {
    --bg: #f1e6d8;
    --bg-soft: #f7efe4;
    --paper: #fff9f2;
    --accent: #ff7a21;
    --accent-strong: #df5f0f;
    --text: #1f1a16;
    --muted: #675749;
    --line: #e1cfbb;
    --ok-bg: #e8f6ea;
    --ok-text: #1f6a2d;
    --err-bg: #fde9e8;
    --err-text: #8f2c29;
    --shadow: 0 20px 40px rgba(38, 25, 12, 0.14);
    --radius: 22px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 122, 33, 0.16), transparent 24%),
        radial-gradient(circle at 10% 35%, rgba(255, 145, 70, 0.09), transparent 28%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 122, 33, 0.25);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.section {
    position: relative;
    padding: clamp(4.5rem, 7vw, 7rem) 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1));
}

.section-accent {
    background: linear-gradient(155deg, #20150d, #322014);
    color: #fff3e8;
}

.section-cta {
    padding-bottom: clamp(4rem, 6vw, 5.5rem);
}

.eyebrow {
    margin: 0 0 0.8rem;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    color: var(--accent);
}

h1,
h2,
h3 {
    font-family: "Sora", sans-serif;
    line-height: 1.18;
    margin: 0;
}

h1 {
    font-size: clamp(2.2rem, 4.2vw, 4rem);
}

h2 {
    font-size: clamp(1.6rem, 2.7vw, 2.55rem);
}

h3 {
    font-size: clamp(1.08rem, 1.35vw, 1.3rem);
}

p {
    margin: 0;
    color: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 25;
    backdrop-filter: blur(10px);
    background: rgba(241, 230, 216, 0.78);
    border-bottom: 1px solid rgba(153, 121, 90, 0.14);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-mark {
    width: 48px;
    color: var(--accent);
}

.brand-mark img {
    width: 100%;
    height: auto;
}

.brand-text {
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
}

.brand-text span {
    color: var(--accent);
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
}

.site-nav a {
    font-weight: 700;
    color: #322820;
    transition: color 220ms ease;
}

.site-nav a:not(.btn):hover {
    color: var(--accent);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(60, 45, 33, 0.28);
    border-radius: 12px;
    background: rgba(255, 249, 242, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #322820;
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.2rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Sora", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 10px 22px rgba(223, 95, 15, 0.34);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(223, 95, 15, 0.4);
}

.btn-small {
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
}

.btn-ghost {
    color: #3e3128;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 0 0 1px rgba(69, 51, 36, 0.2);
}

.btn-full {
    width: 100%;
}

.hero {
    overflow: clip;
    padding-top: clamp(4.3rem, 8vw, 7rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.8rem, 4vw, 3.3rem);
    align-items: center;
}

.hero-copy h1 span {
    color: var(--accent);
}

.lead {
    margin-top: 1.2rem;
    max-width: 62ch;
    font-size: clamp(1rem, 1.2vw, 1.16rem);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(113, 88, 67, 0.18);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #584839;
}

.hero-visual {
    position: relative;
}

.map-card {
    background: linear-gradient(160deg, #fff7ee, #f6e8d8);
    border: 1px solid rgba(171, 129, 91, 0.35);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.map-header span {
    font-size: 0.86rem;
    color: #6f5a47;
    font-weight: 700;
}

.map-header strong {
    font-size: 0.9rem;
    color: #291e16;
}

/* ── Leaflet map container ── */
#lotspot-map {
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    /* forza Leaflet a calcolare correttamente le dimensioni */
    display: block;
    width: 100%;
}

/* Custom pin labels on the Leaflet map */
.lotspot-pin {
    background: transparent !important;
    border: none !important;
}

.pin-label {
    background: linear-gradient(145deg, #2a1d13, #4d3120);
    color: #fff;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(28, 17, 10, 0.45);
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(125, 89, 59, 0.18);
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    flex-shrink: 0;
}

.map-footer div {
    display: flex;
    flex-direction: column;
}

.map-footer small {
    color: #7b624f;
    font-size: 0.7rem;
}

.map-footer strong {
    color: #23170f;
    font-family: "Sora", sans-serif;
    font-size: 0.9rem;
}

.split {
    display: grid;
    grid-template-columns: 1fr 0.88fr;
    gap: clamp(1.4rem, 3vw, 2.4rem);
}

.split-copy p {
    margin-top: 1rem;
    max-width: 62ch;
}

.split-panel {
    background: #fffaf3;
    border: 1px solid rgba(102, 68, 41, 0.17);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.2rem, 2vw, 1.8rem);
}

.split-panel h3 {
    margin-bottom: 1rem;
}

.split-panel ul {
    margin: 0;
    padding: 0 0 0 1rem;
    color: #5a4b3c;
}

.split-panel li + li {
    margin-top: 0.58rem;
}

.contact-mini {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(116, 83, 55, 0.2);
    display: grid;
    gap: 0.3rem;
}

.contact-mini a {
    font-weight: 800;
    color: var(--accent);
}

/* ── "Perché ci scelgono" panel migliorato ── */
.why-grid {
    display: grid;
    gap: 1.1rem;
    margin-top: 0.6rem;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.why-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 122, 33, 0.13);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--accent);
}

.why-item strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.why-item p {
    font-size: 0.87rem;
    line-height: 1.4;
    color: #6a5444;
    margin: 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(107, 77, 49, 0.18);
    border-radius: 18px;
    padding: 1.15rem;
    transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.feature-card p {
    margin-top: 0.45rem;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(223, 95, 15, 0.36);
    background: #fff8ee;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.timeline-item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.2rem;
}

.timeline-item span {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 122, 33, 0.2);
    color: #ffd5b6;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.timeline-item p {
    margin-top: 0.45rem;
    color: #ebceb5;
}

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

.stat-card {
    background: #fffaf4;
    border: 1px solid rgba(99, 73, 49, 0.17);
    border-radius: 18px;
    padding: 1.1rem;
}

.stat-number {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.5rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-card p:last-child {
    margin-top: 0.55rem;
    font-size: 0.95rem;
}

/* ── Prima & Dopo (ex Testimonianze) ── */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.compare-card {
    border-radius: 20px;
    padding: clamp(1.2rem, 2vw, 1.8rem);
    border: 1px solid;
}

.compare-before {
    background: #fff4f3;
    border-color: rgba(180, 55, 45, 0.18);
}

.compare-after {
    background: #f3faf4;
    border-color: rgba(38, 120, 55, 0.2);
}

.compare-label {
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.compare-before .compare-label {
    color: #b03a32;
}

.compare-after .compare-label {
    color: #27773a;
}

.compare-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.compare-card li {
    font-size: 0.95rem;
    color: #4a3d35;
    padding-left: 0.1rem;
    line-height: 1.45;
}

/* ── Instagram CTA button ── */
.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.6rem;
    background: linear-gradient(135deg, #833ab4, #fd1d1d 50%, #fcb045);
    color: #fff;
    border: none;
    padding: 0.78rem 1.4rem;
    border-radius: 999px;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease;
    box-shadow: 0 8px 22px rgba(131, 58, 180, 0.28);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(131, 58, 180, 0.38);
}

.faq-list {
    display: grid;
    gap: 0.85rem;
}

.faq-item {
    border: 1px solid rgba(104, 77, 52, 0.2);
    border-radius: 16px;
    background: #fffaf4;
}

.faq-question {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #33261c;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 1.1rem;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms ease;
}

.faq-answer p {
    padding: 0 1.1rem 1rem;
}

.faq-item.is-open .faq-question {
    color: var(--accent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.2rem, 2.8vw, 2rem);
}

.contact-copy p {
    margin-top: 1rem;
}

.check-list {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    color: #4f3f31;
}

.check-list li + li {
    margin-top: 0.6rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

.contact-card {
    border: 1px solid rgba(111, 81, 52, 0.2);
    border-radius: var(--radius);
    background: #fff9f2;
    box-shadow: var(--shadow);
    padding: clamp(1.1rem, 2vw, 1.6rem);
}

.flash {
    border-radius: 14px;
    padding: 0.78rem 0.9rem;
    margin-bottom: 1rem;
}

.flash strong {
    display: block;
    margin-bottom: 0.2rem;
}

.flash-success {
    background: var(--ok-bg);
    color: var(--ok-text);
}

.flash-success p {
    color: inherit;
}

.flash-error {
    background: var(--err-bg);
    color: var(--err-text);
}

.flash-error p {
    color: inherit;
}

.form-row {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #412f22;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #ccb092;
    border-radius: 12px;
    background: #fffcf8;
    color: #2b2017;
    padding: 0.72rem 0.82rem;
    font: inherit;
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

textarea {
    resize: vertical;
    min-height: 130px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 122, 33, 0.2);
}

.form-row small {
    color: #836650;
    font-size: 0.78rem;
}

.form-note {
    margin-top: 0.72rem;
    font-size: 0.82rem;
}

.form-note a {
    color: var(--accent);
    font-weight: 700;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}

.site-footer {
    padding: 2.2rem 0;
    border-top: 1px solid rgba(123, 94, 65, 0.2);
}

.site-notice {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    width: min(360px, calc(100vw - 2.2rem));
    background: linear-gradient(160deg, #fff9f2, #f7ecdd);
    border: 1px solid rgba(171, 129, 91, 0.34);
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(38, 25, 12, 0.18);
    padding: 0.85rem 2.5rem 0.85rem 0.95rem;
    z-index: 60;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease;
}

.site-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-notice p {
    margin: 0;
    color: #5b493b;
    font-size: 0.86rem;
    line-height: 1.42;
}

.site-notice strong {
    font-family: "Sora", sans-serif;
    color: #2d2016;
    font-size: 0.86rem;
}

.site-notice a {
    color: var(--accent);
    font-weight: 700;
}

.site-notice-close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(99, 73, 49, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #5d4a3b;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-notice-close:hover {
    background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
    display: grid;
    gap: 0.55rem;
}

.footer-inner strong {
    font-family: "Sora", sans-serif;
}

.footer-inner a {
    font-weight: 700;
    color: #5a4430;
    margin-right: 1rem;
}

.footer-inner p {
    margin: 0;
    font-size: 0.92rem;
}

.cursor-glow {
    position: fixed;
    width: 260px;
    height: 260px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 33, 0.18), transparent 66%);
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 2;
    transition: opacity 240ms ease;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #ffae68);
    z-index: 40;
}

.hero-orb {
    position: absolute;
    filter: blur(34px);
    opacity: 0.38;
    border-radius: 50%;
    pointer-events: none;
}

.hero-orb-a {
    width: 280px;
    height: 280px;
    background: #ff9c57;
    top: -100px;
    left: -80px;
    animation: driftA 13s ease-in-out infinite;
}

.hero-orb-b {
    width: 230px;
    height: 230px;
    background: #db6220;
    bottom: -70px;
    right: -60px;
    animation: driftB 14s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

.site-nav.open {
    display: flex;
}

body.nav-open {
    overflow: hidden;
}

.policy-layout {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.policy-main {
    padding: clamp(3rem, 5vw, 4rem) 0;
}

.policy-paper {
    max-width: 860px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid rgba(109, 79, 51, 0.2);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: clamp(1.2rem, 2.5vw, 2rem);
}

.policy-paper h1 {
    margin-bottom: 1rem;
}

.policy-paper h2 {
    margin: 1.4rem 0 0.6rem;
    font-size: 1.2rem;
}

.policy-paper ul {
    margin: 0;
    padding-left: 1.1rem;
}

@keyframes bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes pulsePath {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.52;
        transform: scale(1.02);
    }
}

@keyframes driftA {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(26px, -18px);
    }
}

@keyframes driftB {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-28px, 14px);
    }
}

@media (max-width: 1040px) {
    .hero-grid,
    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 800px) {
    .site-nav {
        position: fixed;
        inset: 78px 1rem auto 1rem;
        background: #fff9f2;
        border: 1px solid rgba(105, 78, 53, 0.2);
        border-radius: 15px;
        box-shadow: var(--shadow);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.9rem;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 680px) {
    .feature-grid,
    .timeline,
    .stats-grid,
    .compare-grid {
        grid-template-columns: 1fr;
    }

    #lotspot-map {
        height: 240px;
    }

    .why-grid {
        gap: 0.85rem;
    }

    .site-notice {
        right: 0.75rem;
        bottom: 0.75rem;
        width: calc(100vw - 1.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
