/* Self-hosted fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/Inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../fonts/Outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../fonts/Outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================
   MOBEE.IT - Main Stylesheet
   Multi-page site replicating production design
   ============================================ */

/* === Variables === */
:root {
    --color-primary: #0DCC71;
    --color-primary-light: #2ee98e;
    --color-primary-dark: #0a9e57;
    --color-primary-bg: #e6faf0;

    --color-bg: #FFFFFF;
    --color-bg-card: #F8FAFC;
    --color-bg-footer: #f5f5f5;
    --color-text: #1E293B;
    --color-text-muted: #64748B;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-border: #E2E8F0;
    --color-shadow: rgba(0, 0, 0, 0.06);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1140px;
    --header-height: 70px;
    --section-spacing: 80px;
    --banner-height: 80px;
}

/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin-bottom: 1rem; }

.text-green { color: var(--color-primary); }
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-text-muted); }

/* === Layout === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: var(--section-spacing) 0;
}

/* === Image Placeholders === */
.img-placeholder {
    background: linear-gradient(135deg, #e0f5ea 0%, #b8e8d0 100%);
    border: 2px dashed var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    min-height: 200px;
}

.img-placeholder-circle {
    background: linear-gradient(135deg, #e0f5ea 0%, #b8e8d0 100%);
    border: 2px dashed var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    width: 280px;
    height: 280px;
}

.img-placeholder-logo {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 8px var(--color-shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
}

/* Elementi del drawer mobile — nascosti su desktop.
   Nota: .nav .nav-drawer-cta ha specificità (0,2,1) per vincere su .btn
   (0,1,0) che imposta display: inline-flex. */
.nav-drawer-header,
.nav-drawer-close {
    display: none;
}

.nav .nav-drawer-cta {
    display: none;
}

.nav-backdrop {
    display: none;
}

.nav-list {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-list a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-primary);
}

.header-cta {
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    z-index: 1003;
    width: 36px;
    height: 36px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.menu-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.menu-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.menu-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(13, 204, 113, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(13, 204, 113, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   PAGE BANNER (green header for subpages)
   ============================================ */
.page-banner {
    background: var(--color-primary);
    padding: 24px 0;
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.page-banner-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 0;
}

.page-banner-img::before,
.page-banner-img::after {
    display: none;
}

.page-banner-img .page-banner-title {
    font-size: 3rem;
    font-style: normal;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: 50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.page-banner .leaf-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M40 80 C60 20, 140 20, 160 80 C180 140, 100 180, 40 80Z' fill='white'/%3E%3Cpath d='M100 40 L100 160' stroke='white' stroke-width='2'/%3E%3Cpath d='M60 60 L100 100' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M140 60 L100 100' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M70 100 L100 120' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M130 100 L100 120' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 180px;
    pointer-events: none;
}

.page-banner-title {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    margin: 0;
    position: relative;
    z-index: 1;
}

.page-banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* HOME styles are in components.css */

/* ============================================
   FEATURE SECTIONS (Caratteristiche, Marketing)
   Alternating left-right layout with circular images
   ============================================ */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    padding: 50px 0;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-text {
    max-width: 480px;
}

.feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-text p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.feature-text ul {
    list-style: none;
    margin-top: 16px;
}

.feature-text ul li {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.feature-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
}

.feature-text ul.check-list li::before {
    content: '\2713';
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    top: 6px;
    left: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.feature-number {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 18px;
}

/* Sfondo pagina caratteristiche */
.page-caratteristiche {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.page-caratteristiche-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

.page-caratteristiche-bg .bg-tile {
    display: block;
    width: 100%;
    height: auto;
}

.page-caratteristiche-bg .bg-tile-flip {
    transform: scaleX(-1);
}

.page-caratteristiche > *:not(.page-caratteristiche-bg) {
    position: relative;
    z-index: 1;
}

.caratteristiche-section {
    padding: 40px 0;
}

.caratteristiche-section .feature-text {
    max-width: 560px;
}

.caratteristiche-section .feature-text p {
    margin-bottom: 14px;
}

/* Intro sottotitolo pagina marketing */
.marketing-intro {
    padding: 50px 20px 20px;
    text-align: center;
}

.marketing-intro h2 {
    color: #000;
    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: 700;
    line-height: 1.25;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .marketing-intro h2 {
        font-size: 1.5rem;
    }
}

/* Sezione 4 — centrata full-width */
.caratteristiche-centered {
    text-align: center;
}

.caratteristiche-centered .feature-number {
    margin-left: auto;
    margin-right: auto;
}

.caratteristiche-centered h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.caratteristiche-centered p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Immagine bottom prima del footer */
.caratteristiche-footer-img {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    line-height: 0;
}

.caratteristiche-footer-img img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-icon-dot {
    width: 40px;
    height: 40px;
    background: var(--color-primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon-dot svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

/* === Decorative green dots === */
.decor-dot {
    position: absolute;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

/* === App Preview Section (Caratteristiche bottom) === */
.app-preview-section {
    padding: 60px 0;
    text-align: center;
}

.app-preview-section h2 {
    margin-bottom: 40px;
}

.app-preview-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-preview-item {
    width: 180px;
    height: 320px;
    background: linear-gradient(135deg, #e0f5ea 0%, #b8e8d0 100%);
    border: 2px dashed var(--color-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

/* ============================================
   PRICING
   ============================================ */
.prezzi-intro {
    padding: 50px 0 20px;
    text-align: center;
}

.prezzi-intro .prezzi-lead {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--color-text);
    font-weight: 500;
}

.pricing-section {
    padding: 40px 0 100px;
    text-align: center;
}

.pricing-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(13, 204, 113, 0.12);
    text-align: center;
}

.pricing-card-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-text);
}

.pricing-price {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
}

.pricing-price-amount {
    font-size: 1.5rem;
    font-style: normal;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.pricing-features-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 1rem;
    text-align: center;
}

.pricing-features-list li:last-child {
    border-bottom: none;
}

.pricing-cta {
    min-width: 220px;
}

/* ============================================
   CLIENTS GRID
   ============================================ */
.clients-section {
    padding: var(--section-spacing) 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.client-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 12px var(--color-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.client-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.client-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.client-card .client-location {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-style: italic;
}

.client-card .client-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.client-card .btn {
    font-size: 0.85rem;
    margin-top: auto;
    align-self: center;
}

/* === Clienti: paginazione prev/next === */
.clienti-pager {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.clienti-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.clienti-pager-btn:hover,
.clienti-pager-btn:focus-visible {
    background: var(--color-primary-dark, #0a9e57);
    transform: translateY(-2px);
}

/* === Clienti: messaggi di stato (API down / vuoto) === */
.clienti-api-down,
.clienti-api-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    background: var(--color-bg-card, #F8FAFC);
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 12px;
    max-width: 640px;
    margin: 0 auto;
}

/* === Single Client Detail === */
.client-detail {
    padding: var(--section-spacing) 0;
}

.client-detail-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

.client-detail-col-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.client-detail-logo {
    width: 220px;
    height: 220px;
    object-fit: contain;
    margin: 0;
    display: block;
}

.client-detail-info h2 {
    font-size: 2.4rem;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.client-detail-info .location {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.client-detail-divider {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    margin-bottom: 24px;
}

.client-detail-info p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.client-detail-desc {
    margin-bottom: 28px;
}

.client-detail-note {
    margin-top: 28px;
    font-size: 0.95rem;
}

.client-detail-note a {
    color: var(--color-primary);
    text-decoration: underline;
}

.store-badges {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-block;
    line-height: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 100%;
}

.store-badge:hover,
.store-badge:focus-visible {
    transform: translateY(-1px);
    opacity: 0.9;
}

.client-detail-contacts {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.client-detail-contacts p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--color-text);
    font-size: 0.95rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.client-detail-contacts p:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.client-detail-contacts svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.client-detail-contacts a {
    color: var(--color-text);
    text-decoration: none;
}

.client-detail-contacts a:hover {
    color: var(--color-primary);
}

/* QR Section: inline nella colonna destra */
.qr-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.qr-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.qr_container {
    margin: 0 0 16px;
}

.qr-code-img {
    width: 225px;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0;
}

.qr-caption {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 520px;
}

.qr-caption a {
    color: var(--color-primary);
    text-decoration: underline;
}

.qr-caption a:hover,
.qr-caption a:focus-visible {
    color: var(--color-primary-dark);
}

/* === Client Promo Banner (più aria, testo allineato a sinistra) === */
.client-promo-banner {
    background: var(--color-primary);
    padding: 80px 20px;
    border-radius: 0;
    margin-top: 80px;
    color: var(--color-white);
    text-align: left;
}

.client-promo-banner .container {
    max-width: 880px;
}

.client-promo-banner-title {
    font-size: 1.35rem;
    margin-bottom: 20px;
    color: var(--color-white);
    text-align: left;
}

.client-promo-banner p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 12px;
    text-align: left;
}

.client-promo-banner strong {
    color: var(--color-white);
}

.client-promo-banner a {
    color: var(--color-white);
    text-decoration: underline;
}

/* ============================================
   COLLABORA CON NOI
   ============================================ */
.page-collabora .collabora-section {
    padding: 80px 0;
}

.collabora-row {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
    text-align: left;
}

.collabora-text {
    max-width: 560px;
}

.collabora-text h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #000;
}

.collabora-text p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 1.0625rem;
    margin-bottom: 16px;
}

.collabora-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.25;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #000;
}

.collabora-cta-line {
    margin-top: 32px !important;
}

.collabora-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.collabora-image img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    padding: var(--section-spacing) 0;
}

.faq-section-title {
    text-align: center;
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 50px;
}

.faq-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.faq-item h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    margin-top: 10px;
    border-radius: 2px;
}

.faq-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    margin-top: 50px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    font-family: var(--font-heading);
    line-height: 1.3;
}

/* ============================================
   BLOG
   ============================================ */
.blog-section {
    padding: var(--section-spacing) 0;
}

/* ============================================
   BLOG — Archive / Grid / Card
   ============================================ */
.blog-archive-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--color-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0 0 12px;
    color: #0f172a;
}

.blog-card-excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.blog-card-readmore {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.blog-card-date {
    color: #94a3b8;
    font-size: 0.8rem;
}

.blog-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--color-text-muted);
}

/* Pagination — WP the_posts_pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.blog-pagination .page-numbers svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   BLOG — Single Article
   ============================================ */
.article-single {
    padding: 60px 0 80px;
}

.article-single .container {
    max-width: 820px;
}

.article-breadcrumb {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.article-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-breadcrumb .current {
    color: var(--color-text-muted);
    max-width: 50ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-header {
    margin-bottom: 32px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #0f172a;
}

.article-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-meta-sep {
    color: #cbd5e1;
}

.article-featured-image {
    width: 100%;
    margin: 0 0 40px;
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
}

.article-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.article-content > * {
    margin-bottom: 20px;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.3;
    margin-top: 44px;
    margin-bottom: 16px;
    color: #0f172a;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.3;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #0f172a;
}

.article-content p {
    margin: 0 0 20px;
}

.article-content a {
    color: var(--color-primary);
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin: 0 0 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 12px 20px;
    margin: 24px 0;
    color: var(--color-text-muted);
    background: var(--color-bg-card);
    border-radius: 0 12px 12px 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.article-nav a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    background: var(--color-bg-card);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.2s ease;
}

.article-nav a:hover {
    background: #eef5ee;
}

.article-nav-next {
    text-align: right;
}

.article-nav-label {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-nav-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.article-related {
    padding: 80px 0;
    background: var(--color-bg-card);
    margin-top: 60px;
}

.article-related-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin: 0 0 40px;
    text-align: center;
}


/* ============================================
   CTA FORM SECTION (green, on every page)
   ============================================ */
.cta-form-section {
    background: var(--color-primary);
    padding: 60px 0;
}

.cta-form-section h2 {
    color: var(--color-white);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.2;
    max-width: 500px;
}

.cta-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cta-form input,
.cta-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cta-form input:focus,
.cta-form textarea:focus {
    border-bottom-color: var(--color-white);
}

.cta-form textarea {
    resize: vertical;
    min-height: 60px;
}

.cta-form .btn-submit {
    align-self: flex-end;
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
    margin-top: 8px;
}

.cta-form .btn-submit:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* ============================================
   CONTACT FORM STANDALONE (pagine /contatti/, /support/, /richiesta-rimozione-dati/)
   Design minimal underline — replica produzione mobee.it (contact-form.png).
   ============================================ */
.contatti-section,
.contact-section-standalone {
    padding: 60px 0 100px;
}

.contact-form-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.contact-form-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text);
}

.contact-form {
    width: 100%;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 28px;
}

.contact-form-field {
    position: relative;
}

.contact-form-field-full {
    margin-bottom: 10px;
}

.contact-form-field input,
.contact-form-field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #1E293B;
    background: transparent;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form-field textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.5;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
    color: #64748B;
    opacity: 1;
    font-weight: 400;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    border-bottom-color: var(--color-primary);
}

.contact-form-field input:focus::placeholder,
.contact-form-field textarea:focus::placeholder {
    color: #94A3B8;
}

/* Privacy checkbox minimale */
.contact-form-privacy {
    margin: 20px 0 28px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.contact-form-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.contact-form-privacy input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.contact-form-privacy a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Submit allineato a destra */
.contact-form-submit {
    display: flex;
    justify-content: flex-end;
}

/* Variante scura del .btn (pill) — usata nei form standalone */
.btn.btn-submit-dark {
    background: #1E293B;
    color: #fff;
    padding: 16px 40px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(30, 41, 59, 0.18);
}

.btn.btn-submit-dark:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(13, 204, 113, 0.3);
    transform: translateY(-1px);
}

.btn.btn-submit-dark:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.2);
}

/* === Pagine legali (Privacy, Cookie, GDPR) === */
.legal-page {
    padding-top: 56px;
    padding-bottom: 80px;
}

.legal-content {
    max-width: 820px;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content > p,
.legal-content > ul,
.legal-content > ol,
.legal-content > table {
    margin-bottom: 20px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 44px 0 16px;
    letter-spacing: -0.01em;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 28px 0 12px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 22px;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover,
.legal-content a:focus-visible {
    color: var(--color-primary-dark);
}

.legal-intro {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    border-left: 3px solid var(--color-primary);
    padding: 4px 0 4px 18px;
    margin-bottom: 32px;
}

.legal-note {
    background: var(--color-bg-card);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.legal-last-update {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 24px;
    font-size: 0.95rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

.legal-table th,
.legal-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
}

.legal-table th {
    background: var(--color-bg-card);
    font-weight: 700;
    color: var(--color-text);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
    border-bottom: 0;
}

.legal-table code {
    background: var(--color-bg-card);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* === Form GDPR (richiesta cancellazione dati) === */
.gdpr-form-wrapper {
    max-width: 820px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.gdpr-form-section {
    border: 0;
    padding: 0;
    margin: 0 0 28px;
}

.gdpr-form-section:last-of-type {
    margin-bottom: 16px;
}

.gdpr-form-section legend {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    padding: 0;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.gdpr-form .contact-form-field {
    margin-bottom: 16px;
}

.gdpr-form .contact-form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.gdpr-form .contact-form-field label span[aria-hidden] {
    color: var(--color-primary);
    margin-left: 2px;
}

.gdpr-form input[type="text"],
.gdpr-form input[type="email"],
.gdpr-form input[type="tel"],
.gdpr-form select,
.gdpr-form textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gdpr-form input:focus,
.gdpr-form select:focus,
.gdpr-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 204, 113, 0.12);
}

.gdpr-form textarea {
    resize: vertical;
    min-height: 96px;
}

.gdpr-form-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 14px;
    line-height: 1.55;
}

.gdpr-form-checkbox {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    line-height: 1.55;
}

.gdpr-form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.gdpr-form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.gdpr-form-checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

.gdpr-form .contact-form-submit {
    justify-content: flex-start;
    margin-top: 16px;
}

.gdpr-form-footnote {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 18px;
    line-height: 1.55;
}

.gdpr-ok-icon {
    color: var(--color-primary);
    display: inline-flex;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .gdpr-form-wrapper {
        padding: 20px;
        border-radius: 12px;
    }
    .legal-content h2 {
        font-size: 1.35rem;
        margin-top: 36px;
    }
    .legal-table {
        font-size: 0.85rem;
    }
    .legal-table th,
    .legal-table td {
        padding: 10px 10px;
    }
}

@media (max-width: 768px) {
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 28px;
    }
    .contact-form-title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }
    .contact-form-submit {
        justify-content: stretch;
    }
    .btn.btn-submit-dark {
        width: 100%;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--color-border);
}

/* Barra legale — sfondo grigio, logo sx + legal dx */
.footer-legal-bar {
    background: var(--color-bg-footer);
    padding: 28px 0;
}

.footer-legal-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.footer-logo a {
    display: inline-block;
    line-height: 0;
}

.footer-logo img {
    height: 34px;
    width: auto;
}

.footer-legal {
    text-align: right;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.footer-legal-line {
    margin: 0;
    text-transform: uppercase;
}

.footer-legal-line + .footer-legal-line {
    margin-top: 2px;
}

.footer-ottimis-link {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-ottimis-link:hover {
    color: var(--color-primary);
}

.footer-policies {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-policies a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-policies a:hover {
    color: var(--color-primary);
}

.footer-policies span {
    color: var(--color-border);
}

/* Barra partner Nexi — sfondo bianco */
.footer-partner-bar {
    background: #fff;
    padding: 18px 0;
    border-top: 1px solid var(--color-border);
}

.footer-partner-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

.footer-partner-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.footer-partner-badge {
    height: 56px;
    width: auto;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .nav-list {
        gap: 16px;
    }

    .nav-list a {
        font-size: 0.8rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }

    .feature-image {
        order: -1;
    }

    .img-placeholder-circle {
        width: 220px;
        height: 220px;
    }

    .clients-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .collabora-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .collabora-text {
        max-width: 100%;
    }

    .collabora-text h2 {
        font-size: 1.85rem;
    }

    .collabora-text h3 {
        font-size: 1.25rem;
    }

    .collabora-image {
        order: -1;
    }

    .collabora-image img {
        max-width: 380px;
    }

    .page-collabora .collabora-section {
        padding: 50px 0;
    }

    .client-detail-header {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .client-detail-col-left {
        position: static;
        align-items: center;
    }

    .client-detail-divider {
        margin-left: 0;
        margin-right: auto;
    }

    .client-detail-contacts p {
        justify-content: flex-start;
    }

    .qr_container {
        display: flex;
        justify-content: center;
    }

    .qr-code-img {
        margin: 0 auto;
    }

    .qr-caption {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    .store-badges {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --section-spacing: 50px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    /* Header mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile nav: drawer laterale da destra, sotto l'header */
    .nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        right: 0;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        width: 82%;
        max-width: 340px;
        background: #ffffff;
        z-index: 1001;
        padding: 0 0 24px;
        box-shadow: -8px 0 28px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transform: translateX(100%);
        transition: transform 0.25s ease-in;
        visibility: hidden;
    }

    .nav.nav-open {
        transform: translateX(0);
        transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
        visibility: visible;
    }

    /* Drawer interno nascosto: il site header resta visibile sopra il drawer
       e la X è già gestita dall'hamburger animato. */
    .nav-drawer-header {
        display: none;
    }

    .nav .nav-drawer-cta {
        display: inline-flex;
    }

    /* Backdrop scuro dietro il drawer (sotto il drawer, sotto il site header) */
    .nav-backdrop {
        display: none;
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .nav-backdrop.is-visible {
        display: block;
        opacity: 1;
    }

    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 8px 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 14px 22px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--color-text);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list a:hover,
    .nav-list a:focus-visible {
        background: var(--color-bg-footer);
        color: var(--color-primary);
    }

    .nav-drawer-cta {
        margin: 22px 20px 0;
        width: calc(100% - 40px);
    }

    .header-cta {
        display: none;
    }

    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0 60px;
    }

    /* Home responsive styles are in components.css */

    /* Features */
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
        direction: ltr;
    }

    .img-placeholder-circle {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    /* Page banner */
    .page-banner-title {
        font-size: 1.5rem;
    }

    .page-banner-img {
        padding: 40px 0;
    }

    .page-banner-img .page-banner-title {
        font-size: 2rem;
    }

    .feature-number {
        width: 40px;
        height: 40px;
    }

    .caratteristiche-centered h3 {
        font-size: 1.25rem;
    }

    /* Clients */
    .clients-grid {
        grid-template-columns: 1fr;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 1.65rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.35rem;
    }

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

    .article-nav-next {
        text-align: left;
    }

    .article-related {
        padding: 60px 0;
    }

    /* CTA Form */
    .cta-form-container {
        grid-template-columns: 1fr;
    }

    .cta-form-section h2 {
        font-size: 1.75rem;
    }

    .cta-form-row {
        grid-template-columns: 1fr;
    }

    /* Pricing */
    .pricing-card {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-legal-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-legal {
        text-align: center;
    }

    .footer-policies {
        justify-content: center;
    }

    .footer-partner-row {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    /* App preview */
    .app-preview-grid {
        gap: 12px;
    }

    .app-preview-item {
        width: 140px;
        height: 250px;
    }
}

@media (max-width: 374px) {
    h1 { font-size: 1.75rem; }

    .hero-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 12px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Hero — entra al caricamento della pagina */
@keyframes mobee-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}
@keyframes mobee-fade-right {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: none; }
}

.hero-title {
    animation: mobee-fade-up 0.6s ease both 0.05s;
}
.hero-subtitle {
    animation: mobee-fade-up 0.6s ease both 0.2s;
}
.hero-cta {
    animation: mobee-fade-up 0.6s ease both 0.35s;
}
.hero-image {
    animation: mobee-fade-right 0.7s ease both 0.15s;
}

/* Scroll reveal — stato iniziale (aggiunto via JS) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Rispetta preferenza utente per riduzione movimenti */
@media (prefers-reduced-motion: reduce) {
    .hero-title, .hero-subtitle, .hero-cta, .hero-image,
    .reveal, .reveal.is-visible {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
