/* ============================================
   MOZIQ — CSS GLOBALE
   ============================================ */

/* Variabili */
:root {
    --blue-dark: #1B3A6B;
    --blue-mid: #2E5FAC;
    --blue-light: #F0F4FA;
    --gold: #E8B400;
    --gray-dark: #2D3748;
    --gray-mid: #4A5568;
    --gray-light: #718096;
    --gray-muted: #A0AEC0;
    --border: #E2E8F0;
    --border-dark: #CBD5E0;
    --bg: #F0F4FA;
    --white: #ffffff;
    --green: #059669;
    --green-light: #D1FAE5;
    --red: #DC2626;
    --red-light: #FEE2E2;
    --amber: #D97706;
    --amber-light: #FEF3C7;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-dark);
    min-height: 100vh;
}

/* Tipografia */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--blue-dark);
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.1rem;
}

p {
    font-size: 1rem;
    color: var(--gray-mid);
    line-height: 1.75;
}

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

html {
    scroll-behavior: smooth;
}

/* ============================================
   NAVBAR PANNELLO ADMIN
   ============================================ */

.mz-navbar {
    background: var(--blue-dark);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mz-navbar .logo img {
    height: 36px;
}

.mz-navbar .nav-links {
    display: flex;
    gap: 1.5rem;
}

.mz-navbar .nav-links a {
    color: #CBD5E0;
    font-size: 0.875rem;
    text-decoration: none;
}

.mz-navbar .nav-links a:hover {
    color: var(--white);
}

.mz-navbar .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mz-navbar .user-name {
    color: #CBD5E0;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.mz-badge-admin {
    font-size: 0.7rem;
    background: var(--gold);
    color: var(--blue-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.mz-badge-docente {
    font-size: 0.7rem;
    background: #2E5FAC;
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ============================================
   LAYOUT PANNELLO ADMIN
   ============================================ */

.mz-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.mz-container-sm {
    max-width: 640px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.mz-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mz-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   BOTTONI
   ============================================ */

.mz-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
}

.mz-btn-primary {
    background: var(--blue-dark);
    color: var(--white);
}

.mz-btn-primary:hover {
    background: var(--blue-mid);
}

.mz-btn-secondary {
    background: var(--white);
    color: var(--blue-dark);
    border: 1px solid var(--border);
}

.mz-btn-secondary:hover {
    background: var(--blue-light);
}

.mz-btn-danger {
    background: var(--red);
    color: var(--white);
}

.mz-btn-danger:hover {
    background: #B91C1C;
}

.mz-btn-warning {
    background: var(--amber-light);
    color: #92400E;
}

.mz-btn-warning:hover {
    background: #FDE68A;
}

.mz-btn-logout {
    background: transparent;
    border: 1px solid #4A5568;
    color: #CBD5E0;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
}

/* ============================================
   ALERT
   ============================================ */

.mz-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.mz-alert-success {
    background: var(--green-light);
    color: #065F46;
}

.mz-alert-error {
    background: var(--red-light);
    color: #991B1B;
}

/* ============================================
   BADGE STATO
   ============================================ */

.mz-status {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mz-status-draft {
    background: var(--blue-light);
    color: var(--gray-mid);
}

.mz-status-open {
    background: var(--green-light);
    color: #065F46;
}

.mz-status-closed {
    background: var(--border);
    color: var(--gray-mid);
}

.mz-status-active {
    background: var(--green-light);
    color: #065F46;
}

.mz-status-inactive {
    background: var(--red-light);
    color: #991B1B;
}

/* ============================================
   TABELLA
   ============================================ */

.mz-table {
    width: 100%;
    border-collapse: collapse;
}

.mz-table th {
    text-align: left;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border);
}

.mz-table td {
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--blue-light);
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.mz-table tr:last-child td {
    border-bottom: none;
}

.mz-table tr:hover td {
    background: #F8FAFC;
}

/* ============================================
   FORM
   ============================================ */

.mz-form-group {
    margin-bottom: 1rem;
}

.mz-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-mid);
    margin-bottom: 0.4rem;
}

.mz-input {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    outline: none;
    font-family: 'Inter', sans-serif;
    color: var(--gray-dark);
}

.mz-input:focus {
    border-color: var(--blue-mid);
}

.mz-input.invalid {
    border-color: var(--red);
}

.mz-hint {
    font-size: 0.75rem;
    color: var(--gray-muted);
    margin-top: 0.3rem;
}

.mz-hint.error {
    color: var(--red);
}

.mz-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   STAT / BAR
   ============================================ */

.mz-stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue-dark);
}

.mz-stat-label {
    font-size: 0.8rem;
    color: var(--gray-muted);
    margin-top: 0.25rem;
}

.mz-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    margin-top: 0.5rem;
    overflow: hidden;
}

.mz-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.mz-bar-yes {
    background: var(--green);
}

.mz-bar-no {
    background: var(--red);
}

.mz-bar-abstain {
    background: var(--amber);
}

/* ============================================
   MODAL
   ============================================ */

.mz-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.mz-modal-overlay.active {
    display: flex;
}

.mz-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    margin: 1rem;
}

.mz-modal h3 {
    font-family: 'Playfair Display', serif;
    color: var(--blue-dark);
    margin-bottom: 1.5rem;
}

.mz-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ============================================
   AUTH
   ============================================ */

.mz-auth-page {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.mz-auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.mz-auth-logo {
    height: 36px;
    margin-bottom: 2rem;
}

.mz-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-dark);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
}

.mz-btn-google:hover {
    border-color: var(--blue-mid);
    background: var(--blue-light);
}

.mz-btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   MISC
   ============================================ */

.mz-empty {
    padding: 3rem;
    text-align: center;
    color: var(--gray-muted);
}

.mz-integrity {
    font-size: 0.7rem;
    color: var(--gray-muted);
    word-break: break-all;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-family: monospace;
}

.error-code {
    font-size: 5rem;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
}

/* ============================================
   LANDING PAGE — NAV PUBBLICA
   ============================================ */

.pub-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.pub-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.pub-nav-logo img {
    height: 36px;
}

.pub-nav-links {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.pub-nav-links a {
    font-size: 0.875rem;
    color: var(--gray-mid);
    text-decoration: none;
    transition: color 0.15s;
}

.pub-nav-links a:hover {
    color: var(--blue-dark);
}

.pub-nav-cta {
    background: var(--blue-dark);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
}

.pub-nav-cta:hover {
    background: var(--blue-mid) !important;
}

.pub-nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.pub-nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-dark);
    border-radius: 2px;
    transition: all 0.25s;
}

.pub-nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.pub-nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.pub-nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.pub-nav-mobile {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
}

.pub-nav-mobile.open {
    display: flex;
}

.pub-nav-mobile a {
    font-size: 0.95rem;
    color: var(--gray-dark);
    text-decoration: none;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.pub-nav-mobile a:last-child {
    border-bottom: none;
}

.pub-nav-mobile a:hover {
    color: var(--blue-dark);
}

.pub-nav-cta-mobile {
    background: var(--blue-dark);
    color: var(--white) !important;
    padding: 0.7rem 1.25rem !important;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
    border-bottom: none !important;
}

.public-body {
    background: var(--white);
}

/* ============================================
   LANDING PAGE — HERO
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, #1e4d8c 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: var(--white);
}

.hero h1,
.hero h2,
.hero h3 {
    color: var(--white);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 180, 0, 0.2);
    border: 1px solid rgba(232, 180, 0, 0.4);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-price {
    margin-top: 2.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-price strong {
    color: var(--white);
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--blue-dark);
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: #f5c800;
    transform: translateY(-1px);
}

.btn-primary-block {
    display: block;
    text-align: center;
    font-size: 0.95rem;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   LANDING PAGE — SEZIONI
   ============================================ */

.section {
    padding: 5rem 2rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-alt {
    background: var(--bg);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header-center {
    text-align: center;
}

.section-header-center .section-subtitle {
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-mid);
    margin-bottom: 0.75rem;
}

.section-label-gold {
    color: var(--gold);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--blue-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-mid);
    line-height: 1.7;
}

/* ============================================
   NORMATIVA
   ============================================ */

.normativa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.normativa-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.normativa-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27, 58, 107, 0.1);
    border-color: var(--blue-mid);
}

.normativa-box h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.normativa-box p {
    font-size: 0.9rem;
    color: var(--gray-mid);
    line-height: 1.7;
}

.adempimenti {
    list-style: none;
    counter-reset: step;
}

.adempimenti li {
    counter-increment: step;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.adempimenti li:last-child {
    border-bottom: none;
}

.adempimenti li::before {
    content: counter(step);
    min-width: 28px;
    height: 28px;
    background: var(--blue-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.adempimenti li div h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.2rem;
}

.adempimenti li div p {
    font-size: 0.875rem;
    color: var(--gray-mid);
    line-height: 1.7;
}

.adempimenti-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 1rem;
}

/* ============================================
   CONFORMITÀ
   ============================================ */

.conformita-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.conformita-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border-top: 3px solid var(--blue-dark);
    transition: box-shadow 0.2s;
}

.conformita-item:hover {
    box-shadow: 0 8px 24px rgba(27, 58, 107, 0.1);
}

.conformita-req {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.conformita-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1;
}

.conformita-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--blue-light);
    color: var(--blue-mid);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.conformita-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.conformita-desc {
    font-size: 0.875rem;
    color: var(--gray-mid);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.conformita-sep {
    border-top: 1px dashed var(--border);
    margin: 1rem 0;
}

.conformita-soluzione {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0.875rem;
    border-left: 3px solid var(--gold);
}

.conformita-sol-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue-dark);
    display: block;
    margin-bottom: 0.4rem;
}

.conformita-soluzione p {
    font-size: 0.8rem;
    color: var(--gray-dark);
    line-height: 1.75;
    margin: 0;
}

/* ============================================
   COME FUNZIONA
   ============================================ */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 58, 107, 0.12);
    border-color: var(--blue-mid);
}

.step-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.8rem;
    color: var(--gray-mid);
    line-height: 1.5;
}

/* ============================================
   DOCUMENTI
   ============================================ */

.doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.doc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue-dark);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.25s, box-shadow 0.25s, border-left-color 0.25s;
    cursor: default;
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(27, 58, 107, 0.12);
    border-left-color: var(--gold);
}

.doc-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    transition: color 0.25s;
}

.doc-card:hover .doc-num {
    color: var(--gold);
}

.doc-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.doc-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-muted);
}

.doc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--blue-dark);
    line-height: 1.4;
    flex: 1;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--blue-mid);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s, color 0.2s;
}

.doc-link:hover {
    gap: 0.75rem;
    color: var(--blue-dark);
}

/* Documenti dashboard admin */
.mz-doc-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-dark);
    transition: all 0.15s;
    background: var(--white);
}

.mz-doc-item:hover {
    border-color: var(--blue-mid);
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.mz-doc-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mz-doc-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.2rem;
}

.mz-doc-sub {
    font-size: 0.75rem;
    color: var(--gray-mid);
    line-height: 1.4;
}

/* ============================================
   PREZZO
   ============================================ */

.prezzo-card {
    background: var(--white);
    border: 2px solid var(--blue-dark);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(27, 58, 107, 0.1);
    transition: transform 0.25s, box-shadow 0.25s;
}

.prezzo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(27, 58, 107, 0.15);
}

.prezzo-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1;
}

.prezzo-amount sup {
    font-size: 1.5rem;
    vertical-align: super;
}

.prezzo-amount sub {
    font-size: 1rem;
    color: var(--gray-mid);
    font-weight: 400;
}

.prezzo-incluso {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
}

.prezzo-incluso li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--gray-dark);
    border-bottom: 1px solid var(--border);
}

.prezzo-incluso li:last-child {
    border-bottom: none;
}

.prezzo-incluso li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

.prezzo-note {
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-top: 1rem;
}

.prezzo-lancio-badge {
    background: var(--gold);
    color: var(--blue-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
}

.prezzo-barrato {
    font-size: 1.5rem;
    color: var(--gray-light);
    text-decoration: line-through;
    font-weight: 600;
}

.prezzo-scadenza {
    font-size: 0.8rem;
    color: var(--gray-mid);
    margin-bottom: 1.5rem;
    margin-top: 0.25rem;
}

.prezzo-sub {
    font-size: 0.85rem;
    color: var(--gray-mid);
    margin-top: 0.5rem;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

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

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--blue-dark);
    font-family: 'Inter', sans-serif;
}

.faq-question span {
    font-size: 1.25rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-answer {
    font-size: 0.875rem;
    color: var(--gray-mid);
    line-height: 1.7;
    padding-bottom: 1.25rem;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question span {
    transform: rotate(45deg);
}

/* ============================================
   FORM DEMO
   ============================================ */

.form-section {
    background: var(--blue-dark);
    padding: 5rem 2rem;
    color: var(--white);
}

.form-inner {
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    line-height: 1.75;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full {
    grid-column: 1/-1;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

select.form-input option {
    color: var(--gray-dark);
    background: var(--white);
}

.form-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
}

.form-hint.loading {
    color: var(--gold);
}

.form-hint.success {
    color: #6EE7B7;
}

.form-hint.error {
    color: #FCA5A5;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    color: var(--blue-dark);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.form-submit:hover {
    background: #f5c800;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success {
    background: rgba(6, 95, 70, 0.3);
    border: 1px solid #6EE7B7;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    display: none;
}

.form-success h3 {
    font-size: 1.1rem;
    color: #6EE7B7;
    margin-bottom: 0.5rem;
}

.form-success p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.form-privacy-label input {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================
   FOOTER PUBBLICO
   ============================================ */

.pub-footer {
    background: var(--gray-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 2rem 0;
}

.pub-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pub-footer-logo img {
    height: 28px;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.pub-footer-tagline {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.75;
}

.pub-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pub-footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.75rem;
}

.pub-footer-col a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: color 0.15s;
}

.pub-footer-col a:hover {
    color: var(--white);
}

.pub-footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.pub-footer-cookie-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
}

.pub-footer-cookie-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.7);
}

.footer-policy {
    margin-top: 0.5rem;
    display: inline-block;
}

.footer-policy a {
    color: #CBD5E0;
    font-size: 0.8rem;
    text-decoration: none;
}

.footer-policy a:hover {
    color: var(--white);
}

/* ============================================
   PAGINA VOTO
   ============================================ */

.vote-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.vote-option:hover {
    border-color: var(--blue-mid);
    background: var(--blue-light);
}

.vote-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue-dark);
}

.vote-option span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-dark);
}

.vote-option:has(input:checked) {
    border-color: var(--blue-dark);
    background: var(--blue-light);
}

/* ============================================
   PAGINE STATICHE (privacy/cookie)
   ============================================ */

.page-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    line-height: 1.8;
    color: #2D3748;
}

.page-content h1 {
    font-family: 'Playfair Display', serif;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.page-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--blue-dark);
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem;
}

.page-content p {
    margin-bottom: 0.75rem;
}

.page-content ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #2D3748;
}

.page-content a {
    color: var(--blue-mid);
    text-decoration: underline;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.page-content th {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border);
    background: var(--bg);
}

.page-content td {
    padding: 0.75rem;
    border: 1px solid var(--border);
}

.page-content tr:nth-child(even) td {
    background: var(--bg);
}

.page-meta {
    color: var(--gray-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.page-back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.page-back a {
    color: var(--blue-mid);
    text-decoration: none;
}

/* ============================================
   NAVBAR MOBILE ADMIN
   ============================================ */

.mz-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
}

.mz-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #CBD5E0;
    border-radius: 2px;
}

.mz-nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--blue-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
}

.mz-nav-mobile a {
    color: #CBD5E0;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mz-nav-mobile a:last-child {
    border-bottom: none;
}

.mz-nav-mobile.open {
    display: flex;
}

/* ============================================
   DOCENTI — CARD MOBILE
   ============================================ */

.mz-docenti-cards {
    display: none;
}

.mz-docenti-table {
    display: block;
}

.mz-docente-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--blue-dark);
}

.mz-docente-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.mz-docente-nome {
    font-weight: 600;
    color: var(--blue-dark);
    font-size: 0.95rem;
}

.mz-docente-email {
    font-size: 0.78rem;
    color: var(--gray-mid);
    margin-top: 0.2rem;
    word-break: break-all;
}

.mz-docente-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* ============================================
   DOCENTI — PULSANTI AZIONE
   ============================================ */

.mz-tt {
    position: relative;
    display: inline-flex;
}

.mz-tt-label {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 0.7rem;
    white-space: nowrap;
    padding: 0.28rem 0.5rem;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 20;
}

.mz-tt-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1e293b;
}

.mz-tt-danger {
    background: #DC2626;
}

.mz-tt-danger::after {
    border-top-color: #DC2626;
}

.mz-tt:hover .mz-tt-label {
    opacity: 1;
}

.mz-btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 72px;
    justify-content: center;
    letter-spacing: 0.01em;
}

.mz-btn-toggle-off {
    background: var(--amber-light);
    color: #92400E;
}

.mz-btn-toggle-off:hover {
    background: #FDE68A;
}

.mz-btn-toggle-on {
    background: var(--green-light);
    color: #065F46;
}

.mz-btn-toggle-on:hover {
    background: #A7F3D0;
}

.mz-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    transition: all 0.15s;
}

.mz-icon-btn-edit {
    color: var(--blue-dark);
}

.mz-icon-btn-edit:hover {
    background: var(--blue-light);
    border-color: var(--blue-mid);
    color: var(--blue-mid);
}

.mz-icon-btn-delete {
    color: var(--red);
}

.mz-icon-btn-delete:hover {
    background: var(--red-light);
    border-color: var(--red);
}

.mz-btn-edit-mobile {
    background: var(--blue-light);
    color: var(--blue-dark);
    border: 1px solid var(--border);
}

.mz-btn-edit-mobile:hover {
    background: #dce8f7;
    border-color: var(--blue-mid);
}

.mz-btn-danger-soft {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid #FECACA;
}

.mz-btn-danger-soft:hover {
    background: #FECACA;
    border-color: var(--red);
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */

@media (max-width: 768px) {

    /* Landing nav */
    .pub-nav-links {
        display: none;
    }

    .pub-nav-hamburger {
        display: flex;
    }

    /* Landing sezioni */
    .normativa-grid {
        grid-template-columns: 1fr;
    }

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

    .steps::before {
        display: none;
    }

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

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

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

    .mz-seo-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Footer pubblico */
    .pub-footer-inner {
        grid-template-columns: 1fr;
    }

    .pub-footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .pub-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Navbar admin */
    .mz-navbar {
        padding: 0.875rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .mz-navbar .nav-links {
        display: none;
    }

    .mz-navbar .user-name {
        display: none;
    }

    .mz-nav-toggle {
        display: flex;
    }

    .mz-nav-mobile.open {
        display: flex;
    }

    /* Pannello admin */
    .mz-docenti-table {
        display: none;
    }

    .mz-docenti-cards {
        display: block;
    }

    .mz-container,
    .mz-container-sm {
        padding: 1rem;
    }

    .mz-card {
        border-radius: var(--radius);
        overflow-x: auto;
    }

    .mz-card-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .mz-grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mz-table th,
    .mz-table td {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .mz-stat {
        font-size: 2rem;
    }

    .mz-table td .mz-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .vote-option {
        padding: 0.875rem 1rem;
    }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */

@media (max-width: 480px) {
    .mz-navbar .logo img {
        height: 28px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .mz-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
    }

    .mz-table th,
    .mz-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.75rem;
    }

    .pub-footer-links {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE — 1024px (desktop large)
   ============================================ */

@media (min-width: 1024px) {
    .doc-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   SEO FOOTER CARDS
   ============================================ */

.mz-seo-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mz-seo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 58, 107, 0.1);
}

.mz-seo-card-blue {
    border-top: 3px solid var(--blue-dark);
}

.mz-seo-card-gold {
    border-top: 3px solid var(--gold);
}

.mz-seo-card-green {
    border-top: 3px solid var(--green);
}

.mz-seo-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.mz-seo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1B3A6B;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.mz-seo-text {
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.7;
    margin: 0;
}

/* Go top */
#goTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--blue-dark);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(27, 58, 107, 0.3);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 99;
}

#goTop.visible {
    opacity: 1;
    transform: translateY(0);
}

#goTop:hover {
    background: var(--blue-mid);
}