:root {
    --green:#198754;
    --green2:#20a464;
    --mint:#eaf7ef;
    --ink:#17352a;
    --muted:#63776d;
    --white:#fff;
    --line:#d9e9df;
    --bg:#f6faf7;
    --shadow:0 18px 60px rgba(25,135,84,.12);
}
* {
    box-sizing:border-box;
}
html {
    scroll-behavior:smooth;
}
body {
    margin:0;
    font-family:Inter,Segoe UI,Arial,sans-serif;
    color:var(--ink);
    background:var(--bg);
    line-height:1.65;
}
a {
    color:inherit;
}
.container {
    width:min(1120px,calc(100% - 32px));
    margin:auto;
}
/* HEADER */
.site-header {
    position:sticky;
    top:0;
    z-index:20;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(12px);
    border-bottom:1px solid var(--line);
}
.nav-wrap {
    min-height:74px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}
.brand {
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:800;
    text-decoration:none;
}
.brand-mark {
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    border-radius:12px;
    background:linear-gradient(135deg,var(--green),var(--green2));
    color:#fff;
}
.nav-links {
    display:flex;
    align-items:center;
    gap:24px;
}
.nav-links a {
    text-decoration:none;
    font-weight:650;
}
.nav-toggle {
    display:none;
    border:0;
    background:transparent;
    font-size:26px;
}
/* PULSANTI */
.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:999px;
    background:linear-gradient(135deg,var(--green2),var(--green));
    color:#fff;
    text-decoration:none;
    font-weight:800;
    padding:15px 25px;
    cursor:pointer;
    box-shadow:0 12px 30px rgba(32,164,100,.24);
}
.btn:hover {
    transform:translateY(-1px);
}
.btn-small {
    padding:10px 18px;
}
.btn-light {
    background:#fff;
    color:var(--green);
    box-shadow:none;
}
.btn-secondary {
    background:#eaf7ef;
    color:#198754;
    box-shadow:none;
}
/* HERO HOME */
.hero {
    padding:92px 0 74px;
    background:radial-gradient(circle at 90% 10%,#d8f1e2,transparent 34%),linear-gradient(160deg,#f8fcf9,#eaf7ef);
}
.hero-grid {
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:58px;
    align-items:center;
}
.eyebrow {
    display:inline-block;
    padding:7px 13px;
    border-radius:999px;
    background:#e2f4e9;
    color:var(--green);
    font-size:13px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.hero h1 {
    font-size:clamp(42px,6vw,72px);
    line-height:1.03;
    margin:18px 0;
}
.hero p {
    font-size:20px;
    color:var(--muted);
    max-width:720px;
}
.hero-actions {
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:28px;
}
.trust-row {
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    margin-top:25px;
    font-size:14px;
    font-weight:700;
}
/* CARD DIGITALE */
.digital-card {
    background:linear-gradient(145deg,#12663d,#198754);
    color:white;
    border-radius:28px;
    padding:30px;
    box-shadow:var(--shadow);
    transform:rotate(2deg);
    min-height:370px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}
.digital-card .code {
    font-size:34px;
    letter-spacing:5px;
    font-weight:900;
}
.qr-demo {
    width:128px;
    height:128px;
    background:repeating-conic-gradient(#fff 0 25%,transparent 0 50%) 50%/18px 18px;
    border:10px solid #fff;
    border-radius:12px;
}
/* SEZIONI */
.section {
    padding:82px 0;
}
.section-title {
    text-align:center;
    max-width:760px;
    margin:0 auto 45px;
}
.section-title h2 {
    font-size:clamp(32px,4vw,48px);
    margin:0 0 12px;
}
.section-title p {
    color:var(--muted);
    font-size:18px;
}
.grid-3 {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}
/* FEATURE */
.feature {
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    padding:28px;
    box-shadow:0 8px 30px rgba(25,135,84,.06);
}
.feature .icon {
    width:48px;
    height:48px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:var(--mint);
    font-size:24px;
}
.feature h3 {
    font-size:22px;
    margin:18px 0 8px;
}
.feature p {
    margin:0;
    color:var(--muted);
}
/* BANDA VERDE */
.band {
    background:var(--green);
    color:#fff;
}
.band .feature {
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.18);
    box-shadow:none;
}
.band .feature p {
    color:#ddf3e6;
}
/* CTA */
.cta {
    padding:70px 0;
}
.cta-box {
    background:linear-gradient(135deg,#198754,#28a96b);
    border-radius:30px;
    padding:50px;
    color:#fff;
    display:flex;
    justify-content:space-between;
    gap:30px;
    align-items:center;
}
.cta-box h2 {
    font-size:38px;
    margin:0;
}
/* PAGE HERO */
.page-hero {
    padding:70px 0 35px;
    text-align:center;
}
.page-hero h1 {
    font-size:clamp(34px,5vw,54px);
    margin:0 0 12px;
}
.page-hero p {
    color:var(--muted);
    font-size:18px;
}
/* FORM */
.form-card {
    max-width:700px;
    margin:20px auto 80px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:26px;
    padding:34px;
    box-shadow:var(--shadow);
}
.form-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}
.field {
    display:flex;
    flex-direction:column;
    gap:7px;
}
.field.full {
    grid-column:1/-1;
}
.field label {
    font-weight:800;
}
.field input,
.field textarea {
    width:100%;
    border:1px solid #cfe3d7;
    border-radius:14px;
    padding:14px 15px;
    font:inherit;
    outline:none;
    background:#fbfefc;
}
.field input:focus,
.field textarea:focus {
    border-color:var(--green2);
    box-shadow:0 0 0 4px rgba(32,164,100,.12);
}
.check {
    display:flex;
    gap:10px;
    align-items:flex-start;
    margin:18px 0;
}
/* ALERT */
.alert {
    padding:14px 16px;
    border-radius:14px;
    margin-bottom:18px;
}
.alert-error {
    background:#fff0f0;
    color:#9b2020;
}
.alert-success {
    background:#eaf7ef;
    color:#198754;
}
/* CONTENT CARD */
.content-card {
    max-width:900px;
    margin:20px auto 80px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;
    padding:36px;
}
.content-card h2 {
    margin-top:30px;
}
/* CARD CLIENTE */
.card-page {
    min-height:calc(100vh - 74px);
    display:grid;
    place-items:center;
    padding:35px 16px;
    background:radial-gradient(circle at top right,#d8f1e2,transparent 35%),#eef8f2;
}
.wallet-card {
    width:min(92vw,460px);
    background:linear-gradient(150deg,#12663d,#198754);
    color:#fff;
    border-radius:30px;
    padding:30px;
    box-shadow:0 28px 80px rgba(18,102,61,.28);
    text-align:center;
}
.wallet-card .owner {
    font-size:24px;
    font-weight:800;
    margin-top:18px;
}
.wallet-card .number {
    font-size:34px;
    font-weight:900;
    letter-spacing:5px;
    margin:14px 0;
}
.wallet-card img {
    width:220px;
    max-width:70%;
    background:#fff;
    padding:12px;
    border-radius:18px;
}
/* FOOTER */
.site-footer {
    background:#103d2a;
    color:#e0f3e7;
    padding:45px 0 25px;
}
.footer-grid {
    display:flex;
    justify-content:space-between;
    gap:30px;
}
.footer-links {
    display:flex;
    flex-wrap:wrap;
    gap:18px;
}
.footer-links a {
    text-decoration:none;
}
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 25px;
    padding-top: 20px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0.85;
}

.copyright a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.copyright a:hover {
    opacity: 1;
}

.legal-info {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* TABELLE */
.table-wrap {
    overflow:auto;
}
.data-table {
    width:100%;
    border-collapse:collapse;
}
.data-table th,
.data-table td {
    padding:13px;
    border-bottom:1px solid var(--line);
    text-align:left;
    white-space:nowrap;
}
.badge {
    display:inline-block;
    padding:5px 10px;
    border-radius:999px;
    background:var(--mint);
    font-size:12px;
    font-weight:800;
}
/* ADMIN */
.admin-nav {
    display:flex;
    gap:15px;
    margin-bottom:25px;
}
.admin-nav a {
    text-decoration:none;
    font-weight:800;
}
.stats {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-bottom:30px;
}
.stat {
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    padding:24px;
}
.stat strong {
    display:block;
    font-size:34px;
}

/* DASHBOARD CLIENTE (DESKTOP NATIVO) */
.login-box {
    max-width:520px;
}
.dashboard-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    align-items:start;
}
.profile-list {
    display:grid;
    gap:14px;
}
.profile-item {
    padding:15px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fbfefc;
}
.profile-item small {
    display:block;
    color:var(--muted);
    font-weight:700;
}
.profile-item strong {
    font-size:18px;
    word-break:break-word;
}
.dashboard-card .wallet-card {
    width:100%;
    max-width:430px;
    margin:auto;
}
.notice {
    padding:14px 16px;
    border-radius:14px;
    background:#eaf7ef;
    color:#198754;
    margin-bottom:18px;
}
.action-row {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
}
.action-row form {
    margin:0;
    display:inline-flex;
}
.action-icon {
    width:38px;
    height:38px;
    flex:0 0 38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid #cfe3d7;
    border-radius:10px;
    background:#fff;
    color:#198754;
    cursor:pointer;
    padding:0;
    transition:.15s ease;
}
.action-icon:hover {
    background:#eaf7ef;
    border-color:#9fd2b4;
    transform:translateY(-1px);
}
.action-icon svg {
    width:19px;
    height:19px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.action-mail {
    color:#198754;
}
.action-delete {
    color:#b42318;
    border-color:#f0c8c5;
}
.action-delete:hover {
    background:#fff1f0;
    border-color:#e7aaa5;
}

/* LOGO */
.site-logo {
    display:block;
    width:190px;
    height:62px;
    object-fit:contain;
    object-position:left center;
}
.hero-logo {
    display:block;
    width:min(330px,75vw);
    height:auto;
    max-height:210px;
    object-fit:contain;
    object-position:left center;
    margin:0 0 18px;
}
img.hero-logo {
    width:180px !important;
    max-width:180px !important;
    height:auto !important;
    max-height:none !important;
}

/* AREA ESERCENTI */
.merchant-section {
    padding:38px 0 12px;
}
.merchant-box {
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:82px 1fr 260px;
    align-items:center;
    gap:26px;
    padding:30px 34px;
    background:linear-gradient(135deg,#fff 0%,#f2faf5 100%);
    border:1px solid var(--line);
    border-radius:28px;
    box-shadow:0 12px 40px rgba(25,135,84,.09);
}
.merchant-box::after {
    content:"";
    position:absolute;
    width:200px;
    height:200px;
    right:-100px;
    top:-115px;
    border-radius:50%;
    background:rgba(32,164,100,.07);
    pointer-events:none;
}
.merchant-icon {
    position:relative;
    z-index:2;
    width:74px;
    height:74px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--mint);
    color:var(--green);
    font-size:32px;
    box-shadow:0 8px 24px rgba(25,135,84,.12);
}
.merchant-content {
    position:relative;
    z-index:2;
}
.merchant-label {
    display:inline-block;
    margin-bottom:3px;
    color:var(--green);
    font-size:12px;
    font-weight:900;
    letter-spacing:.1em;
}
.merchant-content h2 {
    margin:0 0 6px;
    font-size:30px;
    line-height:1.15;
}
.merchant-content p {
    max-width:620px;
    margin:0;
    color:var(--muted);
    font-size:15px;
    line-height:1.5;
}
.merchant-info {
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    margin-top:12px;
    color:var(--green);
    font-size:13px;
    font-weight:750;
}
.merchant-info span {
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.merchant-action {
    position:relative;
    z-index:2;
    display:flex;
    justify-content:flex-end;
}
.btn-poster-download {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:#198754;
    color:#ffffff;
    text-decoration:none;
    padding:20px 22px;
    border-radius:20px;
    width:100%;
    text-align:center;
    transition:transform .2s ease, background-color .2s ease;
}
.btn-poster-download:hover {
    background:#146c43;
    transform:translateY(-2px);
}
.pdf-icon-badge {
    font-size:38px;
    margin-bottom:4px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.poster-text strong {
    display:block;
    font-size:16px;
    font-weight:800;
    line-height:1.2;
}
.poster-text small {
    display:block;
    font-size:12px;
    opacity:.85;
    margin-top:3px;
}

/* PRECISAZIONE E CARD GRATUITA */
.home-bottom-section {
    padding:10px 0 40px;
}
.home-bottom-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    align-items:stretch;
}
.home-note-card {
    min-height:180px;
    display:grid;
    grid-template-columns:64px 1fr;
    align-items:center;
    gap:20px;
    padding:28px 30px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:26px;
    box-shadow:0 8px 30px rgba(25,135,84,.06);
}
.home-note-icon {
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--mint);
    color:var(--green);
    font-size:26px;
}
.home-note-text h2 {
    margin:0 0 8px;
    font-size:23px;
    line-height:1.2;
}
.home-note-text p {
    margin:0;
    color:var(--muted);
    font-size:14px;
    line-height:1.55;
}
.home-cta-card {
    position:relative;
    overflow:hidden;
    min-height:180px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:30px 32px;
    background:linear-gradient(135deg,#198754,#28a96b);
    color:#fff;
    border-radius:26px;
    box-shadow:0 10px 30px rgba(25,135,84,.15);
}
.home-cta-card::after {
    content:"";
    position:absolute;
    width:150px;
    height:150px;
    right:-80px;
    bottom:-90px;
    border-radius:50%;
    background:rgba(255,255,255,.10);
    pointer-events:none;
}
.home-cta-text h2 {
    margin:0 0 6px;
    font-size:29px;
    line-height:1.15;
}
.home-cta-text p {
    margin:0;
    font-size:15px;
    opacity:.9;
}
.btn-pill-white {
    background:#ffffff;
    color:#198754;
    font-weight:800;
    font-size:15px;
    padding:12px 24px;
    border-radius:999px;
    text-decoration:none;
    white-space:nowrap;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
    transition:transform .2s ease;
    position:relative;
    z-index:2;
}
.btn-pill-white:hover {
    transform:translateY(-1px);
    background:#f8fbf9;
}

/* MEDIA QUERIES GENERALI (TABLET) */
@media(max-width:850px) {
    .hero-grid,
    .grid-3 {
        grid-template-columns:1fr;
    }
    .hero {
        padding-top:55px;
    }
    .digital-card {
        transform:none;
    }
    .cta-box {
        flex-direction:column;
        align-items:flex-start;
    }
    .nav-toggle {
        display:block;
    }
    .nav-links {
        display:none;
        position:absolute;
        top:74px;
        left:16px;
        right:16px;
        background:#fff;
        border:1px solid var(--line);
        border-radius:18px;
        padding:20px;
        box-shadow:var(--shadow);
        flex-direction:column;
        align-items:stretch;
    }
    .nav-links.open {
        display:flex;
    }
    .merchant-box {
        grid-template-columns:1fr;
        text-align:center;
    }
    .merchant-icon {
        margin:0 auto;
    }
    .merchant-info {
        justify-content:center;
    }
    .home-bottom-grid {
        grid-template-columns:1fr;
    }
}

/* MEDIA QUERIES DASHBOARD & MOBILE (SOLO SOTTO 768PX) */
@media(max-width:768px) {
    .dashboard-grid {
        grid-template-columns:1fr;
        gap:24px;
    }
    .action-row {
        flex-direction:column;
        width:100%;
    }
    .action-row .btn {
        width:100%;
        text-align:center;
        justify-content:center;
    }
}

/* SMARTPHONE (SOTTO 520PX) */
@media(max-width:520px) {
    .home-cta-card {
        flex-direction:column;
        align-items:flex-start;
    }
    .home-note-card {
        grid-template-columns:1fr;
        text-align:center;
    }
    .home-note-icon {
        margin:0 auto;
    }
    .copyright {
        flex-direction:column;
        text-align:center;
        justify-content:center;
    }
    .wallet-card img {
        max-width:180px;
        height:auto;
    }
}

.page-hero.privacy-hero h1 {
    font-size:clamp(28px,3.5vw,42px);
    white-space:nowrap;
}
@media(max-width:700px) {
    .page-hero.privacy-hero h1 {
        font-size:clamp(21px,5vw,30px);
        white-space:normal;
    }
}