/* ===== Pro Loco Monte Cremasco - Foglio di stile condiviso ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d47a1;
    --primary-dark: #002171;
    --primary-light: #5472d3;
    --secondary: #388e3c;
    --secondary-dark: #1b5e20;
    --accent: #ff9800;
    --accent-dark: #f57c00;
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-disabled: rgba(0, 0, 0, 0.38);
    --divider: rgba(0, 0, 0, 0.12);
    --background: #fafafa;
    --surface: #ffffff;
    --error: #d32f2f;
    --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-2: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    --shadow-3: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

/* ===== App Bar / Header ===== */
.app-bar {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    flex: 1;
}

.brand:hover {
    color: white;
}

.brand-logo {
    height: 56px;
    width: 56px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.15px;
}

.brand-subtitle {
    font-size: 12px;
    font-weight: 300;
    opacity: 0.85;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle .material-icons {
    font-size: 28px;
}

/* ===== Container & Sections ===== */
main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-family: 'Playfair Display', 'Roboto', serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.page-header .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 300;
}

.section {
    margin-bottom: 48px;
}

.section h2 {
    font-family: 'Playfair Display', 'Roboto', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    letter-spacing: -0.3px;
}

.section h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 12px;
    margin-top: 24px;
}

.section p {
    margin-bottom: 12px;
    font-size: 16px;
}

.section ul,
.section ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.section li {
    margin-bottom: 8px;
}

/* ===== Hero (homepage) ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1976d2 100%);
    color: white;
    padding: 100px 24px 220px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/hero-village.svg");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.85;
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 71, 161, 0.55) 0%, rgba(13, 71, 161, 0.15) 40%, rgba(13, 71, 161, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Page hero (other pages) */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 60px 24px 80px;
    text-align: center;
    overflow: hidden;
    margin-bottom: -40px;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(255, 152, 0, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(56, 142, 60, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-family: 'Playfair Display', 'Roboto', serif;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.page-hero .breadcrumb {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.page-hero .subtitle {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.95;
    max-width: 680px;
    margin: 0 auto;
}

/* Surface card to "lift" content over the page-hero */
.surface {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    padding: 40px;
    margin-bottom: 32px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    height: 160px;
    width: 160px;
    object-fit: contain;
    background: white;
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow-3);
    margin-bottom: 28px;
}

.hero h1 {
    font-family: 'Playfair Display', 'Roboto', serif;
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.05;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.hero .eyebrow {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero p {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.97;
    margin: 0 auto 36px;
    max-width: 720px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-1);
    text-decoration: none;
}

.btn:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-1px);
}

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

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

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: white;
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: none;
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn .material-icons {
    font-size: 20px;
}

/* ===== Cards ===== */
.card {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-1);
    padding: 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-2);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 500;
}

.card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== Feature/Highlight Cards (with image) ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin: 40px 0;
}

.feature-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: all 0.3s ease;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    box-shadow: var(--shadow-3);
    transform: translateY(-6px);
    color: var(--text-primary);
}

.feature-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.feature-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-card .tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-card h3 {
    font-family: 'Playfair Display', 'Roboto', serif;
    font-size: 22px;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.feature-card .feature-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Photo block (big image with text overlay) ===== */
.photo-block {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 40px 0;
    box-shadow: var(--shadow-2);
    min-height: 280px;
    display: flex;
    align-items: flex-end;
}

.photo-block img,
.photo-block svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.photo-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 1;
}

.photo-block-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 36px;
}

.photo-block h3 {
    font-family: 'Playfair Display', 'Roboto', serif;
    font-size: 28px;
    color: white;
    margin: 0 0 8px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.photo-block p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin: 0;
    max-width: 600px;
}

/* ===== Page section with side illustration ===== */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 48px 0;
}

.split-section.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

.split-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    display: block;
}

.split-content h2 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 24px;
    }
}

/* Quick links grid (home) */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.quick-link {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-1);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.25s ease;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.quick-link:hover {
    box-shadow: var(--shadow-3);
    transform: translateY(-4px);
    color: var(--text-primary);
}

.quick-link .material-icons {
    font-size: 48px;
    color: var(--primary);
    background: rgba(13, 71, 161, 0.08);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-link h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary);
    margin: 0;
}

.quick-link p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Organigramma ===== */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: 24px;
}

.org-tier {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.org-card {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-1);
    padding: 20px;
    min-width: 220px;
    max-width: 260px;
    text-align: center;
    border-top: 4px solid var(--primary);
}

.org-card.president {
    border-top-color: var(--accent);
    background: linear-gradient(180deg, #fff8e1 0%, var(--surface) 100%);
}

.org-card.vice {
    border-top-color: var(--secondary);
}

.org-role {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.org-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-dark);
}

/* ===== Form ===== */
.form-card {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-2);
    padding: 32px;
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--error);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--divider);
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    background: var(--surface);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== Info boxes ===== */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.info-box.success {
    background: #e8f5e9;
    border-left-color: var(--secondary);
}

.info-box.warning {
    background: #fff3e0;
    border-left-color: var(--accent);
}

.info-box h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 16px;
}

.info-box.success h4 {
    color: var(--secondary-dark);
}

.info-box.warning h4 {
    color: var(--accent-dark);
}

/* ===== Benefits list (tesseramento) ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.benefit-item {
    background: var(--surface);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item .material-icons {
    font-size: 36px;
    color: var(--accent);
}

.benefit-item h4 {
    font-size: 17px;
    font-weight: 500;
    color: var(--primary);
}

.benefit-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Contact cards ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.contact-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: var(--shadow-1);
    text-align: center;
    transition: all 0.25s ease;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.contact-card .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(13, 71, 161, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card .icon-circle .material-icons {
    font-size: 32px;
    color: var(--primary);
}

.contact-card .icon-circle.whatsapp {
    background: rgba(56, 142, 60, 0.12);
}

.contact-card .icon-circle.whatsapp .material-icons {
    color: var(--secondary);
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    margin: 0;
}

.contact-card .contact-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

.contact-card .contact-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Coming soon (lotteria) ===== */
.coming-soon {
    text-align: center;
    padding: 60px 24px;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-1);
}

.coming-soon .material-icons {
    font-size: 96px;
    color: var(--accent);
    margin-bottom: 16px;
}

.coming-soon h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
    border: none;
}

.coming-soon p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 24px;
}

/* ===== Convenzioni iframe ===== */
.iframe-wrapper {
    position: relative;
    width: 100%;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-2);
    overflow: hidden;
    margin-top: 16px;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: none;
    display: block;
}

.iframe-fallback {
    padding: 24px;
    text-align: center;
    background: #f5f5f5;
    border-top: 1px solid var(--divider);
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Paese / Photo block ===== */
.image-block {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    border-radius: 8px;
    padding: 32px;
    margin: 24px 0;
    box-shadow: var(--shadow-2);
}

.image-block h3 {
    color: white;
    margin-bottom: 12px;
}

.image-block p {
    opacity: 0.95;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.stat-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-1);
}

.stat-value {
    font-size: 32px;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: 40px 24px 16px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.footer-section h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.footer-section a,
.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.8;
    display: block;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--primary);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        box-shadow: var(--shadow-2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.open {
        max-height: 600px;
    }

    .nav-link {
        border-radius: 0;
        padding: 14px 24px;
        text-align: left;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-logo {
        height: 110px;
        width: 110px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header .subtitle {
        font-size: 16px;
    }

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

    .brand-subtitle {
        display: none;
    }

    .container {
        padding: 24px 16px;
    }

    .container-narrow {
        padding: 24px 16px;
    }

    .form-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 15px;
    }

    .brand-logo {
        height: 44px;
        width: 44px;
    }

    .hero {
        padding: 48px 16px;
    }

    .hero h1 {
        font-size: 26px;
    }
}
