


@font-face {
    font-family: 'Sentient-Extralight';
    src: url('../assets/fonts/Sentient-Extralight.woff2') format('woff2'),
    url('../assets/fonts/Sentient-Extralight.woff') format('woff'),
    url('../assets/fonts/Sentient-Extralight.ttf') format('truetype');
    font-weight: 200;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Sentient-ExtralightItalic';
    src: url('../assets/fonts/Sentient-ExtralightItalic.woff2') format('woff2'),
    url('../assets/fonts/Sentient-ExtralightItalic.woff') format('woff'),
    url('../assets/fonts/Sentient-ExtralightItalic.ttf') format('truetype');
    font-weight: 200;
    font-display: swap;
    font-style: italic;
}
@font-face {
    font-family: 'Sentient-Light';
    src: url('../assets/fonts/Sentient-Light.woff2') format('woff2'),
    url('../assets/fonts/Sentient-Light.woff') format('woff'),
    url('../assets/fonts/Sentient-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Sentient-LightItalic';
    src: url('../assets/fonts/Sentient-LightItalic.woff2') format('woff2'),
    url('../assets/fonts/Sentient-LightItalic.woff') format('woff'),
    url('../assets/fonts/Sentient-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
    font-style: italic;
}
@font-face {
    font-family: 'Sentient-Regular';
    src: url('../assets/fonts/Sentient-Regular.woff2') format('woff2'),
    url('../assets/fonts/Sentient-Regular.woff') format('woff'),
    url('../assets/fonts/Sentient-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Sentient-Italic';
    src: url('../assets/fonts/Sentient-Italic.woff2') format('woff2'),
    url('../assets/fonts/Sentient-Italic.woff') format('woff'),
    url('../assets/fonts/Sentient-Italic.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: italic;
}
@font-face {
    font-family: 'Sentient-Medium';
    src: url('../assets/fonts/Sentient-Medium.woff2') format('woff2'),
    url('../assets/fonts/Sentient-Medium.woff') format('woff'),
    url('../assets/fonts/Sentient-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Sentient-MediumItalic';
    src: url('../assets/fonts/Sentient-MediumItalic.woff2') format('woff2'),
    url('../assets/fonts/Sentient-MediumItalic.woff') format('woff'),
    url('../assets/fonts/Sentient-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: italic;
}
@font-face {
    font-family: 'Sentient-Bold';
    src: url('../assets/fonts/Sentient-Bold.woff2') format('woff2'),
    url('../assets/fonts/Sentient-Bold.woff') format('woff'),
    url('../assets/fonts/Sentient-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Sentient-BoldItalic';
    src: url('../assets/fonts/Sentient-BoldItalic.woff2') format('woff2'),
    url('../assets/fonts/Sentient-BoldItalic.woff') format('woff'),
    url('../assets/fonts/Sentient-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: italic;
}

html {
    scroll-behavior: smooth;
}


:root {
    --bg-main: #f5f3ee;
    --nav-bg: rgba(255, 255, 255, 0.88);
    --primary: #1e2d45;
    --accent: #b08d6b;
    --soft-sky: #e4dfd6;
    --text-rich: #1a2030;
    --text-dim: #6b7480;
    --white: #ffffff;
    --shadow-blur: 0 25px 50px -12px rgba(0, 0, 0, 0.06);
    --radius-xl: 40px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --text-dark: #1a2030;
    --text-muted: #6b7480;
    --primary-rgb: 30, 45, 69;
    --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 50%);

    --pt-av1-bg:  #E4F2F1; --pt-av1-text:  #146C6E; 
    --pt-av2-bg:  #E3EEFA; --pt-av2-text:  #2C6FA3; 
    --pt-av3-bg:  #EFE7FA; --pt-av3-text:  #6B4FA0; 
    --pt-av4-bg:  #FBE9EE; --pt-av4-text:  #B14C6B; 
    --pt-av5-bg:  #FCF1DA; --pt-av5-text:  #97650B; 
    --pt-av6-bg:  #E7F3E1; --pt-av6-text:  #4C7A2E; 
    --pt-av7-bg:  #FCE8DE; --pt-av7-text:  #B5501F; 
    --pt-av8-bg:  #E6E9FA; --pt-av8-text:  #4A4FA0; 
    --pt-av9-bg:  #DFF5F5; --pt-av9-text:  #0E7C87; 
    --pt-av10-bg: #FBE5F0; --pt-av10-text: #A83E85; 
    --pt-av11-bg: #F5F0D8; --pt-av11-text: #7A6B1E; 
    --pt-av12-bg: #E5EDF5; --pt-av12-text: #35577A; 
}


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

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    box-shadow: var(--focus-ring);
}


@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-rich);
    letter-spacing: -0.01em;
    line-height: 1.5;
}

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


html {
    overflow-x: hidden;
}
img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}


.quick-menu-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-action-btn.quick-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 100%;
    padding: 16px;
    border-radius: 20px;
}

.quick-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.quick-card-content small {
    color: #5c6b7a;
    line-height: 1.35;
}

.quick-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.quick-menu-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(30, 74, 124, 0.1), rgba(176, 141, 107, 0.12));
    border: 1px solid rgba(176, 141, 107, 0.18);
}

.quick-menu-note p {
    margin: 0;
    color: #1a2d45;
    font-size: 0.92rem;
    line-height: 1.45;
}

.timetable-shell,
.admin-page-shell,
.stats-shell,
.booking-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timetable-hero,
.admin-hero-grid,
.stats-hero-grid,
.booking-hero-grid {
    display: grid;
    gap: 20px;
}

.timetable-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.95fr);
}

.admin-hero-grid,
.booking-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.stats-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.timetable-hero-card,
.timetable-info-card,
.admin-hero-card,
.admin-aside-card,
.stats-hero-card,
.stats-aside-card,
.booking-hero-card,
.booking-aside-card {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #dce8f5);
    border: 1px solid rgba(196, 162, 124, 0.12);
    box-shadow: 0 18px 40px rgba(18, 34, 58, 0.06);
}

.timetable-hero-card h2,
.timetable-info-card h3,
.admin-hero-card h2,
.admin-aside-card h3,
.stats-hero-card h2,
.stats-aside-card h3,
.booking-hero-card h2,
.booking-aside-card h3 {
    margin: 0 0 10px;
}

.timetable-hero-card p,
.timetable-info-card p,
.admin-hero-card p,
.admin-aside-card p,
.stats-hero-card p,
.stats-aside-card p,
.booking-hero-card p,
.booking-aside-card p {
    margin: 0;
    line-height: 1.55;
}

.timetable-summary-grid,
.admin-mini-grid,
.stats-summary-grid,
.booking-summary-grid,
.booking-quick-grid,
.export-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.timetable-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-mini-grid,
.booking-quick-grid,
.export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-summary-grid,
.booking-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.timetable-summary-card,
.admin-mini-card,
.stats-summary-card,
.booking-summary-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(141, 152, 175, 0.2);
}

.timetable-summary-card strong,
.admin-mini-card strong,
.stats-summary-card strong,
.booking-summary-card strong {
    display: block;
    margin-top: 6px;
    color: #1e3a5c;
    font-size: 1.15rem;
}

.timetable-summary-card span,
.timetable-info-item span,
.admin-aside-item span,
.stats-summary-card span,
.booking-summary-card span {
    color: #5c6b7a;
    font-size: 0.88rem;
}

.timetable-info-list,
.admin-aside-list,
.booking-aside-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.timetable-info-item,
.admin-aside-item,
.booking-aside-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.timetable-info-item .material-symbols-rounded,
.booking-quick-card .material-symbols-rounded {
    color: var(--accent);
}

.booking-quick-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(141, 152, 175, 0.18);
    color: inherit;
}

.booking-quick-card small {
    display: block;
    color: #5c6b7a;
    line-height: 1.35;
}

.availability-layout,
.admin-form-wrap,
.booking-section-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.availability-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
}

.admin-form-wrap,
.booking-section-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
}

.availability-tips,
.admin-form-tips,
.booking-side-note {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: box-shadow .25s ease;
}

.booking-side-note.open {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.toggle-note {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
}

.toggle-note .label {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.toggle-note .icon {
    transition: transform .25s ease;
}

.booking-side-note.open .toggle-note .icon {
    transform: rotate(180deg);
}

.note-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.booking-side-note.open .note-content {
    padding-bottom: 1rem;
    max-height: 300px; 
}

.note-content ul {
    margin: .5rem 0 0;
    padding-left: 1.2rem;
}

.note-content li {
    margin-bottom: .4rem;
    line-height: 1.4;
}

.availability-tips h3,
.admin-form-tips h3,
.booking-side-note h3 {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.availability-tips ul,
.admin-form-tips ul,
.booking-side-note ul {
    margin: 0;
    padding-left: 18px;
    color: #3a4a5c;
    line-height: 1.5;
}

.availability-grid,
.slots-grid,
.booking-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.availability-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.slot-section-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.slot-period-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin: 12px 0 6px;
}
.slot-period-label:first-of-type {
    margin-top: 0;
}

.slot-highlight {
    padding: 12px 16px;
    border-radius: 999px;
    background: #dce8f5;
    color: #1e4a7c;
    font-size: 0.92rem;
    font-weight: 700;
}

.compact-action {
    min-height: 100%;
}

.booking-sede-select {
    min-width: 260px;
    background: white;
    color: black;
    border: 1px solid #ccc;
}


header {
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    gap: 16px;
}


.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--soft-sky);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s var(--ease);
    min-width: 44px; 
    min-height: 44px;
    display: grid; 
    place-items: center;
}

.header-hamburger:hover { background: #d4cdc4; }

.header-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}


.header-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header-hamburger.open span:nth-child(2) { opacity: 0; }
.header-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000;
}

.mobile-nav-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 45, 69, 0.35);
    backdrop-filter: blur(4px);
}

.mobile-nav-panel {
    position: absolute;
    top: 0; right: 0;
    width: min(300px, 85vw);
    height: 100%;
    background: var(--white);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 999;
}

.mobile-nav.open { display: block; }
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dim);
    margin-bottom: 8px;
    line-height: 1;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-main);
    text-decoration: none;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s var(--ease);
}

.mobile-nav-item:hover { background: var(--soft-sky); }

.mobile-nav-divider {
    height: 1px;
    background: var(--soft-sky);
    margin: 4px 0;
}

.mobile-nav-cta {
    margin-top: auto;
    padding-top: 12px;
}


.header-left, .header-right {
    flex: 1;
    min-width: 0; 
}

.header-left {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: 10px;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.header-center {
    flex: 2;
    text-align: center;
    min-width: 0;
    gap: 10px;
}

.header-brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-brand__name {
    font-family: 'Sentient-LightItalic', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--primary);
    letter-spacing: -0.01em;
    line-height: 1.15;
    white-space: nowrap;
}

.header-brand__role {
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    white-space: nowrap;
}

.welcome-text h1 .doctor-name {
    font-family: 'Sentient-BoldItalic', Georgia, serif;
}

.welcome-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.welcome-pill i { font-size: 16px; }


.sa-brand__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.sa-brand__logo {
    height: 38px;
    width: auto;
    flex-shrink: 0;
}

.sa-brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}



.school-info { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.logo-small { height: 42px; }
.school-details { display: flex; flex-direction: column;}
.school-name { min-width: 0; }
.school-name h3 { font-size: 0.9rem; color: var(--primary); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.school-name p  { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.school-addr   { font-size: 0.65rem; color: #888; }

.badge {
    background-color: rgba(176, 141, 107, 0.5);
    padding: 5px 8px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
    white-space: nowrap;
}
.main-title { font-size: 1.2rem; color: var(--primary); font-weight: 800; }


.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.header-nav__link {
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-rich);
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.22s var(--ease);
}

.header-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.25s var(--ease);
}

.header-nav__link:hover { color: var(--accent); }
.header-nav__link:hover::after,
.header-nav__link.active::after { width: 100%; }
.header-nav__link.active { color: var(--accent); }






@media (max-width: 1024px) {
    header { padding: 0.9rem 4%; }
    .school-name h3 { font-size: 0.8rem; }
    .main-title { font-size: 1.05rem; }
    .btn-reserved { padding: 9px 14px; font-size: 0.78rem; }
}


@media (max-width: 768px) {
    header { padding: 0.85rem 4%; gap: 12px; }

    .school-name p,
    .school-addr { display: none; }

    .school-name h3 { font-size: 0.78rem; }

    .logo img { height: 36px; }

    .header-center { flex: 1.5; }
    .main-title { font-size: 0.95rem; }

    .badge { font-size: 0.6rem; padding: 1px 8px; }

    .btn-reserved span:not(.material-symbols-rounded) { display: none; }
    .btn-reserved { padding: 9px 12px; border-radius: 12px; }
}


@media (max-width: 600px) {
    header {
        flex-wrap: nowrap;
        padding: 0.8rem 4%;
        gap: 10px;
    }

    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
    }

    .header-left,
    .header-center,
    .header-right {
        flex: unset; 
    }

    .header-center {
        text-align: center;
        overflow: hidden;
    }

    .main-title {
        font-size: 0.9rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    
    .btn-reserved,
    .logout,
    .addstaff,
    .user_info { display: none; }

    
    .header-hamburger { display: flex; }

    .school-name { display: none; } 

    .badge { display: none; }

}

@media (max-width: 400px) {
    header { padding: 0.75rem 3%; }
    .logo img { height: 32px; }
    .main-title { font-size: 0.85rem; }
}


.btn-reserved {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn-reserved:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(30, 45, 69, 0.2);
}

.btn-book {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--primary);
    color: var(--white);
    border: 1.5px solid var(--primary);
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn-reserved.disabled {
    opacity: 0.5;
    cursor: help;
    pointer-events: none;
}

.btn-reserved.disabled:hover {
    opacity: 0.5;
    cursor: help;
    pointer-events: none;
}

.btn-book:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(30, 45, 69, 0.2);
}
.logout, .addstaff {
    background: linear-gradient(135deg, var(--primary), #c4a27c);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
    box-shadow: 0 10px 20px rgba(30, 45, 69, 0.15);
    text-decoration: none;
}

.user .login:hover,
.log:hover, .logout:hover, .addstaff:hover {
    box-shadow: 0 15px 30px rgba(30, 45, 69, 0.25);
    filter: brightness(1.1);
}

.user_info {
    color: var(--text-dim);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.3s var(--ease);
    text-decoration: none;
}

.user_info h3 {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary) 0%, #12223a 100%);
    padding: 40px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

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

.main-content {
    flex: 1;
    padding: 40px 5%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.welcome-text h1 span {
    color: var(--accent);
    font-weight: 800;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-content: center;
    justify-content: space-evenly;
}

.stat-card {
    background: color-mix(in srgb, var(--white), transparent 5%);
    backdrop-filter: blur(8px);
    border: 1px solid color-mix(in srgb, var(--soft-sky), transparent 50%);
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-blur);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}



.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(30, 45, 69, 0.18);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 16px -6px color-mix(in srgb, currentColor 45%, transparent);
    transition: transform 0.3s var(--ease);
}

.stat-card:hover .stat-icon { transform: scale(1.06); }

.stat-info { min-width: 0; }

.stat-info h3 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-info p {
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.prima      { background: #dce8f5; color: #1565a8; }
.month      { background: #dce8f5; color: #1565a8; }
.completata { background: #dce8f5; color: #1565a8; }
.controllo  { background: #ede8f5; color: #7b3fa0; }
.week       { background: #ede8f5; color: #7b3fa0; }
.rimandata  { background: #ede8f5; color: #7b3fa0; }
.annullata  { background: #fce4ec; color: #b04f3e; }
.urgent     { background: #fce4ec; color: #b04f3e; }
.confermata { background: #dcfce7; color: #166534; }
.in-attesa  { background: #fef9c3; color: #a16207; }
.pending    { background: #fef9c3; color: #a16207; }
.default      { background: #f4f4f4; color: #a16207; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stat-card { animation: fadeUp 0.4s ease both; }
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.10s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.20s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.30s; }
.stat-card:nth-child(7) { animation-delay: 0.35s; }
.stat-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.total-icon {
    background: rgba(30, 45, 69, 0.172);
    color: var(--primary);
    border-radius: 14px;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}

.alert-pwd-default {
    background: #fff3e0;
    border-left: 4px solid #e65100;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.92rem;
    color: #bf360c;
    animation: fadeUp 0.3s ease both;
}

.alert-pwd-default .material-symbols-rounded { font-size: 22px; flex-shrink: 0; }

.dashboard-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .dashboard-cols { grid-template-columns: 1fr; }
}

.panel-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    animation: fadeUp 0.4s ease both;
    animation-delay: 0.2s;
}

.panel-card,
.admin-section,
.stat-card,
.day-card,
.day-column,
.login-card,
.card,
.card-l {
    min-width: 0;
}

.panel-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 18px;
    color: #384558;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-card h3 .material-symbols-rounded { font-size: 20px; color: var(--primary, #1e6ab0); }

.quick-actions { display: flex; flex-direction: column; gap: 10px; }
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #d4d0cb;
    background: #ebe8e2;
    text-decoration: none;
    color: #384558;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.18s ease;
    cursor: pointer;
}
.quick-action-btn:hover {
    border-color: var(--primary, #1e6ab0);
    background: #dce8f5;
    color: var(--primary, #1e6ab0);
    transform: translateX(4px);
}
.quick-action-btn .qa-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.quick-action-btn .qa-label { flex: 1; }
.quick-action-btn .arrow { font-size: 18px; opacity: 0.4; }

.staff-controls { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.staff-search-wrap { position: relative; flex: 1; min-width: 200px; }
.staff-search-wrap .material-symbols-rounded {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 20px; color: #8a96a8; pointer-events: none;
}
#staff-search {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid #d4d0cb;
    border-radius: 10px;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
#staff-search:focus { border-color: var(--primary, #1e6ab0); }
#sede-filter {
    padding: 10px 14px;
    border: 1.5px solid #d4d0cb;
    border-radius: 10px;
    font-size: 0.92rem;
    outline: none;
    background: white;
    cursor: pointer;
    transition: border-color 0.15s;
}

#sede-filter:focus { border-color: var(--primary, #1e6ab0); }

.pwd-warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color:  #b04f3e;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.pwd-ok-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.pwd-warning-badge .material-symbols-rounded, .pwd-ok-badge .material-symbols-rounded { font-size: 15px; }

#no-results {
    display: none;
    text-align: center;
    padding: 32px;
    color: #8a96a8;
    font-size: 0.95rem;
}
#no-results .material-symbols-rounded { font-size: 40px; display: block; margin-bottom: 8px; }
.results-count { font-size: 0.82rem; color: #647180; margin-bottom: 10px; min-height: 1.2em; }



.booking-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-blur);
    overflow: hidden;
    background: var(--white);
}

.card-header {
    background: var(--bg-main);
    border-bottom: 1px solid var(--soft-sky);
    padding: 0 20px;
}

.card-header .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    border-bottom: none;
    overflow-x: auto;
    scrollbar-width: none; 
}

.card-header .nav-tabs::-webkit-scrollbar { display: none; } 

.card-header .nav-tabs .nav-item {
    flex: 0 0 auto;
    margin: 0;
}

.card-header .nav-tabs .nav-link {
    display: inline-flex;      
    align-items: center;
    width: auto;                
    margin: 0;                   
    border: none;
    border-radius: 0;
    padding: 16px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dim);
    background: transparent;
    white-space: nowrap;
    position: relative;
    transition: color 0.25s var(--ease);
}

.card-header .nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s var(--ease);
}

.card-header .nav-tabs .nav-link:hover {
    color: var(--primary);
    background: transparent;
}

.card-header .nav-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
}

.card-header .nav-tabs .nav-link.active::after {
    transform: scaleX(1);
}

.card-header .nav-tabs .nav-link.disabled {
    color: #c9c5be;
    cursor: not-allowed;
}

.card-header .nav-tabs .nav-link.disabled:hover {
    color: #c9c5be;
}

.card-body {
    padding: 36px 28px;
}

.card-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-text {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.staff-container {
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-blur);
    border: 1px solid var(--soft-sky);
    overflow-x: auto;
    margin-bottom: 30px;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.staff-table th {
    text-align: left;
    padding: 18px;
    border-bottom: 2px solid var(--soft-sky);
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-table td {
    padding: 18px;
    border-bottom: 1px solid #d8e2f0;
    vertical-align: middle;
}

.table-responsive { overflow-x: auto; }

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 35px;
    height: 35px;
    background: var(--soft-sky);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.sede-text {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dim);
    font-size: 0.9rem;
}


.btn-primary, .log {
    cursor: pointer;
    isolation: isolate;
    background: linear-gradient(135deg, var(--primary), #c4a27c);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary:hover, .log:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(30, 45, 69, 0.2);
}

.btn-primary:active, .log:active {
    transform: scale(0.98);
    filter: brightness(0.95);
    box-shadow: 0 5px 10px rgba(30, 45, 69, 0.15);
}

.btn-add {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: filter 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-add:hover {
    filter: brightness(1.2);
    box-shadow: 0 10px 20px rgba(30, 45, 69, 0.2);
}

.btn-delete-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fdf4f3;
    color: #d76e5c;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-delete-circle:hover {
    background: #d76e5c;
    color: white;
}

.btn-back-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #dce8f5;
    color: var(--accent);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-back-circle:hover {
    background: var(--accent);
    color: white;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--accent);
    transition: border-color 0.3s var(--ease);
    margin-top: 10px;
}

.btn-download:hover { border-color: transparent; }

.action-buttons { display: flex; align-items: center; gap: 6px; }
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-dim);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-action:hover { background: rgba(30, 45, 69, 0.08); color: var(--primary); }
.btn-action .bi, .btn-action i { font-size: 1.05rem; }
.btn-delete { color: #d76e5c; }
.lock { color: #d76e5c; }

.btn-approve-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #dcfce7;
    color: #166534;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-approve-circle:hover { background: #166534; color: white; }

.btn-reject-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: #991b1b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-reject-circle:hover { background: #991b1b; color: white; }


.role-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-studente, .badge-genitore { background: #dce8f5; color: #06904f; }
.badge-docente                   { background: #f3e8ff; color: #7e22ce; }
.badge-personale-ata             { background: #d1fae5; color: #065f46; }
.badge-admin                     { background: #fef3c7; color: #b45309; }

.badge-conferma { background: #f0fdf4; color: #166534; }
.badge-attesa   { background: #fef3c7; color: #d97706; }
.badge-rifiuta  { background: #fae9e6; color: #873a2d; }


.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.login-card {
    background: var(--white);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--soft-sky);
    box-shadow: var(--shadow-blur);
    width: 100%;
    max-width: 450px;
    text-align: center;
    transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.login-card:hover {
    border-color: var(--accent);
    box-shadow: 0 25px 60px rgba(30, 45, 69, 0.1);
}

.login-card h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.registration-card {
    max-width: 1024px !important;
    background: var(--white);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--soft-sky);
    box-shadow: var(--shadow-blur);
    width: 100%;
    transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.login-container a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s var(--ease);
}

.login-container a:hover { color: var(--text-rich); }

.login-container a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--text-rich);
    transition: width 0.3s var(--ease);
}

.login-container a:hover::after { width: 100%; }

.login-card a:has(.back)::after,
.login-card a.back-link::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
}

.login-card a:has(.back):hover { color: inherit; }

.link-action {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s var(--ease), transform 0.2s var(--ease);
}

.link-action:hover  { color: var(--primary); transform: translateY(-1px); }
.link-action:active { color: var(--accent); }

.btn-question {
    width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--primary);
    border-radius: 50%;

    background-color: transparent;
    color: var(--primary);

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-question:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.btn-question:focus {
    outline: none;
}

.btn-question:active {
    transform: scale(0.95);
}

.btn-question-close {
    width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #bf360c;
    border-radius: 50%;

    background-color: transparent;
    color: #bf360c;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-question-close:hover {
    background-color: #bf360c;
    color: var(--white);
    transform: scale(1.1);
}

.btn-question-close:focus {
    outline: none;
}

.btn-question-close:active {
    transform: scale(0.95);
}


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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    margin-left: 5px;
}

.form-group input, select {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--soft-sky);
    font-family: inherit;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-group input:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(176, 141, 107, 0.1);
}

.form-group select {
    cursor: pointer;
    background-color: var(--white);
}

.form-group optgroup {
    font-weight: bold;
    color: #333;
    background-color: #f9f9f9;
}

.form-group option {
    padding: 5px;
    background-color: var(--white);
}

.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--soft-sky);
    background: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-rich);
    line-height: 1.6;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    resize: vertical;
    min-height: 120px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    overflow-x: hidden;
}

.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(176, 141, 107, 0.1);
    background: white;
}

.form-group textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

select {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--soft-sky);
    background: white;
    font-family: inherit;
    color: var(--text-rich);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23234e70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    cursor: pointer;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(176, 141, 107, 0.1);
}

select optgroup {
    color: var(--text-rich);
    font-weight: 700;
}

select option {
    color: var(--text-dim);
    font-weight: 400;
}


.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-field {
    width: 100%;
    padding-right: 40px; 
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.toggle-password:hover  { color: var(--accent); }
.toggle-password:active { color: var(--primary); }


.status-msg {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-md);
    margin: 15px 0;
    font-size: 0.95rem;
    font-weight: 500;
    animation: fadeInDown 0.4s var(--ease);
}

.status-msg.error {
    background: #fcf5f4;
    color: #c3533f;
    border: 1px solid #f7d7d1;
}

.status-msg.success {
    background: #dcfce7;
    color: #166534;
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    border: 1px solid #bbf7d0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.required-asterisk {
    color: #dc3545;
    margin-left: 2px;
}
.form-note {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
    text-align: left;
    margin-top: 20px;
}

.full-width {
    grid-column: span 2;
    margin-top: 20px;
}

.username-preview {
    grid-column: 1 / -1;
    width: 100%;
    background: var(--bg-main);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 2px dashed var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 20px 0;
    font-size: 1rem;
    color: var(--text-dim);
    box-sizing: border-box;
    transition: border-style 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.username-preview span:first-child {
    font-size: 1.4rem;
    color: var(--primary);
}

.username-preview.active {
    border-style: solid;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.consent-card {
    background: linear-gradient(180deg, #dce8f5 0%, #ffffff 100%);
    border: 1px solid #b8d4f0;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-top: 10px;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.consent-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    flex-shrink: 0;
}

.consent-check input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.consent-check label {
    margin: 0;
    font-size: 0.93rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-rich);
}

.consent-note {
    margin-top: 10px;
    padding-left: 30px;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.minor-consent-box {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px dashed #8eb8e8;
    background: #dce8f5;
}

.minor-consent-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--primary);
}

.minor-consent-box p {
    margin-bottom: 14px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-dim);
}

#user-preview {
    color: var(--primary);
    font-weight: 800;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: rgba(176, 141, 107, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}


.back {
    background: transparent;
    position: relative;
    top: -2em;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-rich);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.back:hover {
    left: 50%;
    transform: translate(-50%, -2px);
    box-shadow: 0 15px 30px rgba(30, 45, 69, 0.25);
    filter: brightness(1.1);
}


.pwd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 45, 69, 0.9);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pwd-modal {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-blur);
}

.pwd-modal h2 { color: var(--primary); margin-bottom: 10px; }
.pwd-modal p  { color: var(--text-dim); margin-bottom: 25px; font-size: 0.9rem; }

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
}

.dashboard-header__cta {
    flex-shrink: 0;
}

.admin-dashboard-page {
    background-color: var(--bg-main);
}

.welcome-eyebrow {
    margin: 0 0 6px;
    color: var(--text-dim);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.dashboard-header__intro {
    margin: 6px 0 0;
    color: var(--text-dim);
    font-size: .92rem;
}






.main-content.dashboard-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(176, 141, 107, 0.18);
    box-shadow: var(--shadow-blur);
}

.welcome-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.welcome-text h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.welcome-text h1 .doctor-name {
    font-family: 'Sentient-BoldItalic', Georgia, serif;
    color: var(--primary);
}

.dashboard-header__intro {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-top: 0.4rem;
}

.btn-primary.dashboard-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s var(--ease);
    box-shadow: 0 4px 14px rgba(30, 45, 69, 0.18);
}

.btn-primary.dashboard-header__cta:hover {
    background: color-mix(in srgb, var(--primary) 88%, black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 45, 69, 0.25);
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--soft-sky) 60%, transparent);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    box-shadow: var(--shadow-blur);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon.month   { background: #eef4ff; color: #2b6cb0; }
.stat-icon.week    { background: #f0fdf4; color: #15803d; }
.stat-icon.pending { background: #fffbe8; color: #b45309; }
.stat-icon.urgent  { background: #fef2f2; color: #dc2626; }

.stat-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-rich);
    line-height: 1.1;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 2px;
}


.dashboard-content-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
}

.dashboard-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--soft-sky) 60%, transparent);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-blur);
}

.dashboard-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.dashboard-panel__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.dashboard-panel__header h2 {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

.dashboard-panel__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dashboard-panel__link:hover {
    color: var(--primary);
}

.dashboard-panel__count {
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}


.dashboard-agenda-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-agenda-item {
    display: grid;
    grid-template-columns: 60px 1fr 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.dashboard-agenda-item:hover {
    background: #ebe7df;
    transform: translateX(3px);
}

.dashboard-agenda-item time {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.dashboard-agenda-item__patient {
    font-weight: 600;
    color: var(--text-rich);
    font-size: 0.92rem;
}

.dashboard-agenda-item__clinic {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.dashboard-agenda-item .badge.confermata {
    background: #dcfce7;
    color: #15803d;
}

.dashboard-agenda-item .badge.in-attesa {
    background: #fef9c3;
    color: #a16207;
}


.dashboard-pending-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dashboard-pending-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s var(--ease);
}

.dashboard-pending-item:hover {
    background: #ebe7df;
}

.patient-avatar--sm {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.dashboard-pending-item span:not(.patient-avatar) {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dashboard-pending-item strong {
    font-size: 0.9rem;
    color: var(--text-rich);
}

.dashboard-pending-item small {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.dashboard-pending-item i {
    color: var(--accent);
}

.dashboard-panel__footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    padding-top: 0.75rem;
}

.dashboard-panel__footer-link:hover {
    color: var(--accent);
}


.dashboard-panel__empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-panel__empty i {
    font-size: 2.2rem;
    color: var(--accent);
}


.dashboard-quick-actions {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--soft-sky) 60%, transparent);
    padding: 1.75rem;
    box-shadow: var(--shadow-blur);
}

.dashboard-quick-actions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.dashboard-quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.dashboard-quick-action:hover {
    background: #ebe7df;
    transform: translateY(-2px);
}

.dashboard-quick-action > i:first-child {
    font-size: 1.5rem;
    color: var(--primary);
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.dashboard-quick-action span {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dashboard-quick-action strong {
    font-size: 0.95rem;
    color: var(--text-rich);
}

.dashboard-quick-action small {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.dashboard-quick-action > i:last-child {
    color: var(--accent);
    font-size: 1.1rem;
}


.pwd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 45, 69, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.pwd-modal {
    background: var(--white);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.pwd-modal__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: grid;
    place-items: center;
    margin: 0 auto 1.25rem;
}

.pwd-modal h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pwd-modal p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.pwd-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.pwd-modal__hint {
    font-size: 0.82rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pwd-modal__submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.85rem;
}


@media (max-width: 992px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }

    .dashboard-agenda-item {
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
    }

    .dashboard-agenda-item__clinic {
        grid-column: 1 / -1;
    }
}


.aboutme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 8%;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.full {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 8%;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;

}
.aboutme-text { flex: 1; animation: slideInLeft 1s var(--ease); }

.homepage-image {
    flex: 1;
    position: relative;
    animation: fadeInRight 1s var(--ease);
    width: 350px;
    aspect-ratio: 1;
    padding: 10px;

    background: white;

    
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;

    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

.homepage-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;

    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;

    box-shadow: var(--shadow-blur);
}

.aboutme-text h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(to right, var(--primary), #c4a27c);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aboutme-text p {
    font-size: 1.4rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.aboutme-text i {
    font-family: Sentient-BoldItalic;
}

.describe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 4rem 8% 8rem;
    background: linear-gradient(180deg, transparent, rgb(235 240 250 / 0.6));
}

.books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 4rem 8% 8rem;
}


.aiuto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 4rem 8% 8rem;
    background: linear-gradient(180deg, #dce8f5, var(--bg-main));
}


.card, .card-l {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    background: var(--white);
    border-color: var(--accent);
    box-shadow: var(--shadow-blur);
    transform: translateY(-20px) scale(1.02);
    transition: all 0.4s var(--ease);
}

.card-l:hover {
    background: var(--white);
    border-color: var(--accent);
    box-shadow: var(--shadow-blur);
}

.more {
    position: relative;
    color: var(--text-dim);
    font-weight: 600;
    text-decoration: none;
}

.more:hover {
    color: var(--primary);
}

.more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.more:hover::after {
    width: 100%;
}

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

.card-l a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s var(--ease);
}

.card-l a:hover { color: var(--primary); }

.card-l a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    z-index: 1;
    background-color: var(--primary);
    transition: width 0.3s var(--ease);
}

.card-l a:hover::after { width: 100%; }

.card-l p {
    color: var(--accent);
    display: flex;
    align-items: center;
    transition: color 0.3s var(--ease);
}

.card-l p:hover { color: var(--primary); }

.circle-icon {
    width: 64px;
    height: 64px;
    background: #d8e2f0;
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: transform 0.6s var(--ease), background 0.6s var(--ease), color 0.6s var(--ease);
}

.card:hover .circle-icon, .card-l:hover .circle-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(-25deg);
    transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}

.card h3, .card-l h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.card ul, .card-l ul { list-style: none; }
.card li, .card-l li {
    padding: 10px 0;
    color: var(--text-dim);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}


.day-card {
    background: var(--white);
    border: 1px solid var(--soft-sky);
    border-radius: 16px;
    padding: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.day-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.day-card.disabled { background: var(--bg-main); opacity: 0.7; filter: grayscale(1); }
.day-card h4 { color: var(--text-rich); font-size: 1.1rem; font-weight: 700; }

.slot-preview {
    display: block;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed var(--soft-sky);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.slot-btn {
    padding: 8px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    font-size: 0.9rem;
}

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

.day-column {
    background: var(--bg-main);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--soft-sky);
}

.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.status-Pendente   { background: #fef3c7; color: #d97706; }
.status-Confermato { background: #dcfce7; color: #166534; }


.day-column h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.slot-btn--selected,
.slot-btn--selected:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(30, 45, 69, 0.22);
}

.form-hint {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 8px;
}

.btn-book:disabled,
.btn-book:disabled:hover {
    background: var(--soft-sky);
    border-color: var(--soft-sky);
    color: var(--text-dim);
    cursor: not-allowed;
    box-shadow: none;
}

#calendarArea {
    animation: fadeUp 0.35s var(--ease) both;
}


.switch {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    cursor: pointer;
    font-size: 28px;
    display: inline-block;
}


.slider:before {
    color: var(--accent);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    content: "lock_open";
    font-family: 'Material Symbols Rounded', sans-serif;
}


input:checked + .slider:before {
    content: "lock";
    font-family: 'Material Symbols Rounded', sans-serif;
}

input[type="time"] {
    border: 1px solid var(--soft-sky);
    border-radius: 8px;
    padding: 8px;
    font-family: inherit;
    color: var(--text-rich);
}

input[type="time"]:focus { border-color: var(--accent); }


.info-hero {
    text-align: center;
    padding: 60px 20px 48px;
    max-width: 680px;
    margin: 0 auto;
}

.info-hero .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.info-hero h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-rich);
    margin-bottom: 14px;
}

.info-hero h2 em { font-style: normal; color: var(--primary); }
.info-hero p { font-size: 1rem; color: var(--text-dim); line-height: 1.7; }

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-rich);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--soft-sky);
}

.section-title .material-symbols-rounded { color: var(--primary); font-size: 1.3rem; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--soft-sky);
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.step-card:hover {
    box-shadow: 0 8px 30px rgba(196, 162, 124, 0.10);
    transform: translateY(-3px);
}

.step-number {
    width: 36px; height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
    margin-bottom: 14px; flex-shrink: 0;
}

.step-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-rich); margin-bottom: 6px; }
.step-card p  { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }
.step-connector { display: none; }

.orari-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.orari-card { background: var(--white); border: 1px solid var(--soft-sky); border-radius: 16px; overflow: hidden; transition: box-shadow 0.2s; }
.orari-card:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07); }

.orari-card-header {
    padding: 16px 20px;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 0.95rem;
}

.orari-card-header .material-symbols-rounded { font-size: 1.1rem; opacity: 0.9; }
.orari-table { width: 100%; border-collapse: collapse; }
.orari-table tr { border-bottom: 1px solid #d8e2f0; transition: background 0.15s; }
.orari-table tr:last-child { border-bottom: none; }
.orari-table tr:hover { background: #dce8f5; }
.orari-table td { padding: 10px 20px; font-size: 0.85rem; color: var(--text-rich); }
.orari-table td:last-child { text-align: right; color: var(--primary); font-weight: 600; }
.orari-note { font-size: 0.78rem; color: var(--text-dim); padding: 10px 20px 14px; font-style: italic; }

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px; margin-bottom: 48px;
}

.servizio-card {
    background: var(--white); border: 1px solid var(--soft-sky); border-radius: 16px;
    padding: 22px 20px; display: flex; gap: 16px; align-items: flex-start;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%; box-sizing: border-box; min-height: 90px;
}

.servizio-card:hover { box-shadow: 0 8px 30px rgba(196, 162, 124, 0.09); transform: translateY(-2px); }

.servizio-icon {
    width: 44px; height: 44px;
    background: #dce8f5; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--primary);
}

.servizio-icon .material-symbols-rounded { font-size: 1.3rem; }
.servizio-body h4 { font-size: 0.92rem; font-weight: 700; color: var(--text-rich); margin-bottom: 5px; }
.servizio-body p  {
    font-size: 0.82rem; color: var(--text-dim); line-height: 1.6;
    margin-top: 3px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; }

.faq-item { background: var(--white); border: 1px solid var(--soft-sky); border-radius: 14px; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }

.faq-question {
    width: 100%; background: none; border: none;
    padding: 18px 20px; display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
    cursor: pointer; text-align: left; font-family: inherit;
}

.faq-question-text {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.92rem; font-weight: 600; color: var(--text-rich);
}

.faq-question-text .material-symbols-rounded { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.faq-chevron { color: var(--text-dim); font-size: 1.2rem; transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 20px; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 18px; }

.faq-answer p {
    font-size: 0.87rem; color: var(--text-dim); line-height: 1.7;
    padding-left: 34px; border-left: 2px solid #b8d4f0;
    margin-left: 10px; padding-top: 4px;
}

.info-section { max-width: 960px; margin: 0 auto; padding: 20px 20px; }

.book-appointment {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--white);
    border-radius: var(--radius-md);

}


footer {
    padding: 6rem 8%;
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
}

.footer-col { width: 100%; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; }

.footer-col a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s var(--ease);
}

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

.footer-col a::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    bottom: -2px; left: 0;
    background-color: var(--white);
    transition: width 0.3s var(--ease);
}

.footer-col a:hover::after { width: 100%; }

.footer-list { list-style: none; padding: 0; margin: 0; }

.footer-list li {
    display: flex; color: rgba(255, 255, 255, 0.7);
    align-items: center; flex-wrap: wrap;
    gap: 8px; margin-bottom: 15px; line-height: 1.6;
}

.footer-list a { color: var(--accent); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.footer-list a:hover { color: var(--white); text-decoration: underline; }

.footer-icon, .ai-icons img { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin: 0 4px; opacity: 1; }
.ai-icons { display: inline-flex; align-items: center; gap: 5px; margin-left: 5px; flex-wrap: wrap; }

.credits-list { list-style: none; padding: 0; margin: 0; }
.credits-list li { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.9rem; line-height: 1.4; }

.btn-download {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 15px; border-radius: 8px;
    text-decoration: none; color: inherit;
    border: 1px solid var(--accent);
    transition: border-color 0.3s var(--ease);
    margin-top: 10px;
}

.btn-download:hover { border-color: transparent; }
.footer-help { margin-top: 25px; }


@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-20px); }
}


.toast-notification {
    position: fixed;
    top: 30px; right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    min-width: 300px;
    border-left: 6px solid #e56961;
    animation: slideIn 0.5s ease-out forwards;
    max-width: min(420px, calc(100vw - 32px));
    overflow-wrap: anywhere;
}

.toast-notification.success { border-left-color: #2ed573; }
.toast-notification .material-symbols-rounded { font-size: 24px; }
.toast-fade-out { animation: fadeOut 0.5s forwards; }





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

@media (max-width: 1200px) {
    .stat-card { padding: 18px; }
    .stats-grid { gap: 18px; }
    .staff-table th, .staff-table td { padding: 14px; }
    .login-card { padding: 40px; }
}

@media (max-width: 1024px) {
    body { font-size: 14px; }
    header { padding: 1rem 4%; }
    .sidebar { width: 85px; padding: 28px 8px; }
    .nav-link span:not(.material-symbols-rounded) { display: none; }
    .main-content { padding: 30px 3%; }
    .dashboard-header h1 { font-size: 1.5rem; }
    .aboutme, .full { padding: 4rem 6%; gap: 48px; }
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .sidebar { height: auto; position: relative; }
    .dashboard-container { flex-direction: column; }
    .welcome-text h1 { font-size: 1.4rem; }
    .card { padding: 28px 20px; }
    .staff-table { min-width: 0; }
    .aboutme, .full { gap: 40px; }
    .aiuto { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; text-align: center; padding: 1rem 3%; }
    .school-info { flex-direction: column; gap: 8px; }
    .school-name h3 { font-size: 0.9rem; }
    .school-name p  { font-size: 0.65rem; }
    .title h1 { font-size: 1.1rem; }
    .user { margin-top: 0.5rem; }
    .dashboard-container { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; flex-direction: row; justify-content: center; overflow-x: auto; }
    .nav-link span:not(.material-symbols-rounded) { display: none; }
    .nav-link { padding: 8px 10px; font-size: 0.84rem; margin-bottom: 6px; }
    .main-content { padding: 20px 3%; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 18px; }
    .admin-section, .card, .login-card { padding: 20px; }
    footer { text-align: center; grid-template-columns: 1fr; padding: 3rem 2rem; }
    .footer-col { width: 100%; }
    .credits-list li { justify-content: center; flex-wrap: wrap; }
    .footer-help { display: flex; flex-direction: column; align-items: center; }
    .signup-link, .link-action { display: inline-block; font-size: 0.9rem; }
    .slot-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .slot-btn { font-size: 0.85rem; padding: 8px 11px; }
    .user_info h3 { max-width: 160px; }
}

@media (max-width: 600px) {
    .aboutme, .full { flex-direction: column; padding: 2.5rem 4%; text-align: center; gap: 40px; }
    .homepage-image, .aboutme-text { width: 100%; }
    .aboutme-text h1 { font-size: 1.8rem; }
    .aboutme-text p  { font-size: 1rem; }
    .card, .admin-section, .login-card { border-radius: 20px; }
    .form-group input, .password-field { padding: 10px; }
    footer { padding: 2rem 1rem; }
    .footer-list li { font-size: 0.85rem; }
    .link-action { font-size: 0.88rem; }
    .username-preview { grid-column: span 1; flex-direction: column; text-align: center; }
    .grid-form { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .info-hero { padding: 36px 16px 32px; }
    .cta-banner { padding: 36px 20px; }
    .orari-table td { padding: 9px 14px; }
    .consent-card { padding: 16px; }
    .consent-check { align-items: flex-start; }
    .consent-check label { font-size: 0.88rem; line-height: 1.6; }
    .header-right { gap: 6px; }
    .btn-delete-circle,
    .btn-back-circle { width: 34px; height: 34px; }
    .pwd-modal { padding: 28px 18px; border-radius: 20px; }
    .staff-controls { flex-direction: column; }
    .staff-search-wrap { min-width: 0; }
    .section-header { align-items: stretch; }
    .section-header > * { width: 100%; }
    .toast-notification {
        top: auto;
        right: 12px;
        left: 12px;
        bottom: 12px;
        min-width: 0;
        max-width: none;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    header { padding: 0.85rem 2.5%; }
    .school-name h3 { font-size: 0.85rem; }
    .title h1 { font-size: 1.05rem; }
    .logo img { height: 40px; }
    .title-subtitle { display: none; }
    .dashboard-header .welcome-text h1 { font-size: 1.2rem; }
    .sidebar { padding: 16px 8px; gap: 10px; }
    .nav-link { justify-content: center; padding: 8px; width: auto; }
    .main-content { padding: 16px 2%; }
    .stats-grid { gap: 14px; }
    .staff-table th, .staff-table td { padding: 11px; font-size: 0.75rem; }
    .badge-psicologo, .badge-referente, .badge-cancellato,
    .badge-da-confermare, .badge-confermato, .badge-rifiutato { font-size: 0.65rem; padding: 4px 9px; }
    .btn-primary, .log, .slot-btn { font-size: 0.86rem; padding: 9px 12px; }
    .dashboard-footer { display: block; text-align: center; }
    .total-card { padding: 16px 18px; gap: 12px; }
    .total-card h2 { font-size: 1.8rem; }
    .stat-info h3 { font-size: 1.45rem; }
    .welcome-text h1,
    .dashboard-header .welcome-text h1 { line-height: 1.25; }
    .sede-text { font-size: 0.8rem; }
    .role-badge { font-size: 0.68rem; padding: 5px 10px; }
    .slot-grid { grid-template-columns: 1fr; }
    .credits-list li { font-size: 0.85rem; }
}






#page-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(235, 240, 250, 0.82); 
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


#page-loader-overlay.page-loader-visible {
    opacity: 1;
    pointer-events: all;
}


#page-loader-overlay.page-loader-hiding {
    opacity: 0;
    pointer-events: none;
}


.page-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 36px 48px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    box-shadow:
            0 8px 32px rgba(30, 45, 69, 0.10),
            0 2px 8px rgba(30, 45, 69, 0.06);
    border: 1px solid rgba(176, 141, 107, 0.18);
    transform: translateY(0);
    animation: loaderBoxIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes loaderBoxIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.page-loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loader-logo svg {
    animation: loaderSpin 0.9s linear infinite;
}

@keyframes loaderSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


.page-loader-arc {
    transform-origin: center;
    animation: loaderArcPulse 1.5s ease-in-out infinite;
}

@keyframes loaderArcPulse {
    0%   { stroke-dashoffset: 88; opacity: 1; }
    50%  { stroke-dashoffset: 20; opacity: 0.85; }
    100% { stroke-dashoffset: 88; opacity: 1; }
}


.page-loader-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
    margin: 0;
}







.mobile-nav-user-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 18px 18px;
    background:
            radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 34%),
            linear-gradient(145deg, #1e2d45 0%, #253d60 52%, #3a5a8a 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.mobile-nav-avatar {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    backdrop-filter: blur(10px);
}

.mobile-nav-status-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}

.mobile-nav-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.mobile-nav-user-name {
    font-size: 0.96rem;
    font-weight: 800;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav-user-role {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.78);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav-close {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
    align-self: flex-start;
    margin-top: 0;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.24);
    border-color: rgba(255,255,255,0.28);
    transform: translateY(-1px);
}

.mobile-nav-close .material-symbols-rounded { font-size: 1.2rem; }

.mobile-nav-items {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
    flex: 1;
    background:
            linear-gradient(180deg, rgba(235, 240, 250,0.95) 0%, rgba(225, 233, 248,0.98) 100%);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(141, 152, 175,0.16);
    box-shadow: 0 8px 24px rgba(18, 34, 58,0.04);
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.mobile-nav-item:hover {
    background: white;
    border-color: rgba(176, 141, 107,0.28);
    box-shadow: 0 12px 26px rgba(30, 45, 69,0.08);
    transform: translateY(-1px);
}

.mobile-nav-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(176, 141, 107,0.16), rgba(30, 45, 69,0.08));
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-nav-item-icon .material-symbols-rounded {
    font-size: 1.18rem;
}

.mobile-nav-item-label {
    flex: 1;
    min-width: 0;
}

.mobile-nav-item-arrow {
    color: rgba(30, 45, 69,0.32);
    font-size: 1.1rem;
    transition: transform 0.18s var(--ease), color 0.18s var(--ease);
}

.mobile-nav-item:hover .mobile-nav-item-arrow {
    color: rgba(30, 45, 69,0.58);
    transform: translateX(2px);
}


.mobile-nav-item-danger {
    color: #a34332 !important;
    background: linear-gradient(145deg, rgba(252,245,244,0.98), rgba(255,255,255,0.94));
    border-color: rgba(229,146,132,0.22);
}

.mobile-nav-item-danger .mobile-nav-item-icon {
    background: linear-gradient(145deg, rgba(229,146,132,0.16), rgba(250,233,230,0.9));
    color: #a34332;
}

.mobile-nav-item-danger .mobile-nav-item-arrow,
.mobile-nav-item-danger .material-symbols-rounded {
    color: #a34332 !important;
}

.mobile-nav-item-danger:hover {
    background: #fef7f6 !important;
    border-color: rgba(215,110,92,0.28);
    color: #a34332 !important;
}


@media (max-width: 768px) {
    .avatar { display: none !important; }

    .badge-psico-ref {
        display: inline-block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .header-hamburger {
        display: flex !important;
    }

    


    .header-right > *:not(.header-hamburger):not(.user_info) {
        display: none !important;
    }

    
    .header-right > .user_info {
        display: none !important;
    }

    
    .header-center {
        flex: 1 1 auto;
    }
}

@media (min-width: 769px) {
    
    .mobile-nav { display: none !important; }
    .header-hamburger { display: none !important; }
}


@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }

    .welcome-text {
        width: 100%;
    }

    .dashboard-header__cta {
        width: 100%;
    }

    .welcome-text h1 {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
    }

    
    .dashboard-saluto {
        display: block;
        font-size: 0.85rem;
        color: var(--text-dim);
        font-weight: 500;
        margin-bottom: 2px;
    }

    
    .dashboard-nome {
        display: block;
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--primary);
        line-height: 1.2;
    }

    
    .dashboard-sede {
        display: block;
        font-size: 0.80rem;
        color: var(--text-dim);
        margin-top: 4px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    
    .slot-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .slot-btn {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    
    .prenotazioni-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 14px;
    }

    
    .stato-confermata  { background: #d1fae5; color: #065f46; }
    .stato-in-attesa   { background: #fef9c3; color: #a16207; }
    .stato-rifiutata   { background: #fae9e6; color: #873a2d; }
}


.badge-confermata,
.badge-stato-confermata  { background: #d1fae5; color: #065f46; border-radius: 20px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700; }

.badge-in-attesa,
.badge-stato-in-attesa   { background: #fef9c3; color: #a16207; border-radius: 20px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700; }

.badge-rifiutata,
.badge-stato-rifiutata   { background: #fae9e6; color: #873a2d; border-radius: 20px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700; }

@media (max-width: 960px) {
    .timetable-hero,
    .availability-layout,
    .admin-hero-grid,
    .admin-form-wrap,
    .stats-hero-grid,
    .booking-hero-grid,
    .booking-section-layout,
    .timetable-summary-grid,
    .stats-summary-grid,
    .booking-summary-grid,
    .admin-mini-grid,
    .booking-quick-grid,
    .export-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quick-menu-grid {
        grid-template-columns: 1fr;
    }

    .quick-action-btn.quick-card {
        padding: 14px;
    }
}

@media (max-width: 640px) {
    .timetable-hero-card,
    .timetable-info-card,
    .admin-hero-card,
    .admin-aside-card,
    .stats-hero-card,
    .stats-aside-card,
    .booking-hero-card,
    .booking-aside-card {
        padding: 18px;
        border-radius: 20px;
    }

    .availability-tips,
    .admin-form-tips,
    .booking-side-note {
        padding: 16px;
    }

    .slot-highlight {
        width: 100%;
        text-align: center;
        border-radius: 18px;
    }

    .booking-sede-select {
        min-width: 100%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    body.public-login-mobile .header-right {
        justify-content: flex-end;
    }

    body.public-login-mobile .header-right .btn-reserved {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 9px 12px;
        border-radius: 12px;
        min-width: 44px;
        min-height: 44px;
    }

    body.public-login-mobile .header-right .btn-reserved span:last-child {
        display: none;
    }

    body.public-login-mobile .header-right .btn-reserved .material-symbols-rounded {
        margin: 0;
    }

    body.public-login-mobile .header-right .header-hamburger,
    body.public-login-mobile .mobile-nav {
        display: none !important;
    }
}


.tips-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c4a27c, #c4a27c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    transition: transform .25s ease, box-shadow .25s ease;
    z-index: 999;
}

.tips-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 26px rgba(0,0,0,.32);
}


.tips-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}


.tips-popup-content {
    background: white;
    width: 90%;
    max-width: 380px;
    padding: 1.6rem;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    animation: popupFade .25s ease;
    position: relative;
}

@keyframes popupFade {
    from { transform: scale(.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


.close-popup {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #555;
}

.tips-popup-content h3 {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.tips-popup-content ul {
    padding-left: 1.2rem;
}

.tips-popup-content li {
    margin-bottom: .6rem;
    line-height: 1.45;
}






.sa-header {
    background: var(--white);
    border-bottom: 1px solid rgba(176, 141, 107, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sa-header__container {
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}


.sa-header__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--primary);
    flex-shrink: 0;
}

.sa-brand__logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.sa-brand__text {
    display: flex;
    flex-direction: column;
}

.sa-brand__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.sa-brand__subtitle {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.03em;
}


.sa-header__nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sa-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-rich);
    text-decoration: none;
    transition: all 0.2s var(--ease);
}

.sa-nav__link svg,
.sa-nav__link i {
    font-size: 1.1rem;
    color: var(--accent);
    transition: color 0.2s var(--ease);
}

.sa-nav__link:hover {
    background: var(--bg-main);
    color: var(--primary);
}

.sa-nav__link:hover svg,
.sa-nav__link:hover i {
    color: var(--primary);
}


.sa-nav__link.is-active,
.sa-nav__link[aria-current="page"] {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    color: var(--primary);
    font-weight: 700;
}

.sa-nav__link.is-active svg,
.sa-nav__link.is-active i {
    color: var(--primary);
}


.sa-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}


.sa-notification-wrapper {
    position: relative;
}


.sa-notification__trigger {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid color-mix(in srgb, var(--soft-sky) 60%, transparent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.sa-notification__trigger:hover,
.sa-notification__trigger[aria-expanded="true"] {
    background: #ebe7df;
    color: var(--accent);
    border-color: rgba(176, 141, 107, 0.3);
}

.sa-notification__trigger svg,
.sa-notification__trigger i {
    font-size: 1.25rem;
    width: 20px;
    height: 20px;
}


.sa-notification__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc2626;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.3);
}


.sa-notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(176, 141, 107, 0.18);
    box-shadow: 0 12px 35px rgba(30, 45, 69, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    overflow: hidden;
    z-index: 1010;
}

.sa-notification-dropdown.is-open,
.sa-notification__trigger[aria-expanded="true"] + .sa-notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sa-notification__header {
    padding: 1rem 1.25rem;
    background: var(--bg-main);
    border-bottom: 1px solid color-mix(in srgb, var(--soft-sky) 60%, transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sa-notification__header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.sa-notification__mark-read {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.sa-notification__mark-read:hover {
    color: var(--primary);
    text-decoration: underline;
}

.sa-notification__list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sa-notification__item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--soft-sky) 40%, transparent);
    text-decoration: none;
    transition: background 0.2s var(--ease);
}

.sa-notification__item:last-child {
    border-bottom: none;
}

.sa-notification__item:hover {
    background: var(--bg-main);
}

.sa-notification__item.is-unread {
    background: color-mix(in srgb, var(--bg-main) 60%, var(--white));
}

.sa-notification__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef4ff;
    color: #2b6cb0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.sa-notification__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sa-notification__text {
    font-size: 0.85rem;
    color: var(--text-rich);
    line-height: 1.35;
}

.sa-notification__time {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.sa-notification__footer {
    padding: 0.75rem;
    text-align: center;
    background: var(--bg-main);
    border-top: 1px solid color-mix(in srgb, var(--soft-sky) 60%, transparent);
}

.sa-notification__footer a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.sa-notification__footer a:hover {
    color: var(--accent);
}


.sa-notification__empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.88rem;
}


.sa-user-menu-wrapper {
    position: relative;
}

.sa-user__trigger {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--bg-main);
    border: 1px solid color-mix(in srgb, var(--soft-sky) 60%, transparent);
    padding: 0.4rem 0.85rem 0.4rem 0.4rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.sa-user__trigger:hover,
.sa-user__trigger[aria-expanded="true"] {
    background: #ebe7df;
    border-color: rgba(176, 141, 107, 0.3);
}

.sa-user__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.sa-user__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-rich);
}

.sa-user__chevron {
    width: 16px;
    height: 16px;
    color: var(--accent);
    transition: transform 0.25s var(--ease);
}

.sa-user__trigger[aria-expanded="true"] .sa-user__chevron {
    transform: rotate(180deg);
}


.sa-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(176, 141, 107, 0.18);
    box-shadow: 0 10px 30px rgba(30, 45, 69, 0.12);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    z-index: 1010;
}

.sa-dropdown.is-open,
.sa-user__trigger[aria-expanded="true"] + .sa-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sa-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-rich);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
    text-align: left;
}

.sa-dropdown__item svg,
.sa-dropdown__item i {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.sa-dropdown__item:hover {
    background: var(--bg-main);
    color: var(--primary);
}

.sa-dropdown__item--danger {
    color: #dc2626;
}

.sa-dropdown__item--danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}


@media (max-width: 992px) {
    .sa-header__nav {
        gap: 0.25rem;
    }

    .sa-nav__link {
        padding: 0.5rem 0.65rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .sa-brand__subtitle {
        display: none;
    }

    .sa-user__name {
        display: none;
    }

    .sa-user__trigger {
        padding: 0.25rem;
    }

    .sa-notification-dropdown {
        width: 300px;
        right: -50px;
    }
}

@media (max-width: 640px) {
    .sa-header__container {
        padding: 0.65rem 1rem;
    }

    .sa-header__nav {
        display: none; 
    }
}




footer.site-footer {
    padding: 0;
    display: block;
    gap: 0;
    grid-template-columns: none;
    max-width: none;
    background: linear-gradient(180deg, #12223a 0%, var(--primary) 42%, #152338 100%);
    color: rgba(255, 255, 255, 0.82);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 5% 2.25rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.site-footer-block h3 {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer-lead {
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer-links li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

.site-footer-links li > .material-symbols-rounded {
    font-size: 1.1rem;
    opacity: 0.85;
    color: var(--accent);
    flex-shrink: 0;
}

.site-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-left: -10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.site-footer-links a .material-symbols-rounded {
    font-size: 1.1rem;
    opacity: 0.85;
    color: var(--accent);
}

.site-footer-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.site-footer-text-links {
    gap: 10px;
}

.site-footer-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(176, 141, 107, 0.55);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.site-footer-login .material-symbols-rounded {
    font-size: 1.1rem;
    color: var(--accent);
}

.site-footer-login:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.site-footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 5%;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.site-footer-bar a {
    color: #dce8f5;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-bar a:hover {
    color: #fff;
}

@media (max-width: 1050px) {
    .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        padding: 2.25rem 4% 1.75rem;
        gap: 2rem;
    }

    .site-footer-bar {
        padding: 12px 4%;
        line-height: 1.45;
    }
}

.credits-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 5% 4rem;
}

.credits-hero {
    margin-bottom: 2.5rem;
}

.credits-hero h2 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.credits-hero p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.credits-section {
    background: var(--white);
    border: 1px solid var(--soft-sky);
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-blur);
}

.credits-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 12px;
}

.credits-section h3 .material-symbols-rounded {
    font-size: 1.35rem;
    color: var(--accent);
}

.credits-section p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.75;
}

.credits-section p + p {
    margin-top: 10px;
}

.credits-section a {
    color: var(--accent);
    font-weight: 600;
}

.credits-section a:hover {
    color: var(--primary);
}

.credits-ai-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credits-ai-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.credits-ai-list img {
    object-fit: contain;
}

.credits-note {
    margin-top: 14px !important;
    font-size: 0.84rem !important;
    font-style: italic;
}

.credits-back {
    margin-top: 2rem;
    text-align: center;
}


body.public-login-mobile {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.public-login-mobile > main {
    flex: 1 0 auto;
}


.label-muted {
    font-weight: 400;
    opacity: 0.6;
}

.char-count-label {
    float: right;
    font-weight: 400;
    opacity: 0.6;
    font-size: 0.85rem;
}

.char-count-label.char-count-warn {
    color: #b45309;
    opacity: 1;
    font-weight: 600;
}

.char-count-label.char-count-over {
    color: #a34332;
    opacity: 1;
    font-weight: 700;
}

.help-form-note {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
    margin-top: 8px;
    grid-column: 1 / -1;
}

.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.status-msg.error {
    flex-wrap: wrap;
    text-align: left;
    justify-content: flex-start;
}

.status-msg.error span {
    width: 100%;
}





.privacy-hero {
    text-align: center;
    padding: 56px 24px 44px;
    background: linear-gradient(180deg, transparent, #dce8f5);
}

.privacy-hero .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(176, 141, 107, 0.15);
    color: var(--primary);
    border: 1px solid rgba(176, 141, 107, 0.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.privacy-hero-icon {
    font-size: 0.85rem;
}

.privacy-hero h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.privacy-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

.privacy-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.privacy-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 500;
}

.privacy-meta-item .material-symbols-rounded {
    font-size: 1rem;
    color: var(--accent);
}

.privacy-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.privacy-toc {
    background: var(--white);
    border: 1px solid var(--soft-sky);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-blur);
}

.privacy-toc h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.privacy-toc-h4-icon {
    font-size: 1rem;
}

.privacy-toc ol {
    margin: 0;
    padding-left: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px 20px;
}

.privacy-toc li {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.privacy-toc a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.privacy-toc a:hover {
    color: var(--primary);
}

.privacy-section {
    margin-bottom: 36px;
    scroll-margin-top: 100px;
}

.privacy-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--soft-sky);
}

.privacy-section-title .material-symbols-rounded {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}

.privacy-section p,
.privacy-section li {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.privacy-section ul,
.privacy-section ol {
    padding-left: 20px;
    margin: 10px 0;
}

.privacy-section li {
    margin-bottom: 6px;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.right-card {
    background: var(--white);
    border: 1px solid var(--soft-sky);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: var(--shadow-blur);
    transition: box-shadow 0.2s;
}

.right-card:hover {
    box-shadow: 0 6px 24px rgba(30, 45, 69, 0.1);
}

.right-card .material-symbols-rounded {
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.right-card strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3px;
}

.right-card p {
    font-size: 0.79rem !important;
    color: var(--text-dim) !important;
    line-height: 1.5 !important;
    margin: 0;
}

.privacy-highlight {
    background: linear-gradient(135deg, #dce8f5, #c5d8f0);
    border: 1px solid rgba(176, 141, 107, 0.3);
    border-radius: 16px;
    padding: 18px 22px;
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.privacy-highlight .material-symbols-rounded {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-highlight p {
    font-size: 0.88rem !important;
    color: var(--primary) !important;
    font-weight: 500;
    line-height: 1.6 !important;
    margin: 0;
}

.privacy-warning {
    background: #fff8e1;
    border: 1px solid #f9ca24;
    border-radius: 16px;
    padding: 16px 20px;
    margin: 14px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.privacy-warning .material-symbols-rounded {
    font-size: 1.2rem;
    color: #b7850a;
    flex-shrink: 0;
    margin-top: 1px;
}

.privacy-warning p {
    font-size: 0.86rem !important;
    color: #7a5a00 !important;
    line-height: 1.6 !important;
    margin: 0;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 16px 0;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-blur);
}

.privacy-table thead tr {
    background: var(--primary);
    color: white;
}

.privacy-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.privacy-table td {
    padding: 11px 16px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--soft-sky);
    line-height: 1.5;
    vertical-align: top;
}

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

.privacy-table tbody tr:hover td {
    background: #dce8f5;
}

.privacy-contact-card {
    background: var(--white);
    border: 1px solid var(--soft-sky);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow-blur);
    margin-top: 16px;
}

.privacy-contact-icon {
    width: 48px;
    height: 48px;
    background: var(--soft-sky);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.privacy-contact-icon .material-symbols-rounded {
    font-size: 1.4rem;
}

.privacy-contact-body h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.privacy-contact-body p {
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0;
}

.privacy-contact-body a {
    color: var(--accent);
    font-weight: 600;
}

.privacy-contact-body a:hover {
    color: var(--primary);
}

.privacy-diritti-note {
    margin-top: 16px;
}

.privacy-diritti-note a {
    color: var(--accent);
    font-weight: 600;
}

.privacy-diritti-note a:hover {
    color: var(--primary);
}

@media (max-width: 600px) {
    .privacy-toc ol {
        grid-template-columns: 1fr;
    }

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

    .privacy-contact-card {
        flex-direction: column;
        gap: 14px;
    }

    .privacy-table {
        font-size: 0.78rem;
    }

    .privacy-table th,
    .privacy-table td {
        padding: 9px 11px;
    }
}






.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 1.1rem 0 1.75rem;
}
.tag-pill {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 999px;
    background: rgba(30, 45, 69, 0.05);
    border: 1px solid rgba(30, 45, 69, 0.11);
    font-size: 0.76rem;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
}



.aboutme-text h1 {
    font-family: 'Sentient-Light', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.07;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.1rem;
}

.aboutme-text p {
    font-size: 1.05rem;
    line-height: 1.85;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent);
    padding-bottom: 2px;
    transition: color 0.25s var(--ease);
}
.hero-link:hover { color: var(--accent); }



.stats-strip {
    display: flex;
    background: var(--primary);
    justify-content: center;
}
.stats-strip-item {
    flex: 1;
    min-width: 130px;
    max-width: 240px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stats-strip-item:last-child { border-right: none; }
.stats-strip-num {
    display: block;
    font-family: 'Sentient-Bold', Georgia, serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}
.stats-strip-label {
    font-size: 0.69rem;
    color: rgba(255,255,255,0.52);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}



.describe {
    padding: 6rem 8% 7rem;
    background: linear-gradient(180deg, transparent, rgba(235, 240, 250, 0.35));
}
.card {
    background: rgba(255,255,255,0.85);
}
.circle-icon {
    background: rgba(30, 45, 69, 0.06);
    border-radius: 18px;
}
.card h3, .card-l h3 {
    font-family: 'Sentient-Regular', Georgia, serif;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}



.bio-page {
    max-width: 1200px;
    margin: 0 auto;
}

.bio-block {
    padding: 4rem 8%;
}
.bio-block + .bio-block {
    border-top: 1px solid var(--soft-sky);
}

.bio-block-eyebrow {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.bio-block h2 {
    font-family: 'Sentient-Light', Georgia, serif;
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    font-weight: 300;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.22;
    margin-bottom: 1.4rem;
    max-width: 760px;
    background: none;
    -webkit-text-fill-color: unset;
}

.bio-body {
    font-size: 1rem;
    line-height: 1.88;
    color: var(--text-rich);
    max-width: 820px;
}
.bio-body b { color: var(--primary); font-weight: 600; }
.bio-body i { font-family: 'Sentient-Italic', Georgia, serif; }



.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 2rem;
}
.book-card {
    background: white;
    border: 1px solid var(--soft-sky);
    border-radius: 20px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.book-card:hover {
    box-shadow: 0 12px 36px rgba(30, 45, 69, 0.1);
    transform: translateY(-5px);
    border-color: rgba(176, 141, 107, 0.4);
}
.book-year {
    font-size: 0.71rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
}
.book-title {
    font-family: 'Sentient-Italic', Georgia, serif;
    font-size: 0.97rem;
    font-style: normal;
    font-weight: 400;
    color: var(--primary);
    line-height: 1.43;
}
.book-meta {
    font-size: 0.79rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-top: 2px;
}
.book-publisher {
    font-size: 0.73rem;
    color: var(--accent);
    font-weight: 500;
}



.info-hero {
    padding: 6rem 8% 4rem;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.info-hero .hero-tag {
    background: rgba(176, 141, 107, 0.1);
    border: 1px solid rgba(176, 141, 107, 0.22);
    color: var(--accent);
}
.info-hero h2 {
    font-family: 'Sentient-Light', Georgia, serif;
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.18;
    color: var(--primary);
}
.info-hero h2 em {
    font-family: 'Sentient-LightItalic', Georgia, serif;
    color: var(--accent);
}

.step-card {
    border-radius: 20px;
    padding: 28px 22px;
}
.step-card:hover {
    box-shadow: 0 12px 36px rgba(30, 45, 69, 0.09);
    transform: translateY(-5px);
}
.step-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1rem;
    font-family: 'Sentient-Bold', Georgia, serif;
}

.servizio-card {
    border-radius: 20px;
    padding: 26px 22px;
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.servizio-card:hover {
    box-shadow: 0 10px 32px rgba(30, 45, 69, 0.09);
    transform: translateY(-3px);
    border-color: rgba(176, 141, 107, 0.35);
}
.servizio-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(176, 141, 107, 0.14), rgba(30, 45, 69, 0.06));
}

.section-title {
    font-family: 'Sentient-Regular', Georgia, serif;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.faq-answer p {
    border-left-color: rgba(176, 141, 107, 0.45);
}



@media (max-width: 768px) {
    .stats-strip {
        flex-wrap: wrap;
    }
    .stats-strip-item {
        min-width: 50%;
        max-width: 50%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .bio-block {
        padding: 2.75rem 5%;
    }
    .books-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .stats-strip-item {
        min-width: 100%;
        max-width: 100%;
    }
    .books-grid {
        grid-template-columns: 1fr;
    }
}





header {
    min-height: 76px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(30, 45, 69, .10);
    box-shadow: 0 1px 0 rgba(30, 45, 69, .02);
}

.header-container {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    width: min(100%, 1320px);
    min-height: 76px;
    margin: 0 auto;
    padding: 12px 32px;
    gap: 28px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
}

.header-left {
    justify-content: flex-start;
    gap: 11px;
}

.header-right {
    justify-content: flex-end;
    gap: 8px;
}

.sa-brand__logo {
    width: 40px;
    height: 40px;
    max-width: none;
    flex: 0 0 40px;
}

.sa-brand,
.header-brand,
.sa-brand__text {
    min-width: 0;
}

.header-brand {
    display: block;
    color: var(--primary);
}

.sa-brand__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.header-brand__name {
    color: var(--primary);
    font-family: 'Sentient-LightItalic', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.05;
}

.header-brand__role {
    overflow: hidden;
    color: var(--text-dim);
    font-size: .59rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-center.header-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    min-width: max-content;
}

.header-nav__link {
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text-rich);
    font-size: .82rem;
    font-weight: 650;
    line-height: 1;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.header-nav__link::after { display: none; }

.header-nav__link:hover,
.header-nav__link.active {
    background: var(--soft-sky);
    color: var(--primary);
}

.btn-book,
.btn-reserved {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
    transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

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

.btn-book:hover {
    background: #273d5d;
    border-color: #273d5d;
    color: var(--white);
    box-shadow: 0 6px 16px rgba(30, 45, 69, .18);
    transform: translateY(-1px);
}

.btn-reserved {
    background: var(--white);
    border-color: rgba(30, 45, 69, .16);
    color: var(--primary);
}

.btn-reserved[aria-disabled="true"] {
    opacity: .62;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-reserved:not([aria-disabled="true"]):hover {
    background: var(--soft-sky);
    border-color: var(--soft-sky);
    color: var(--primary);
}

@media (max-width: 1080px) {
    .header-container {
        grid-template-columns: minmax(220px, 1fr) auto minmax(198px, 1fr);
        padding-inline: 24px;
        gap: 16px;
    }

    .header-nav__link { padding-inline: 9px; }
    .btn-book, .btn-reserved { padding-inline: 11px; }
}

@media (max-width: 820px) {
    .header-container {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 68px;
        padding: 10px 18px;
    }

    .header-center.header-nav { display: none; }
    .header-brand__role { max-width: 360px; }
    .header-right { gap: 6px; }
    header .header-right .btn-book {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    header .header-right .btn-reserved { display: inline-flex !important; }
}

@media (max-width: 600px) {
    header { min-height: 62px; }

    .header-container {
        min-height: 62px;
        padding: 9px 14px;
        gap: 10px;
    }

    .sa-brand__logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .header-brand__name { font-size: 1.1rem; }
    .header-brand__role { display: none; }

    header .header-right .btn-book {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
    }

    .btn-book span { display: none; }
    .btn-book i { margin: 0; font-size: 1rem; }
    header .header-right .btn-reserved { display: none !important; }
}












.sa-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 28px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(176, 141, 107, 0.18);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}


.sa-header .sa-brand__link {
    flex: 1 1 auto;
    min-width: 0;
}

.sa-header .header-brand__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.sa-header .sa-nav-toggle,
.sa-header .sa-actions {
    flex: 0 0 auto;
}


.sa-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(176, 141, 107, 0.22);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    color: var(--primary);
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sa-nav-toggle:hover {
    background: #ebe7df;
    border-color: rgba(176, 141, 107, 0.35);
}

.sa-nav-toggle[aria-expanded="true"] {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}


.sa-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.sa-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.sa-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--text-rich);
    white-space: nowrap;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.sa-nav__item i {
    font-size: 1rem;
    color: var(--accent);
    transition: color 0.2s var(--ease);
}

.sa-nav__item:hover {
    background: var(--soft-sky);
    color: var(--primary);
}

.sa-nav__item:hover i {
    color: var(--primary);
}

.sa-nav__item--active {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    color: var(--primary);
    font-weight: 700;
}

.sa-nav__item--active i {
    color: var(--primary);
}


.sa-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.sa-divider {
    width: 1px;
    height: 26px;
    background: rgba(176, 141, 107, 0.22);
}


.sa-notif {
    position: relative;
}

.sa-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid color-mix(in srgb, var(--soft-sky) 60%, transparent);
    color: var(--primary);
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.sa-icon-btn:hover,
.sa-icon-btn[aria-expanded="true"] {
    background: #ebe7df;
    color: var(--accent);
    border-color: rgba(176, 141, 107, 0.3);
}

.sa-icon-btn--pulsing::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: sa-pulse 2s var(--ease) infinite;
}

.sa-icon-btn--urgent {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.3);
}

.sa-icon-btn--urgent:hover {
    color: #dc2626;
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.4);
}

.sa-icon-btn--urgent.sa-icon-btn--pulsing::after {
    border-color: #dc2626;
}

@keyframes sa-pulse {
    0%   { opacity: 0.7; transform: scale(1); }
    70%  { opacity: 0; transform: scale(1.35); }
    100% { opacity: 0; transform: scale(1.35); }
}

.sa-notif-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 999px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.3);
}

.sa-notif-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(176, 141, 107, 0.18);
    box-shadow: 0 12px 35px rgba(30, 45, 69, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    overflow: hidden;
    z-index: 1010;
}

.sa-notif-panel.is-open,
.sa-icon-btn[aria-expanded="true"] + .sa-notif-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sa-notif-panel__head {
    padding: 1rem 1.25rem;
    background: var(--bg-main);
    border-bottom: 1px solid color-mix(in srgb, var(--soft-sky) 60%, transparent);
}

.sa-notif-panel__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.sa-notif-panel__empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.sa-notif-panel__list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sa-notif-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--soft-sky) 40%, transparent);
    text-decoration: none;
    transition: background 0.2s var(--ease);
}

.sa-notif-item:last-child {
    border-bottom: none;
}

.sa-notif-item:hover {
    background: var(--bg-main);
}

.sa-notif-item--unread {
    background: color-mix(in srgb, var(--bg-main) 60%, var(--white));
}

.sa-notif-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}


.sa-notif-item--booking .sa-notif-item__icon {
    background: #eef4ff;
    color: #2b6cb0;
}

.sa-notif-item--warning .sa-notif-item__icon {
    background: rgba(176, 141, 107, 0.14);
    color: var(--accent);
}

.sa-notif-item--danger .sa-notif-item__icon {
    background: #fef2f2;
    color: #dc2626;
}

.sa-notif-item--info .sa-notif-item__icon {
    background: var(--bg-main);
    color: var(--text-dim);
}

.sa-notif-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sa-notif-item__text {
    font-size: 0.85rem;
    color: var(--text-rich);
    line-height: 1.35;
}

.sa-notif-item__time {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.sa-notif-panel__foot {
    padding: 0.75rem;
    text-align: center;
    background: var(--bg-main);
    border-top: 1px solid color-mix(in srgb, var(--soft-sky) 60%, transparent);
}

.sa-notif-panel__foot a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

.sa-notif-panel__foot a:hover {
    color: var(--accent);
}


.sa-user {
    position: relative;
}


@media (max-width: 1080px) {
    .sa-header {
        padding-inline: 20px;
    }

    .sa-nav__item {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
}

@media (max-width: 820px) {
    .sa-nav-toggle {
        display: flex;
    }

    .sa-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        background: var(--white);
        border-bottom: 1px solid rgba(176, 141, 107, 0.18);
        box-shadow: 0 12px 24px rgba(30, 45, 69, 0.08);
        padding: 12px 20px;
    }

    .sa-nav[data-sa-nav].is-open,
    .sa-nav-toggle[aria-expanded="true"] ~ .sa-nav {
        display: block;
    }

    .sa-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .sa-nav__item {
        width: 100%;
    }

    .sa-user__name {
        display: none;
    }

    .sa-notif-panel {
        right: -60px;
    }
}

@media (max-width: 600px) {
    .sa-header {
        padding: 10px 16px;
        gap: 12px;
    }

    .sa-divider {
        display: none;
    }
}

.info-box{

    background:#f8fbff;

    border:1px solid #d7e8f7;

    border-left:5px solid #0d6efd;

    padding:18px;

    border-radius:10px;

    margin-top:10px;

}

.checkbox-label{

    display:flex;

    align-items:flex-start;

    gap:12px;

    cursor:pointer;

    line-height:1.7;

    font-size:.95rem;

}

.checkbox-label input{

    margin-top:5px;

    transform:scale(1.15);

    flex-shrink:0;

}






.choice-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.choice-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--soft-sky);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.choice-card:hover {
    border-color: var(--accent);
}

.choice-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-main);
    color: var(--primary);
    font-size: 1.15rem;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.choice-card__title {
    font-weight: 700;
    color: var(--text-rich);
    font-size: 0.95rem;
}

.choice-card__desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.choice-toggle input[type="radio"]:checked + .choice-card {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, var(--white));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary), transparent 88%);
}

.choice-toggle input[type="radio"]:checked + .choice-card .choice-card__icon {
    background: var(--primary);
    color: var(--white);
}

.choice-toggle input[type="radio"]:focus-visible + .choice-card {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .choice-toggle {
        grid-template-columns: 1fr;
    }
}




.parent-panel {
    grid-column: span 2;
    padding: 18px 20px 6px;
    margin-bottom: 4px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(176, 141, 107, 0.25);
    background: color-mix(in srgb, var(--soft-sky) 35%, var(--white));
}

.parent-panel__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.parent-panel .form-group {
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .parent-panel,
    .choice-toggle,
    .full-width {
        grid-column: span 1;
    }
}






.checkbox-label input[type="checkbox"] {
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    accent-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:focus {
    box-shadow: none;
}




.consent-box {
    background: color-mix(in srgb, var(--soft-sky) 30%, var(--white));
    border: 1px solid rgba(176, 141, 107, 0.28);
    border-left: 4px solid var(--accent);
    padding: 16px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.consent-box:last-child {
    margin-bottom: 0;
}

.consent-box .checkbox-label {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-rich);
}

.consent-box a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-box a:hover {
    color: var(--primary);
}






:root {
    --primary: #1f3a4a;
    --primary-deep: #17303d;
    --primary-soft: #2b4f63;
    --accent: #b9935e;
    --accent-strong: #a57d48;
    --accent-pale: #e7d7bf;
    --canvas: #f6f3ee;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-border: rgba(31, 58, 74, 0.08);
    --soft-sky: #dfe9ee;
    --text-rich: #243945;
    --text-dim: #677986;
    --shadow-soft: 0 18px 48px rgba(25, 49, 63, 0.08);
    --shadow-lift: 0 26px 68px rgba(25, 49, 63, 0.13);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(185, 147, 94, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(74, 111, 130, 0.12), transparent 28%),
        linear-gradient(180deg, #fbfaf7 0%, #f6f3ee 44%, #f2f5f6 100%);
    color: var(--text-rich);
}

main {
    position: relative;
}

main::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: min(34vw, 420px);
    height: min(34vw, 420px);
    background: radial-gradient(circle, rgba(185, 147, 94, 0.16), transparent 68%);
    pointer-events: none;
    filter: blur(6px);
}

header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(248, 246, 241, 0.72);
    border-bottom: 1px solid rgba(31, 58, 74, 0.08);
    box-shadow: 0 10px 32px rgba(23, 48, 61, 0.05);
}

.header-container {
    max-width: 1280px;
    min-height: 82px;
    margin: 0 auto;
    padding: 14px 34px;
}

.header-brand__name {
    font-family: 'Sentient-Light', Georgia, serif;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.header-brand__role {
    color: rgba(36, 57, 69, 0.72);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}

.header-center.header-nav {
    gap: 10px;
}

.header-nav__link {
    position: relative;
    padding: 11px 16px;
    border-radius: 999px;
    color: rgba(36, 57, 69, 0.9);
    font-size: 0.84rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid transparent;
}

.header-nav__link:hover,
.header-nav__link.active {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(31, 58, 74, 0.08);
    box-shadow: 0 8px 24px rgba(25, 49, 63, 0.06);
}

.btn-book,
.btn-reserved,
.hero-link,
.more,
button,
input[type="submit"],
input[type="button"],
.choice-card,
.booking-quick-card,
.book-card,
.servizio-card,
.card,
.panel-card,
.site-footer-links a {
    transition:
        transform 0.28s var(--ease),
        box-shadow 0.28s var(--ease),
        background-color 0.28s var(--ease),
        border-color 0.28s var(--ease),
        color 0.28s var(--ease);
}

.btn-book,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 28px rgba(23, 48, 61, 0.18);
}

.btn-book:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(23, 48, 61, 0.22);
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
}

.btn-reserved {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(31, 58, 74, 0.1);
    color: var(--primary);
}

.btn-reserved:not([aria-disabled="true"]):hover {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(23, 48, 61, 0.08);
    transform: translateY(-1px);
}

.aboutme {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 104px) 34px clamp(38px, 6vw, 78px);
}

.homepage-image {
    position: relative;
}

.homepage-image::before {
    content: "";
    position: absolute;
    inset: -14px auto auto -14px;
    width: 84%;
    height: 88%;
    border-radius: 36px;
    background: linear-gradient(145deg, rgba(185, 147, 94, 0.2), rgba(31, 58, 74, 0.08));
    z-index: 0;
}

.homepage-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-lift);
}

.aboutme-text {
    position: relative;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(255,255,255,0.58));
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow-soft);
}

.eyebrow,
.bio-block-eyebrow,
.info-hero .hero-tag,
.book-year {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(185, 147, 94, 0.12);
    color: var(--accent-strong);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.aboutme-text h1 {
    margin-top: 18px;
    margin-bottom: 18px;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.98;
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-soft) 62%, var(--accent-strong) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aboutme-text p {
    max-width: 62ch;
    font-size: 1.06rem;
    line-height: 1.95;
    color: rgba(36, 57, 69, 0.88);
}

.hero-link {
    margin-top: 2.2rem;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(31, 58, 74, 0.08);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(23, 48, 61, 0.06);
}

.hero-link:hover {
    color: var(--primary-deep);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(23, 48, 61, 0.1);
}

.stats-strip {
    max-width: 1212px;
    margin: 0 auto 24px;
    padding: 0 34px;
    background: transparent;
    gap: 18px;
}

.stats-strip-item {
    max-width: none;
    padding: 28px 22px;
    border-right: none;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(28, 53, 67, 0.98), rgba(36, 67, 83, 0.94));
    box-shadow: 0 16px 34px rgba(23, 48, 61, 0.15);
}

.stats-strip-num {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    color: #f1dec1;
}

.stats-strip-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
}

.describe {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 34px 92px;
    background: transparent;
}

.card,
.bio-block,
.book-card,
.info-hero,
.servizio-card,
.panel-card,
.booking-hero-card,
.booking-aside-card,
.timetable-hero-card,
.timetable-info-card,
.admin-hero-card,
.admin-aside-card,
.stats-summary-card,
.booking-summary-card,
.admin-mini-card,
.timetable-summary-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    border: 1px solid rgba(31, 58, 74, 0.08);
    box-shadow: var(--shadow-soft);
}

.card {
    border-radius: 28px;
    padding: 28px 24px;
}

.card:hover,
.book-card:hover,
.servizio-card:hover,
.panel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}

.circle-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(185, 147, 94, 0.18), rgba(31, 58, 74, 0.08));
    color: var(--primary);
    font-size: 1.35rem;
}

.card h3,
.card-l h3,
.bio-block h2,
.info-hero h2,
.servizio-card h4,
.site-footer-block h3 {
    color: var(--primary-deep);
}

.card ul,
.card li,
.bio-body,
.servizio-card p,
.site-footer-lead,
.site-footer-links,
.site-footer-login,
.note-content li,
.availability-tips ul,
.admin-form-tips ul,
.booking-side-note ul {
    color: var(--text-dim);
}

.bio-page,
.info-page,
.booking-page,
.privacy-body {
    max-width: 1280px;
    margin: 0 auto;
}

.bio-block,
.info-hero,
.info-section {
    border-radius: 30px;
}

.bio-block {
    margin: 0 34px 24px;
    padding: clamp(30px, 5vw, 56px);
}

.bio-block + .bio-block {
    border-top: none;
}

.books-grid {
    gap: 20px;
}

.book-card {
    border-radius: 24px;
    padding: 24px 22px;
}

.book-title {
    font-size: 1.02rem;
    line-height: 1.5;
}

.info-hero,
.info-section {
    margin-inline: 34px;
}

.info-hero {
    padding: clamp(28px, 4vw, 46px);
}

.servizio-card {
    border-radius: 24px;
    padding: 24px 22px;
}

.more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(185, 147, 94, 0.1);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.more:hover {
    transform: translateY(-2px);
    background: rgba(185, 147, 94, 0.18);
    color: var(--primary-deep);
}

.panel-card,
.availability-tips,
.admin-form-tips,
.booking-side-note,
.form-section {
    border-radius: 26px;
    border: 1px solid rgba(31, 58, 74, 0.08);
    background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.76));
    box-shadow: var(--shadow-soft);
}

.choice-card {
    border-radius: 22px;
    border: 1px solid rgba(31, 58, 74, 0.1);
    background: rgba(255,255,255,0.7);
}

.choice-card:hover,
.choice-toggle input[type="radio"]:checked + .choice-card {
    box-shadow: 0 18px 38px rgba(23, 48, 61, 0.12);
}

.choice-toggle input[type="radio"]:checked + .choice-card {
    border-color: rgba(185, 147, 94, 0.45);
    background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(231,215,191,0.35));
}

input,
select,
textarea {
    border-radius: 16px;
    border: 1px solid rgba(31, 58, 74, 0.12);
    background: rgba(255,255,255,0.85);
    color: var(--text-rich);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(185, 147, 94, 0.65);
    box-shadow: 0 0 0 4px rgba(185, 147, 94, 0.14);
}

.toggle-note {
    color: var(--primary-deep);
}

.booking-quick-card {
    border-radius: 20px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(31, 58, 74, 0.08);
}

.booking-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(23, 48, 61, 0.08);
}

footer.site-footer {
    margin-top: 88px;
    background:
        radial-gradient(circle at top right, rgba(185, 147, 94, 0.16), transparent 28%),
        linear-gradient(180deg, #1d3340 0%, #162936 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 34px 34px;
    gap: 28px;
}

.site-footer-block {
    padding: 22px 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
}

.site-footer-block h3,
.site-footer-lead,
.site-footer-links a,
.site-footer-login {
    color: rgba(255,255,255,0.92);
}

.site-footer-links a:hover,
.site-footer-login:hover,
.site-footer-bar a:hover {
    color: #f1dec1;
}

.site-footer-bar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 34px 28px;
    color: rgba(255,255,255,0.68);
}

@media (max-width: 980px) {
    .aboutme {
        grid-template-columns: 1fr;
        padding-inline: 24px;
    }

    .stats-strip,
    .describe,
    .bio-block,
    .info-hero,
    .info-section,
    .site-footer-inner,
    .site-footer-bar {
        padding-inline: 24px;
        margin-inline: auto;
    }

    .info-hero,
    .info-section {
        margin-inline: 24px;
    }

    .bio-block {
        margin-inline: 24px;
    }
}

@media (max-width: 820px) {
    header {
        background: rgba(248, 246, 241, 0.88);
    }

    .header-container {
        padding: 12px 20px;
    }

    .stats-strip {
        flex-direction: column;
        padding-inline: 24px;
    }

    .aboutme-text,
    .card,
    .bio-block,
    .info-hero,
    .servizio-card,
    .panel-card,
    .site-footer-block {
        border-radius: 24px;
    }
}

@media (max-width: 600px) {
    .aboutme,
    .describe,
    .stats-strip,
    .site-footer-inner,
    .site-footer-bar {
        padding-inline: 16px;
    }

    .bio-block,
    .info-hero,
    .info-section {
        margin-inline: 16px;
    }

    .aboutme {
        padding-top: 34px;
        gap: 22px;
    }

    .aboutme-text {
        padding: 22px 18px;
    }

    .aboutme-text h1 {
        font-size: clamp(2.35rem, 12vw, 3.35rem);
    }

    .hero-link,
    .more,
    .btn-book,
    .btn-reserved {
        min-height: 42px;
    }

    .stats-strip-item,
    .card,
    .book-card,
    .servizio-card,
    .panel-card,
    .site-footer-block {
        padding: 20px 18px;
    }
}

@media (max-width: 820px) {
    .site-header .header-nav.is-open {
        gap: 8px;
        padding: 12px;
        border-radius: 24px;
        background: var(--paper);
    }

    .site-header .header-nav.is-open .header-nav__link {
        display: flex;
        align-items: center;
        min-height: 52px;
        padding: 13px 16px;
        border: 1px solid transparent;
        border-radius: 15px;
        box-shadow: none;
        font-size: 0.88rem;
        font-weight: 750;
    }

    .site-header .header-nav.is-open .header-nav__link:not([aria-current="page"]),
    .site-header .header-nav.is-open .header-nav__link:not([aria-current="page"]):hover {
        background: rgba(220, 233, 228, 0.58);
        color: var(--ink);
    }

    .site-header .header-nav.is-open .header-nav__link[aria-current="page"] {
        background: var(--sea);
        box-shadow: 0 10px 20px rgba(16, 57, 70, 0.16);
        color: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 820px) {
    .site-header .header-right > .btn-book {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .site-header .header-right > .btn-reserved {
        display: none !important;
    }

    .site-header .header-right > .site-menu-toggle {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 600px) {
    .home-hero h1 {
        width: auto;
        max-width: 100%;
        text-wrap: wrap;
    }
}







:root {
    --bg-main: #f6f3ee;
    --nav-bg: rgba(250, 248, 244, 0.86);
    --primary: #1f3a4a;
    --soft-sky: #dfe9ee;
    --text-rich: #243945;
    --text-dim: #667986;
    --shadow-blur: 0 28px 58px -18px rgba(24, 48, 61, 0.12);
}

body {
    background:
        radial-gradient(circle at top left, rgba(185, 147, 94, 0.1), transparent 30%),
        linear-gradient(180deg, #fbfaf7 0%, #f6f3ee 44%, #f2f5f6 100%);
}

.aboutme-text,
.bio-block,
.info-hero,
.servizio-card,
.panel-card,
.card,
.booking-hero-card,
.booking-aside-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.aboutme-text p,
.bio-body,
.servizio-card p,
.panel-card p {
    line-height: 1.92;
}

.stats-strip-item,
.site-footer-block,
.card,
.servizio-card,
.book-card,
.panel-card {
    overflow: hidden;
}

.stats-strip-item::before,
.card::before,
.servizio-card::before,
.book-card::before,
.panel-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.65), transparent 70%);
    pointer-events: none;
}

.stats-strip-item,
.card,
.servizio-card,
.book-card,
.panel-card {
    position: relative;
}

.site-footer-block {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.form-section,
.availability-tips,
.admin-form-tips,
.booking-side-note {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}





:root {
    --ink: #172f3b;
    --ink-soft: #506570;
    --sea: #174d60;
    --sea-deep: #103946;
    --sage: #dce9e4;
    --sand: #f1e4ce;
    --paper: #fbfaf6;
    --paper-deep: #f2f3ee;
    --line: rgba(23, 47, 59, 0.12);
    --line-light: rgba(255, 255, 255, 0.55);
    --display-font: 'Sentient-Light', Georgia, serif;
    --display-italic: 'Sentient-ExtralightItalic', Georgia, serif;
}

body {
    background:
        radial-gradient(circle at 6% 8%, rgba(220, 233, 228, 0.85), transparent 19rem),
        radial-gradient(circle at 95% 32%, rgba(241, 228, 206, 0.68), transparent 22rem),
        var(--paper);
    color: var(--ink);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
    background-image: radial-gradient(rgba(23, 47, 59, 0.18) 0.55px, transparent 0.55px);
    background-size: 8px 8px;
    mask-image: linear-gradient(to bottom, black, transparent 55%);
}

main::before,
.home-page::before {
    display: none;
}



header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0;
    background: rgba(251, 250, 246, 0.82);
    border-bottom: 1px solid rgba(23, 47, 59, 0.1);
    box-shadow: 0 8px 30px rgba(16, 57, 70, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header .header-container {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    gap: 24px;
    width: min(1440px, 100%);
    min-height: 86px;
    margin: 0 auto;
    padding: 13px clamp(20px, 4vw, 58px);
}

.site-header .header-left,
.site-header .header-right,
.site-header .header-nav {
    display: flex;
    align-items: center;
}

.site-header .header-right {
    justify-content: flex-end;
    gap: 9px;
}

.site-header .sa-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.site-header .sa-brand__logo {
    display: block;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    transition: transform .2s var(--ease);
}

.site-header .sa-brand:hover .sa-brand__logo {
    transform: translateY(-1px);
}

.site-header .sa-brand__text {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.site-header .header-brand__name {
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(1.18rem, 1.6vw, 1.42rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
}

.site-header .header-brand__role {
    overflow: hidden;
    color: rgba(23, 47, 59, 0.62);
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-header .header-nav {
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(23, 47, 59, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
}

.site-header .header-nav__link {
    padding: 9px 13px;
    border: 0;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.site-header .header-nav__link:hover,
.site-header .header-nav__link[aria-current="page"] {
    background: var(--sea);
    box-shadow: 0 4px 12px rgba(16, 57, 70, 0.16);
    color: #fff;
}

.site-header .btn-book,
.site-header .btn-reserved {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.site-header .btn-book {
    background: var(--sea);
    box-shadow: none;
}

.site-header .btn-book:hover {
    background: var(--sea-deep);
    box-shadow: 0 10px 22px rgba(16, 57, 70, 0.2);
}

.site-header .btn-reserved {
    border: 1px solid rgba(23, 47, 59, 0.14);
    background: transparent;
    color: var(--ink);
}

.site-header .btn-reserved:hover {
    border-color: rgba(23, 77, 96, 0.38);
    background: rgba(220, 233, 228, 0.6);
    color: var(--sea-deep);
}



.home-page {
    overflow: clip;
    padding-bottom: clamp(72px, 10vw, 140px);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
    align-items: center;
    gap: clamp(38px, 8vw, 128px);
    width: min(1320px, 100%);
    min-height: min(710px, calc(100vh - 86px));
    margin: 0 auto;
    padding: clamp(58px, 8vw, 112px) clamp(22px, 5vw, 62px) clamp(56px, 7vw, 96px);
}

.home-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 660px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--sea);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 26px;
    height: 1px;
    background: currentColor;
}

.home-hero h1,
.booking-flow-hero h1 {
    max-width: 9.5ch;
    margin: 21px 0 24px;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(3.75rem, 7.5vw, 7.1rem);
    font-weight: 400;
    letter-spacing: -0.07em;
    line-height: 0.95;
}

.home-hero h1 em,
.booking-flow-hero h1 em,
.home-introduction h2 em {
    color: var(--sea);
    font-family: var(--display-italic);
    font-style: italic;
    font-weight: 300;
}

.home-hero__lead {
    max-width: 47ch;
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.82;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 31px;
}

.home-hero__actions .btn-book,
.home-cta .btn-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 51px;
    padding: 0 21px;
    border-radius: 999px;
    background: var(--sea);
    box-shadow: 0 12px 22px rgba(16, 57, 70, 0.18);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.home-hero__actions .btn-book:hover,
.home-cta .btn-book:hover {
    background: var(--sea-deep);
}

.home-hero .hero-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid rgba(23, 47, 59, 0.28);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.home-hero .hero-link:hover {
    border-color: var(--sea);
    background: transparent;
    box-shadow: none;
    color: var(--sea);
}

.home-hero__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 25px 0 0;
    color: rgba(23, 47, 59, 0.58);
    font-size: 0.77rem;
}

.home-hero__note i {
    color: var(--sea);
    font-size: 1rem;
}

.home-hero__portrait {
    position: relative;
    justify-self: end;
    width: min(100%, 470px);
    padding: 28px 0 24px 29px;
}

.home-hero__shape {
    position: absolute;
    pointer-events: none;
}

.home-hero__shape--sun {
    top: 0;
    right: -30px;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--sand);
}

.home-hero__shape--line {
    bottom: 7%;
    left: -6%;
    width: 56%;
    height: 45%;
    border: 1px solid rgba(23, 77, 96, 0.36);
    border-radius: 50% 50% 0 0;
    border-bottom: 0;
    transform: rotate(-13deg);
}

.home-hero .homepage-image {
    position: relative;
    z-index: 1;
    margin: 0;
}

.home-hero .homepage-image::before {
    display: none;
}

.home-hero .homepage-image img {
    display: block;
    width: 100%;
    aspect-ratio: 0.82;
    border: 0;
    border-radius: 190px 190px 24px 24px;
    box-shadow: 0 28px 60px rgba(16, 57, 70, 0.15);
    object-fit: cover;
    object-position: 50% 20%;
}

.home-hero .homepage-image figcaption {
    display: grid;
    gap: 3px;
    margin: 13px 0 0 14px;
    color: var(--ink);
}

.home-hero .homepage-image figcaption span {
    font-family: var(--display-font);
    font-size: 1.12rem;
    letter-spacing: -0.03em;
}

.home-hero .homepage-image figcaption small {
    color: var(--ink-soft);
    font-size: 0.67rem;
    letter-spacing: 0.03em;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 0.95fr);
    align-items: stretch;
    width: min(1320px, calc(100% - clamp(44px, 10vw, 124px)));
    margin: 0 auto;
    border: 1px solid rgba(16, 57, 70, 0.15);
    background: var(--sea);
    box-shadow: 0 24px 54px rgba(16, 57, 70, 0.14);
    color: #fff;
}

.trust-strip__item,
.trust-strip__statement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    padding: 26px clamp(18px, 3vw, 36px);
}

.trust-strip__item {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-strip__item strong {
    color: #f8eddb;
    font-family: var(--display-font);
    font-size: clamp(2.6rem, 4vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.8;
}

.trust-strip__item strong span {
    color: #d6e7e0;
    font-size: 0.7em;
}

.trust-strip__item > span {
    margin-top: 11px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.45;
    text-transform: uppercase;
}

.trust-strip__statement {
    margin: 0;
    background: #d5e4de;
    color: var(--sea-deep);
    font-family: var(--display-italic);
    font-size: clamp(1.38rem, 2vw, 1.9rem);
    font-style: italic;
    line-height: 1.15;
}

.home-introduction,
.home-information,
.home-cta {
    width: min(1180px, calc(100% - clamp(44px, 10vw, 124px)));
    margin: 0 auto;
}

.home-introduction {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
    gap: clamp(36px, 8vw, 130px);
    align-items: start;
    padding: clamp(92px, 12vw, 162px) 0 clamp(44px, 7vw, 88px);
}

.home-introduction h2,
.home-information h2,
.home-cta h2 {
    max-width: 13ch;
    margin: 17px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(2.7rem, 5vw, 4.9rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.93;
}

.home-introduction__body {
    padding-top: 22px;
}

.home-introduction__body p,
.home-information__intro > p:not(.section-kicker),
.home-cta__aside p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.9;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    color: var(--sea);
    font-size: 0.79rem;
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    color: var(--sea-deep);
    transform: translateX(3px);
}

.care-grid {
    display: grid;
    grid-template-columns: 1.13fr repeat(2, 0.94fr);
    gap: 1px;
    width: min(1320px, calc(100% - clamp(44px, 10vw, 124px)));
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--line);
}

.care-card {
    position: relative;
    display: flex;
    min-height: 355px;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: none;
}

.care-card::before {
    display: none;
}

.care-card--feature {
    background: #dfeae6;
}

.care-card:hover {
    transform: none;
    box-shadow: none;
}

.care-card__number {
    position: absolute;
    top: 26px;
    right: 28px;
    color: rgba(23, 77, 96, 0.38);
    font-family: var(--display-font);
    font-size: 1.05rem;
    letter-spacing: -0.04em;
}

.care-card .circle-icon {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(23, 77, 96, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.52);
    color: var(--sea);
    font-size: 1.18rem;
}

.care-card h3 {
    max-width: 12ch;
    margin: auto 0 13px;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.care-card p {
    max-width: 32ch;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.75;
}

.home-information {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(40px, 9vw, 130px);
    padding: clamp(96px, 13vw, 170px) 0;
}

.home-information h2 {
    max-width: 8ch;
    font-size: clamp(2.55rem, 4.3vw, 4.35rem);
}

.home-information__intro > p:not(.section-kicker) {
    max-width: 27ch;
    margin-top: 23px;
}

.home-information__lists {
    display: grid;
    gap: 1px;
    border-top: 1px solid var(--line);
}

.information-list {
    display: grid;
    grid-template-columns: minmax(180px, 0.58fr) minmax(200px, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 31px 0;
    border-bottom: 1px solid var(--line);
}

.information-list__heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.information-list__heading i {
    color: var(--sea);
    font-size: 1.22rem;
}

.information-list h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.information-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 17px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.information-list li {
    color: var(--ink-soft);
    font-size: 0.77rem;
    line-height: 1.45;
}

.information-list li::before {
    content: "·";
    margin-right: 5px;
    color: var(--sea);
    font-weight: 800;
}

.information-list li span {
    color: rgba(23, 47, 59, 0.57);
}

.information-list .text-link {
    justify-self: end;
    margin: 0;
    font-size: 0.7rem;
    white-space: nowrap;
}

.home-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: clamp(38px, 9vw, 138px);
    align-items: end;
    padding: clamp(42px, 6vw, 74px);
    background: var(--sea);
    color: #fff;
}

.home-cta .section-kicker {
    color: #d9ebe4;
}

.home-cta h2 {
    max-width: 10ch;
    color: #fff;
    font-size: clamp(2.65rem, 4.6vw, 4.6rem);
}

.home-cta__aside {
    padding-bottom: 5px;
}

.home-cta__aside p {
    color: rgba(255, 255, 255, 0.78);
}

.home-cta .btn-book {
    margin-top: 27px;
    background: #f5e6cf;
    box-shadow: none;
    color: var(--sea-deep);
}

.home-cta .btn-book:hover {
    background: #fff3df;
    color: var(--sea-deep);
}



.booking-flow {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(20px, 5vw, 62px) clamp(80px, 10vw, 138px);
}

.booking-flow-hero,
.booking-flow__layout {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.booking-flow-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(38px, 9vw, 130px);
    align-items: end;
    padding: clamp(65px, 9vw, 118px) 0 clamp(48px, 6vw, 80px);
}

.booking-flow-hero h1 {
    max-width: 10.8ch;
    margin-bottom: 0;
    font-size: clamp(3.3rem, 6.2vw, 5.7rem);
}

.booking-flow-hero__copy > p:last-child {
    max-width: 48ch;
    margin: 25px 0 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.82;
}

.booking-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--line);
    list-style: none;
}

.booking-flow-steps li {
    display: grid;
    gap: 7px;
    min-height: 166px;
    padding: 21px 18px;
    background: rgba(255, 255, 255, 0.58);
}

.booking-flow-steps span {
    color: var(--sea);
    font-family: var(--display-font);
    font-size: 1.04rem;
    letter-spacing: -0.04em;
}

.booking-flow-steps strong {
    align-self: end;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1;
}

.booking-flow-steps small {
    color: var(--ink-soft);
    font-size: 0.69rem;
    line-height: 1.5;
}

.booking-flow__layout {
    display: grid;
    grid-template-columns: minmax(235px, 0.4fr) minmax(0, 1fr);
    gap: clamp(32px, 7vw, 88px);
    align-items: start;
}

.booking-flow__aside {
    position: sticky;
    top: 118px;
    padding: 31px 0 34px 28px;
    border-left: 1px solid rgba(23, 77, 96, 0.42);
}

.booking-flow__aside-icon {
    display: grid;
    width: 45px;
    height: 45px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--sage);
    color: var(--sea);
    font-size: 1.08rem;
}

.booking-flow__aside h2 {
    max-width: 10ch;
    margin: 14px 0 16px;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(1.85rem, 2.6vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.booking-flow__aside > p:not(.section-kicker) {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.8;
}

.booking-flow__reassurance {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
    color: var(--sea);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.55;
}

.booking-flow__reassurance i {
    flex: 0 0 auto;
    font-size: 1rem;
}

.booking-flow .registration-card.book-appointment {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(26px, 4vw, 52px);
    border: 1px solid rgba(23, 47, 59, 0.12);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 58px rgba(16, 57, 70, 0.08);
}

.booking-form-intro {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: end;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.booking-form-intro h2 {
    max-width: 14ch;
    margin: 11px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.booking-form-intro > p {
    max-width: 25ch;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.73rem;
    line-height: 1.6;
}

.booking-flow .status-msg {
    margin: 25px 0 0;
    border-radius: 0;
}

.booking-flow .grid-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
}

.booking-flow .booking-form-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    min-width: 0;
    margin: 0;
    padding: 33px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.booking-flow .booking-form-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.booking-flow .booking-form-section > legend {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    width: 100%;
    margin: 0 0 6px;
    padding: 0;
    color: var(--ink);
}

.booking-flow .booking-form-section > legend > span:first-child {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(23, 77, 96, 0.28);
    border-radius: 50%;
    color: var(--sea);
    font-family: var(--display-font);
    font-size: 0.9rem;
}

.booking-flow .booking-form-section > legend > span:last-child {
    display: grid;
    gap: 3px;
}

.booking-flow .booking-form-section legend strong {
    font-family: var(--display-font);
    font-size: 1.38rem;
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.booking-flow .booking-form-section legend small {
    color: var(--ink-soft);
    font-size: 0.69rem;
    font-weight: 400;
    line-height: 1.5;
}

.booking-flow .booking-selection-grid,
.booking-flow .booking-calendar,
.booking-flow .booking-form-section > .form-group.full-width,
.booking-flow .booking-form-section > .parent-panel,
.booking-flow .booking-form-section > .visit-options,
.booking-flow .booking-form-section > .consent-box,
.booking-flow .booking-form-section > .full-width {
    grid-column: 1 / -1;
}

.booking-flow .booking-selection-grid,
.booking-flow .booking-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.booking-flow .booking-selection-grid {
    grid-column: 1 / -1;
}

.booking-flow .booking-form-section .form-group {
    min-width: 0;
    margin: 0;
}

.booking-flow .form-group label,
.booking-flow .form-label {
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.015em;
}

.booking-flow .form-group input,
.booking-flow .form-group select,
.booking-flow .form-group textarea {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(23, 47, 59, 0.16);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: none;
    color: var(--ink);
    font-size: 0.9rem;
}

.booking-flow .form-group textarea {
    min-height: 120px;
}

.booking-flow .form-group input:focus,
.booking-flow .form-group select:focus,
.booking-flow .form-group textarea:focus {
    border-color: var(--sea);
    box-shadow: 0 0 0 3px rgba(23, 77, 96, 0.12);
}

.booking-flow .btn-question {
    width: 21px;
    height: 21px;
    margin-left: 5px;
    border: 1px solid rgba(23, 77, 96, 0.38);
    border-radius: 50%;
    background: transparent;
    color: var(--sea);
    font-size: 0.68rem;
    line-height: 1;
}

.booking-flow .booking-calendar {
    margin-top: 5px;
    padding-top: 19px;
    border-top: 1px solid var(--line);
}

.booking-flow .booking-calendar .panel-card {
    padding: 28px;
    border: 1px dashed rgba(23, 77, 96, 0.28);
    border-radius: 0;
    background: rgba(220, 233, 228, 0.34);
    box-shadow: none;
}

.booking-flow .booking-calendar .panel-card:hover {
    transform: none;
    box-shadow: none;
}

.booking-flow .day-column {
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.62);
}

.booking-flow .day-column h4 {
    margin: 0 0 19px;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.booking-flow .slot-period-label {
    color: var(--sea);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.booking-flow .slot-grid {
    gap: 8px;
}

.booking-flow .slot-btn {
    min-height: 39px;
    border: 1px solid rgba(23, 77, 96, 0.23);
    border-radius: 0;
    background: transparent;
    color: var(--sea-deep);
    font-size: 0.78rem;
    font-weight: 700;
}

.booking-flow .slot-btn:hover,
.booking-flow .slot-btn--selected {
    border-color: var(--sea);
    background: var(--sea);
    color: #fff;
}

.booking-flow .choice-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 9px;
}

.booking-flow .choice-card {
    min-height: 100%;
    padding: 16px;
    border: 1px solid rgba(23, 47, 59, 0.14);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: none;
}

.booking-flow .choice-card:hover,
.booking-flow .choice-toggle input[type="radio"]:checked + .choice-card {
    border-color: var(--sea);
    background: rgba(220, 233, 228, 0.62);
    box-shadow: none;
}

.booking-flow .choice-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(23, 77, 96, 0.11);
    color: var(--sea);
}

.booking-flow .choice-card__title {
    color: var(--ink);
    font-size: 0.82rem;
}

.booking-flow .choice-card__desc {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 0.7rem;
    line-height: 1.42;
}

.booking-flow .parent-panel {
    margin: 0;
    padding: 21px;
    border: 1px solid rgba(23, 77, 96, 0.2);
    border-left: 3px solid var(--sea);
    border-radius: 0;
    background: rgba(220, 233, 228, 0.42);
}

.booking-flow .parent-panel__title {
    color: var(--sea-deep);
    font-family: var(--display-font);
    font-size: 1.16rem;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.booking-flow .admin-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.booking-flow .booking-form-section--consents {
    gap: 14px;
}

.booking-flow .consent-box {
    margin: 0;
    padding: 15px 16px;
    border: 1px solid rgba(23, 47, 59, 0.12);
    border-left: 3px solid #c9a46f;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.5);
}

.booking-flow .consent-box strong {
    color: var(--sea) !important;
}

.booking-flow .consent-box ul {
    color: var(--ink-soft) !important;
}

.booking-flow .checkbox-label {
    align-items: flex-start;
    color: var(--ink-soft);
    font-size: 0.77rem;
    line-height: 1.65;
}

.booking-flow .checkbox-label input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 3px 9px 0 0;
    padding: 0;
    border-radius: 0;
    accent-color: var(--sea);
}

.booking-flow .consent-box a {
    color: var(--sea);
}

.booking-flow #submitBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 21px;
    border-radius: 999px;
    background: var(--sea);
    box-shadow: none;
    font-size: 0.78rem;
}

.booking-flow #submitBtn:hover:not(:disabled) {
    background: var(--sea-deep);
    box-shadow: 0 10px 22px rgba(16, 57, 70, 0.18);
}

.booking-flow #submitBtn:disabled {
    background: rgba(23, 77, 96, 0.35);
    cursor: not-allowed;
}

.booking-flow #slotHint {
    color: var(--ink-soft);
    font-size: 0.72rem;
}



footer.site-footer {
    margin-top: 0;
    background: var(--sea-deep);
}

.site-footer-inner {
    width: min(1320px, 100%);
    padding: 68px clamp(22px, 5vw, 62px) 36px;
}

.site-footer-block {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.site-footer-kicker {
    display: block;
    margin-bottom: 11px;
    color: #b9d3c8;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer-block h3 {
    margin-bottom: 15px;
    color: #fff;
    font-family: var(--display-font);
    font-size: 1.36rem;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.site-footer-lead {
    max-width: 30ch;
    color: rgba(255, 255, 255, 0.69);
    font-size: 0.82rem;
    line-height: 1.75;
}

.site-footer-links a,
.site-footer-text-links,
.site-footer-login {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.77rem;
}

.site-footer-login {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: transparent;
}

.site-footer-login:hover {
    border-color: #d8ecdf;
    background: #d8ecdf;
    color: var(--sea-deep);
}

.site-footer-bar {
    width: min(1320px, 100%);
    padding: 21px clamp(22px, 5vw, 62px) 31px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
}

@media (max-width: 1100px) {
    .site-header .header-container {
        grid-template-columns: minmax(210px, 1fr) auto auto;
        gap: 12px;
    }

    .site-header .header-nav {
        gap: 2px;
        padding: 4px;
    }

    .site-header .header-nav__link {
        padding: 8px 10px;
    }

    .home-hero,
    .booking-flow-hero {
        gap: clamp(32px, 6vw, 64px);
    }

    .home-information,
    .booking-flow__layout {
        gap: 48px;
    }

    .information-list {
        grid-template-columns: minmax(150px, 0.65fr) minmax(180px, 1fr);
    }

    .information-list .text-link {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 820px) {
    .site-header .header-container {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 0;
        padding: 10px 18px;
    }

    .site-header .header-brand__role,
    .site-header .btn-reserved {
        display: none;
    }

    .site-header .header-nav {
        display: flex;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        max-width: 100%;
        overflow-x: auto;
    }

    .site-header .btn-book {
        min-height: 38px;
        padding: 0 12px;
    }

    .home-hero,
    .booking-flow-hero,
    .home-introduction,
    .home-information,
    .home-cta {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: 0;
        padding-top: 56px;
    }

    .home-hero__portrait {
        justify-self: start;
        width: min(100%, 430px);
    }

    .trust-strip {
        grid-template-columns: repeat(3, 1fr);
        width: min(100% - 44px, 620px);
    }

    .trust-strip__statement {
        grid-column: 1 / -1;
        min-height: 88px;
    }

    .home-introduction,
    .home-information {
        gap: 30px;
    }

    .care-grid {
        grid-template-columns: 1fr;
        width: min(100% - 44px, 620px);
    }

    .care-card {
        min-height: 270px;
    }

    .home-introduction,
    .home-information,
    .home-cta {
        width: min(100% - 44px, 620px);
    }

    .home-information {
        padding: 88px 0;
    }

    .booking-flow-hero {
        padding-top: 57px;
    }

    .booking-flow__layout {
        grid-template-columns: 1fr;
    }

    .booking-flow__aside {
        position: static;
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    .site-header .sa-brand__logo {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .site-header .header-brand__name {
        font-size: 1.08rem;
    }

    .site-header .btn-book span {
        display: none;
    }

    .site-header .btn-book {
        width: 38px;
        padding: 0;
    }

    .home-hero,
    .booking-flow {
        padding-right: 22px;
        padding-left: 22px;
    }

    .home-hero h1,
    .booking-flow-hero h1 {
        font-size: clamp(3.15rem, 16vw, 4.8rem);
    }

    .home-hero__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-hero__portrait {
        padding-left: 16px;
    }

    .home-hero .homepage-image img {
        border-radius: 140px 140px 18px 18px;
    }

    .trust-strip {
        grid-template-columns: 1fr;
        width: calc(100% - 44px);
    }

    .trust-strip__item {
        min-height: 100px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .home-introduction h2,
    .home-information h2,
    .home-cta h2 {
        font-size: clamp(2.6rem, 13vw, 3.75rem);
    }

    .information-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .information-list .text-link {
        grid-column: auto;
    }

    .home-cta {
        padding: 35px 25px;
    }

    .booking-flow {
        padding-right: 16px;
        padding-left: 16px;
    }

    .booking-flow-hero {
        padding-top: 48px;
    }

    .booking-flow-steps,
    .booking-flow .booking-selection-grid,
    .booking-flow .booking-contact-grid,
    .booking-flow .booking-form-section,
    .booking-flow .admin-mini-grid {
        grid-template-columns: 1fr;
    }

    .booking-flow-steps li {
        min-height: auto;
    }

    .booking-flow-steps strong {
        align-self: auto;
    }

    .booking-flow .registration-card.book-appointment {
        padding: 24px 18px;
    }

    .booking-form-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .booking-flow .booking-form-section > legend {
        grid-column: 1;
    }

    .booking-flow .booking-selection-grid,
    .booking-flow .booking-calendar,
    .booking-flow .booking-form-section > .form-group.full-width,
    .booking-flow .booking-form-section > .parent-panel,
    .booking-flow .booking-form-section > .visit-options,
    .booking-flow .booking-form-section > .consent-box,
    .booking-flow .booking-form-section > .full-width {
        grid-column: 1;
    }

    .booking-flow .choice-toggle {
        grid-template-columns: 1fr;
    }

    .booking-flow .booking-form-section {
        padding: 28px 0;
    }

    .site-footer-inner {
        padding-top: 48px;
    }
}







.profile-page,
.information-page,
.access-page {
    overflow: clip;
}

.profile-hero,
.profile-story,
.profile-academic,
.profile-publications,
.profile-cta,
.information-hero,
.information-section,
.information-cta,
.access-shell {
    width: min(1180px, calc(100% - clamp(44px, 10vw, 124px)));
    margin: 0 auto;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.66fr);
    gap: clamp(38px, 9vw, 146px);
    align-items: end;
    padding: clamp(68px, 10vw, 130px) 0 clamp(70px, 9vw, 118px);
}

.profile-hero h1,
.information-hero h1,
.access-context h1 {
    margin: 21px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(3.45rem, 6.9vw, 6.4rem);
    font-weight: 400;
    letter-spacing: -0.07em;
    line-height: 0.87;
}

.profile-hero h1 {
    max-width: 10ch;
}

.profile-hero h1 em,
.access-context h1 em {
    color: var(--sea);
    font-family: var(--display-italic);
    font-style: italic;
    font-weight: 300;
}

.profile-hero__copy > p:last-child {
    max-width: 48ch;
    margin: 26px 0 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.86;
}

.profile-credentials {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    gap: 8px;
    padding: clamp(24px, 4vw, 39px);
    border: 1px solid rgba(23, 77, 96, 0.24);
    background: rgba(220, 233, 228, 0.52);
}

.profile-credentials span,
.profile-focus-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(23, 77, 96, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--sea-deep);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.profile-story {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(40px, 10vw, 160px);
    padding: clamp(72px, 10vw, 132px) 0;
    border-top: 1px solid var(--line);
}

.profile-story h2,
.profile-academic h2,
.profile-publications h2,
.information-section h2,
.information-cta h2 {
    margin: 15px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(2.35rem, 4.2vw, 4.25rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.94;
}

.profile-story h2 {
    max-width: 10ch;
}

.profile-story__body {
    display: grid;
    gap: 19px;
    max-width: 635px;
}

.profile-story__body > p,
.profile-academic__content > p,
.profile-publications__heading > p,
.information-section__heading > p,
.information-cta > div:last-child > p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.88;
}

.profile-story__body strong,
.profile-academic__content strong {
    color: var(--sea-deep);
    font-weight: 750;
}

.profile-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 11px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.profile-values span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sea);
    font-size: 0.72rem;
    font-weight: 750;
}

.profile-values i {
    font-size: 0.98rem;
}

.profile-academic {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.72fr);
    gap: clamp(40px, 8vw, 132px);
    padding: clamp(63px, 8vw, 100px) clamp(28px, 5vw, 64px);
    background: var(--sea);
}

.profile-academic .section-kicker {
    color: #cfe3d9;
}

.profile-academic h2 {
    max-width: 14ch;
    color: #fff;
    font-size: clamp(2.25rem, 3.8vw, 3.95rem);
}

.profile-academic__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 24px;
    padding-bottom: 5px;
}

.profile-academic__content > p {
    color: rgba(255, 255, 255, 0.77);
}

.profile-academic__content strong {
    color: #f5e6cf;
}

.profile-focus-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.profile-focus-list span {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.profile-detail-grid {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(12px, 4vw, 30px);
    background: rgba(255, 255, 255, 0.19);
}

.profile-detail-grid article {
    min-height: 230px;
    padding: 28px;
    background: rgba(6, 44, 56, 0.28);
}

.profile-detail-grid span {
    color: #b9d8ca;
    font-family: var(--display-font);
    font-size: 1.2rem;
}

.profile-detail-grid h3 {
    max-width: 15ch;
    margin: 46px 0 11px;
    color: #fff;
    font-family: var(--display-font);
    font-size: 1.62rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
}

.profile-detail-grid p {
    max-width: 48ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.69);
    font-size: 0.79rem;
    line-height: 1.72;
}

.profile-publications {
    padding: clamp(76px, 10vw, 138px) 0;
}

.profile-publications__heading {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
    column-gap: clamp(40px, 9vw, 130px);
    align-items: end;
}

.profile-publications__heading .section-kicker,
.profile-publications__heading h2 {
    grid-column: 1;
}

.profile-publications__heading > p {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.profile-publications .books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 47px;
    border: 1px solid var(--line);
    background: var(--line);
}

.profile-publications .book-card {
    min-height: 240px;
    padding: 25px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.67);
    box-shadow: none;
}

.profile-publications .book-card:hover {
    border: 0;
    background: #e5efeb;
    box-shadow: none;
    transform: none;
}

.profile-publications .book-year {
    color: var(--sea);
    font-family: var(--display-font);
    font-size: 1.15rem;
}

.profile-publications .book-title {
    margin-top: auto;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 1.24rem;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.profile-publications .book-meta,
.profile-publications .book-publisher {
    color: var(--ink-soft);
}

.profile-cta,
.information-cta {
    display: flex;
    justify-content: space-between;
    gap: 42px;
    align-items: end;
    padding: clamp(40px, 6vw, 66px);
    background: #dce9e4;
}

.profile-cta h2 {
    max-width: 10ch;
    margin: 15px 0 0;
    color: var(--sea-deep);
    font-family: var(--display-font);
    font-size: clamp(2.4rem, 4.1vw, 4.15rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.94;
}

.profile-cta .btn-book,
.information-cta .btn-book {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--sea);
    box-shadow: none;
    font-size: 0.77rem;
    font-weight: 750;
    text-decoration: none;
}

.profile-cta .btn-book:hover,
.information-cta .btn-book:hover {
    background: var(--sea-deep);
    box-shadow: 0 10px 22px rgba(16, 57, 70, 0.15);
}



.information-hero {
    max-width: 940px;
    padding: clamp(68px, 10vw, 126px) 0 clamp(54px, 7vw, 86px);
    text-align: center;
}

.information-hero .eyebrow {
    justify-content: center;
}

.information-hero h1 {
    max-width: 10ch;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(3.35rem, 6.5vw, 6rem);
}

.information-hero > p:not(.eyebrow) {
    max-width: 58ch;
    margin: 26px auto 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.84;
}

.information-jump-nav {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 31px;
}

.information-jump-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 39px;
    padding: 0 14px;
    border: 1px solid rgba(23, 77, 96, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--sea);
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
}

.information-jump-nav a:hover {
    background: var(--sea);
    color: #fff;
}

.information-section {
    padding: clamp(62px, 8vw, 104px) 0;
    border-top: 1px solid var(--line);
}

.information-section__heading {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.55fr);
    gap: clamp(40px, 9vw, 136px);
    align-items: end;
    margin-bottom: 48px;
}

.information-section h2 {
    max-width: 11ch;
}

.information-section__heading > p {
    max-width: 37ch;
}

.condition-grid,
.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.condition-card {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    background: rgba(255, 255, 255, 0.67);
}

.condition-card:nth-child(5n + 1) {
    background: #dfeae6;
}

.condition-card__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: rgba(23, 77, 96, 0.1);
    color: var(--sea);
    font-size: 1rem;
}

.condition-card h3,
.location-card h3 {
    margin: auto 0 10px;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.condition-card p {
    display: block;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.79rem;
    line-height: 1.72;
}

.information-section--locations {
    padding-top: 0;
    border-top: 0;
}

.location-card {
    display: grid;
    min-height: 245px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 25px;
    background: rgba(255, 255, 255, 0.67);
}

.location-card__province {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border: 1px solid rgba(23, 77, 96, 0.23);
    border-radius: 50%;
    color: var(--sea);
    font-family: var(--display-font);
    font-size: 0.86rem;
}

.location-card h3 {
    margin: 1px 0 11px;
}

.location-card address {
    display: grid;
    gap: 3px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.77rem;
    font-style: normal;
    line-height: 1.55;
}

.location-card .text-link {
    grid-column: 1 / -1;
    align-self: end;
    width: max-content;
    margin: auto 0 0;
}

.information-cta {
    margin-bottom: clamp(78px, 11vw, 140px);
    background: var(--sea);
}

.information-cta .section-kicker,
.information-cta h2 {
    color: #fff;
}

.information-cta h2 {
    max-width: 10ch;
}

.information-cta > div:last-child {
    max-width: 380px;
}

.information-cta > div:last-child > p {
    color: rgba(255, 255, 255, 0.76);
}

.information-cta .btn-book {
    margin-top: 25px;
    background: #f5e6cf;
    color: var(--sea-deep);
}

.information-cta .btn-book:hover {
    background: #fff3df;
    color: var(--sea-deep);
}



.access-page {
    display: grid;
    min-height: calc(100vh - 86px);
    align-items: center;
    padding: clamp(54px, 8vw, 112px) 0;
}

.access-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.62fr);
    gap: clamp(44px, 11vw, 178px);
    align-items: center;
}

.access-context h1 {
    max-width: 8ch;
    font-size: clamp(3.35rem, 6.2vw, 5.65rem);
}

.access-context > p:not(.eyebrow) {
    max-width: 43ch;
    margin: 25px 0 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.85;
}

.access-context__notice {
    display: flex;
    max-width: 36ch;
    gap: 10px;
    margin-top: 28px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
    color: var(--sea);
    font-size: 0.73rem;
    font-weight: 750;
    line-height: 1.55;
}

.access-context__notice i {
    flex: 0 0 auto;
    font-size: 1rem;
}

.access-page .login-card.access-card {
    max-width: none;
    padding: clamp(29px, 4vw, 47px);
    border: 1px solid rgba(23, 47, 59, 0.14);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 24px 58px rgba(16, 57, 70, 0.09);
    text-align: left;
}

.access-page .login-card.access-card:hover {
    border-color: rgba(23, 47, 59, 0.14);
    box-shadow: 0 24px 58px rgba(16, 57, 70, 0.09);
}

.access-card__mark {
    display: grid;
    width: 47px;
    height: 47px;
    margin-bottom: 23px;
    place-items: center;
    border-radius: 50%;
    background: var(--sage);
    color: var(--sea);
    font-size: 1.15rem;
}

.access-page .login-card h2 {
    margin: 10px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 1;
}

.access-page .login-card .access-card__intro {
    margin: 11px 0 29px;
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.6;
}

.access-page .login-card .status-msg {
    margin-bottom: 20px;
    border-radius: 0;
    font-size: 0.78rem;
}

.access-page .form-group {
    margin-bottom: 18px;
}

.access-page .form-group label {
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 750;
}

.access-page .form-group input {
    width: 100%;
    min-height: 49px;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(23, 47, 59, 0.16);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: none;
    color: var(--ink);
    font-size: 0.9rem;
}

.access-page .form-group input:focus {
    border-color: var(--sea);
    box-shadow: 0 0 0 3px rgba(23, 77, 96, 0.12);
}

.access-page .password-wrapper {
    position: relative;
}

.access-page .password-wrapper .password-field {
    padding-right: 52px;
}

.access-page .toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sea);
    cursor: pointer;
    transform: translateY(-32%);
}

.access-page .toggle-password:hover {
    background: rgba(23, 77, 96, 0.09);
}

.access-page .access-submit {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: var(--sea);
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.77rem;
    font-weight: 750;
}

.access-page .access-submit:hover {
    background: var(--sea-deep);
    box-shadow: 0 10px 22px rgba(16, 57, 70, 0.17);
}

.access-card__help {
    display: flex;
    gap: 7px;
    margin: 21px 0 0 !important;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft) !important;
    font-size: 0.7rem !important;
    line-height: 1.55 !important;
}

.access-card__help i {
    flex: 0 0 auto;
    color: var(--sea);
    font-size: 0.85rem;
}

@media (max-width: 960px) {
    .profile-hero,
    .profile-story,
    .profile-academic,
    .profile-publications__heading,
    .information-section__heading,
    .access-shell {
        grid-template-columns: 1fr;
    }

    .profile-hero,
    .profile-story,
    .profile-academic,
    .access-shell {
        gap: 35px;
    }

    .profile-hero h1,
    .profile-story h2,
    .profile-academic h2 {
        max-width: 13ch;
    }

    .profile-credentials {
        max-width: 640px;
    }

    .profile-publications__heading > p {
        grid-column: 1;
        grid-row: auto;
        max-width: 48ch;
        margin-top: 20px;
    }

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

    .access-page {
        min-height: 0;
    }

    .access-context {
        max-width: 630px;
    }
}

@media (max-width: 640px) {
    .profile-hero,
    .profile-story,
    .profile-academic,
    .profile-publications,
    .profile-cta,
    .information-hero,
    .information-section,
    .information-cta,
    .access-shell {
        width: calc(100% - 44px);
    }

    .profile-hero h1,
    .information-hero h1,
    .access-context h1 {
        font-size: clamp(3.1rem, 15vw, 4.45rem);
    }

    .profile-story h2,
    .profile-academic h2,
    .profile-publications h2,
    .information-section h2,
    .information-cta h2,
    .profile-cta h2 {
        font-size: clamp(2.45rem, 12vw, 3.5rem);
    }

    .profile-detail-grid,
    .profile-publications .books-grid,
    .condition-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .profile-academic {
        padding: 37px 25px;
    }

    .profile-detail-grid article {
        min-height: 200px;
        padding: 24px;
    }

    .profile-publications .books-grid {
        margin-top: 35px;
    }

    .profile-cta,
    .information-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
        padding: 34px 25px;
    }

    .information-hero {
        text-align: left;
    }

    .information-hero .eyebrow,
    .information-jump-nav {
        justify-content: flex-start;
    }

    .information-hero h1,
    .information-hero > p:not(.eyebrow) {
        margin-right: 0;
        margin-left: 0;
    }

    .information-section__heading {
        gap: 19px;
        margin-bottom: 33px;
    }

    .condition-card,
    .location-card {
        min-height: 215px;
    }

    .access-page {
        padding: 50px 0 76px;
    }

    .access-page .login-card.access-card {
        padding: 27px 20px;
    }
}





html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
picture,
video,
canvas,
iframe {
    max-inline-size: 100%;
}

img,
video,
canvas {
    block-size: auto;
}

.home-page,
.profile-page,
.information-page,
.booking-page,
.access-page {
    overflow-x: clip;
}

.home-hero__copy,
.home-hero__portrait,
.home-information__intro,
.home-information__lists,
.booking-flow-hero__copy,
.booking-flow__aside,
.booking-flow .booking-form-section,
.booking-flow .choice-card,
.profile-hero__copy,
.profile-story__body,
.profile-academic__content,
.information-section__heading,
.access-context,
.access-page .login-card {
    min-width: 0;
}

.home-hero h1,
.booking-flow-hero h1,
.profile-hero h1,
.information-hero h1,
.access-context h1 {
    text-wrap: balance;
}

@media (max-width: 820px) {
    .site-header .header-nav {
        width: 100%;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .site-header .header-nav::-webkit-scrollbar {
        display: none;
    }

    .site-header .header-nav__link {
        flex: 0 0 auto;
        min-height: 42px;
    }

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

    .home-hero__actions > *,
    .profile-cta .btn-book,
    .information-cta .btn-book {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .site-header .header-container {
        padding-right: max(14px, env(safe-area-inset-right));
        padding-left: max(14px, env(safe-area-inset-left));
    }

    .site-header .btn-book {
        position: relative;
        width: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .site-header .btn-book span {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .site-header .header-nav {
        margin-right: calc(-1 * max(14px, env(safe-area-inset-right)));
        padding-right: max(14px, env(safe-area-inset-right));
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        padding-right: max(22px, env(safe-area-inset-right));
        padding-left: max(22px, env(safe-area-inset-left));
    }

    .site-footer-bar {
        padding-right: max(22px, env(safe-area-inset-right));
        padding-left: max(22px, env(safe-area-inset-left));
    }

    .home-hero__actions,
    .profile-cta,
    .information-cta {
        width: 100%;
    }

    .home-hero__actions .btn-book,
    .home-hero__actions .hero-link,
    .profile-cta .btn-book,
    .information-cta .btn-book {
        justify-content: center;
    }

    .booking-flow .form-group input,
    .booking-flow .form-group select,
    .booking-flow .form-group textarea,
    .access-page .form-group input {
        font-size: 1rem;
    }

    .booking-flow .booking-form-section > legend,
    .booking-flow .choice-card__title,
    .booking-flow .choice-card__desc,
    .access-card__help {
        overflow-wrap: anywhere;
    }

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

    .booking-flow .slot-btn {
        min-height: 46px;
    }

    .booking-flow .modal-dialog {
        width: min(calc(100% - 24px), 560px);
        max-height: calc(100dvh - 24px);
        margin: 12px auto;
    }

    .booking-flow .modal-content {
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }
}

@media (max-width: 390px) {
    .site-header .header-brand__name {
        max-width: calc(100vw - 104px);
        font-size: 1rem;
    }

    .site-header .header-nav__link {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 0.72rem;
    }

    .home-hero,
    .booking-flow {
        padding-right: max(14px, env(safe-area-inset-right));
        padding-left: max(14px, env(safe-area-inset-left));
    }

    .home-hero__portrait {
        padding-left: 0;
    }

    .booking-flow .registration-card.book-appointment {
        padding: 21px 14px;
    }

    .booking-flow .choice-card,
    .booking-flow .parent-panel,
    .booking-flow .consent-box {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-height: 720px) and (min-width: 821px) {
    .home-hero,
    .booking-flow-hero {
        min-height: 0;
        padding-top: clamp(44px, 8vh, 76px);
        padding-bottom: clamp(44px, 8vh, 76px);
    }

    .home-hero__portrait {
        width: min(100%, 390px);
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    .home-hero,
    .booking-flow-hero,
    .profile-hero,
    .information-hero,
    .access-page {
        min-height: 0;
        padding-top: 34px;
        padding-bottom: 34px;
    }
}

@media (pointer: coarse) {
    .site-header .header-nav__link,
    .site-footer-login,
    .home-hero__actions .btn-book,
    .home-hero__actions .hero-link,
    .profile-cta .btn-book,
    .information-cta .btn-book,
    .booking-flow .choice-card,
    .booking-flow .slot-btn {
        min-height: 44px;
    }
}





.home-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.7fr);
}

.home-hero__portrait {
    justify-self: start;
    width: min(100%, 440px);
    margin-top: clamp(34px, 6vw, 84px);
    padding: 0 42px 58px 0;
}

.home-hero__portrait::before {
    position: absolute;
    z-index: 0;
    top: 46px;
    right: 0;
    bottom: 0;
    left: 48px;
    background: var(--mint);
    content: '';
}

.home-hero__portrait::after {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: -18px;
    width: 74px;
    height: 1px;
    background: var(--sea);
    content: '';
}

.home-hero__shape--sun,
.home-hero__shape--line {
    display: none;
}

.home-hero .homepage-image {
    z-index: 1;
}

.home-hero .homepage-image img {
    aspect-ratio: 4 / 5;
    border-radius: 0;
    box-shadow: 0 30px 62px rgba(16, 57, 70, 0.17);
    object-position: 50% 16%;
}

.home-hero .homepage-image figcaption {
    position: absolute;
    z-index: 2;
    right: -18px;
    bottom: -38px;
    width: min(238px, 72%);
    margin: 0;
    padding: 17px 18px 16px;
    background: var(--paper);
    box-shadow: 0 16px 34px rgba(16, 57, 70, 0.1);
}

.home-hero .homepage-image figcaption::before {
    display: block;
    width: 28px;
    height: 1px;
    margin-bottom: 11px;
    background: var(--sea);
    content: '';
}

.home-hero .homepage-image figcaption span {
    font-size: 1.06rem;
}

.home-hero .homepage-image figcaption small {
    display: block;
    margin-top: 3px;
    line-height: 1.55;
}

@media (max-width: 820px) {
    .home-hero__portrait {
        justify-self: center;
        width: min(100%, 400px);
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .home-hero__portrait {
        width: min(100%, 355px);
        padding-right: 25px;
        padding-bottom: 50px;
    }

    .home-hero__portrait::before {
        top: 34px;
        left: 30px;
    }

    .home-hero__portrait::after {
        top: 14px;
        left: -8px;
        width: 50px;
    }

    .home-hero .homepage-image figcaption {
        right: -4px;
        bottom: -32px;
        width: min(230px, 78%);
        padding: 14px 15px;
    }
}

@media (max-width: 390px) {
    .home-hero__portrait {
        width: min(100%, 320px);
        padding-right: 18px;
    }

    .home-hero .homepage-image figcaption {
        right: -2px;
        width: min(215px, 78%);
    }
}

.site-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border: 1px solid rgba(23, 47, 59, 0.13);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: var(--sea-deep);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.site-menu-toggle:hover,
.site-menu-toggle.is-open {
    border-color: rgba(23, 77, 96, 0.28);
    background: var(--mint);
    transform: translateY(-1px);
}

@media (max-width: 820px) {
    .site-header {
        overflow: visible;
    }

    .site-header .header-container {
        position: relative;
        display: flex;
        min-height: 66px;
        gap: 10px;
        padding: 10px 18px;
    }

    .site-header .header-left {
        min-width: 0;
        flex: 1 1 auto;
    }

    .site-header .sa-brand__text {
        min-width: 0;
    }

    .site-header .header-nav {
        display: none;
        grid-column: auto;
        grid-row: auto;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 8px;
        overflow: visible;
    }

    .site-header .header-nav.is-open {
        position: absolute;
        z-index: 60;
        top: calc(100% + 8px);
        right: 18px;
        left: 18px;
        width: calc(100% - 36px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-self: stretch;
        gap: 3px;
        border: 1px solid rgba(23, 47, 59, 0.1);
        border-radius: 20px;
        background: rgba(255, 254, 250, 0.97);
        box-shadow: 0 22px 46px -26px rgba(16, 57, 70, 0.44);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        animation: public-menu-in 180ms var(--ease);
    }

    .site-header .header-nav__link {
        min-height: 45px;
        padding: 12px 14px;
        text-align: left;
    }

    .site-header .header-right {
        gap: 8px;
    }

    .site-header .btn-reserved {
        display: none;
    }

    .site-menu-toggle {
        display: inline-flex;
    }

    .home-hero {
        gap: 44px;
        padding-top: clamp(42px, 8vw, 64px);
    }
}

@keyframes public-menu-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .site-header .header-container {
        min-height: 62px;
        padding-right: max(14px, env(safe-area-inset-right));
        padding-left: max(14px, env(safe-area-inset-left));
    }

    .site-header .header-nav.is-open {
        right: max(14px, env(safe-area-inset-right));
        left: max(14px, env(safe-area-inset-left));
        width: calc(100% - 28px);
    }

    .site-header .sa-brand__logo {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .site-header .header-brand__name {
        font-size: 1.06rem;
    }

    .site-header .btn-book {
        width: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
    }

    .site-menu-toggle {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .home-hero {
        gap: 38px;
        padding-top: 42px;
        padding-bottom: 58px;
    }

    .home-hero h1 {
        max-width: 12ch;
        margin-top: 17px;
        margin-bottom: 20px;
        font-size: clamp(3rem, 12.4vw, 4rem);
        line-height: 0.9;
    }

    .home-hero__lead {
        font-size: 1rem;
        line-height: 1.7;
    }

    .home-hero__actions {
        gap: 13px;
        margin-top: 25px;
    }

    .home-hero__actions .btn-book {
        width: 100%;
        min-height: 52px;
    }

    .home-hero__portrait {
        width: min(100%, 340px);
        margin-right: auto;
        margin-left: auto;
        padding-right: 20px;
    }

    .home-hero .homepage-image figcaption {
        right: 0;
        width: min(224px, 77%);
    }
}

@media (max-width: 390px) {
    .site-header .header-brand__name {
        max-width: calc(100vw - 158px);
    }

    .home-hero h1 {
        max-width: 11.5ch;
        font-size: clamp(2.85rem, 12.8vw, 3.25rem);
    }

    .home-hero__portrait {
        width: min(100%, 306px);
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-menu-toggle,
    .site-header .header-nav.is-open {
        animation: none;
        transition: none;
    }
}

@media (max-width: 820px) {
    .site-header .header-right > .btn-book {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .site-header .header-right > .btn-reserved {
        display: none !important;
    }

    .site-header .header-right > .site-menu-toggle {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 600px) {
    .home-hero h1 {
        width: auto;
        max-width: 100% !important;
        text-wrap: initial !important;
    }
}


@media (max-width: 820px) {
    .site-header .header-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .site-header .header-left,
    .site-header .header-right {
        min-width: 0;
    }

    .site-header .header-right {
        flex-wrap: nowrap;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(38px, 8vw, 54px);
    }

    .home-hero__copy {
        width: 100%;
        max-width: 660px;
    }
}

@media (max-width: 600px) {
    .site-header .header-right {
        gap: 6px;
    }

    .public-login-mobile .site-header .header-right > .btn-reserved {
        display: none !important;
    }

    .home-hero h1 {
        max-width: 100% !important;
        font-size: clamp(2.95rem, 12vw, 3.6rem);
        line-height: 0.92;
        text-wrap: wrap !important;
    }

    .home-hero__actions .btn-book {
        gap: 10px;
    }

    .home-hero__actions .btn-book span {
        position: static;
        display: inline;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }
}

@media (max-width: 820px) {
    .site-header .header-nav.is-open {
        gap: 8px;
        padding: 12px;
        border-radius: 24px;
        background: var(--paper);
    }

    .site-header .header-nav.is-open .header-nav__link {
        display: flex;
        align-items: center;
        min-height: 52px;
        padding: 13px 16px;
        border: 1px solid transparent;
        border-radius: 15px;
        box-shadow: none;
        font-size: 0.88rem;
        font-weight: 750;
    }

    .site-header .header-nav.is-open .header-nav__link:not([aria-current="page"]),
    .site-header .header-nav.is-open .header-nav__link:not([aria-current="page"]):hover {
        background: rgba(220, 233, 228, 0.58) !important;
        color: var(--ink) !important;
        box-shadow: none !important;
    }

    .site-header .header-nav.is-open .header-nav__link[aria-current="page"] {
        background: var(--sea) !important;
        color: #fff !important;
        box-shadow: 0 10px 20px rgba(21, 77, 96, 0.18) !important;
    }
}

@media (max-width: 640px) {
    .profile-academic {
        box-sizing: border-box;
        gap: 30px;
        padding: 36px clamp(22px, 6vw, 30px);
    }

    .profile-academic h2 {
        max-width: none;
        font-size: clamp(2.05rem, 9.8vw, 2.65rem);
        letter-spacing: -0.055em;
        line-height: 0.98;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .profile-academic__content {
        gap: 20px;
    }

    .profile-academic__content > p {
        font-size: 0.95rem;
        line-height: 1.76;
    }

    .profile-focus-list span {
        max-width: 100%;
    }
}

.first-visit {
    display: grid;
    grid-template-columns: minmax(230px, 0.56fr) minmax(0, 1.44fr);
    gap: clamp(36px, 7vw, 106px);
    width: min(1180px, calc(100% - clamp(44px, 10vw, 124px)));
    margin: clamp(84px, 11vw, 146px) auto 0;
    padding: clamp(34px, 5vw, 60px) 0 0;
    border-top: 1px solid var(--line);
}

.first-visit__intro h2 {
    max-width: 9ch;
    margin: 15px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(2.5rem, 4.35vw, 4.25rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.93;
}

.first-visit__intro h2 em {
    color: var(--sea);
    font-family: var(--display-italic);
    font-style: italic;
    font-weight: 300;
}

.first-visit__intro > p:not(.section-kicker) {
    max-width: 31ch;
    margin: 23px 0 0;
    color: var(--ink-soft);
    font-size: 0.96rem;
    line-height: 1.82;
}

.first-visit__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--line);
}

.first-visit__steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    min-height: 226px;
    padding: 24px 20px;
    background: #eef4f1;
}

.first-visit__number {
    color: rgba(23, 77, 96, 0.52);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.first-visit__steps i {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin-bottom: 33px;
    place-items: center;
    border-radius: 50%;
    background: var(--paper);
    color: var(--sea);
    font-size: 1rem;
}

.first-visit__steps h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 1.46rem;
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
}

.first-visit__steps p {
    margin: 11px 0 0;
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.66;
}

.first-visit__link {
    grid-column: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: -12px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    color: var(--sea);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.first-visit__link:hover {
    color: var(--sea-deep);
    transform: translateX(3px);
}

@media (max-width: 820px) {
    .first-visit {
        grid-template-columns: 1fr;
        gap: 34px;
        width: min(100% - 44px, 620px);
    }

    .first-visit__intro > p:not(.section-kicker) {
        max-width: 48ch;
    }

    .first-visit__link {
        grid-column: 1;
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .first-visit {
        margin-top: 82px;
        padding-top: 30px;
    }

    .first-visit__intro h2 {
        font-size: clamp(2.55rem, 13vw, 3.65rem);
    }

    .first-visit__steps {
        grid-template-columns: 1fr;
    }

    .first-visit__steps li {
        min-height: 0;
        padding: 22px;
    }

    .first-visit__steps i {
        margin-bottom: 24px;
    }
}

.appointment-help {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(32px, 7vw, 104px);
    width: min(1180px, calc(100% - clamp(44px, 10vw, 124px)));
    margin: clamp(82px, 11vw, 142px) auto 0;
    padding: clamp(34px, 5vw, 64px);
    border: 1px solid rgba(23, 77, 96, 0.13);
    background:
        radial-gradient(circle at 9% 14%, rgba(241, 228, 206, 0.64), transparent 17rem),
        #eaf1ed;
}

.appointment-help__icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid rgba(23, 77, 96, 0.2);
    border-radius: 50%;
    background: rgba(251, 250, 246, 0.74);
    color: var(--sea);
    font-size: 1.18rem;
}

.appointment-help__intro h2 {
    max-width: 10ch;
    margin: 15px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.94;
}

.appointment-help__intro > p:not(.section-kicker):not(.appointment-help__privacy) {
    max-width: 37ch;
    margin: 22px 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.8;
}

.appointment-help__manual {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    color: var(--sea);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.appointment-help__manual:hover {
    color: var(--sea-deep);
    transform: translateX(3px);
}

.appointment-help__privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 26px 0 0;
    color: var(--ink-soft);
    font-size: 0.73rem;
    line-height: 1.55;
}

.appointment-help__privacy i {
    margin-top: 1px;
    color: var(--sea);
    font-size: 0.92rem;
}

.appointment-help__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    align-content: start;
    padding: clamp(24px, 3.6vw, 38px);
    border: 1px solid rgba(23, 77, 96, 0.12);
    background: rgba(251, 250, 246, 0.82);
    box-shadow: 0 22px 46px -38px rgba(16, 57, 70, 0.5);
}

.appointment-help__field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.appointment-help__field--full,
.appointment-help__actions {
    grid-column: 1 / -1;
}

.appointment-help__field label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 800;
}

.appointment-help__field label span {
    color: var(--ink-soft);
    font-weight: 500;
}

.appointment-help__field input,
.appointment-help__field textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(23, 77, 96, 0.18);
    border-radius: 0;
    outline: 0;
    background: rgba(255, 255, 255, 0.66);
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.appointment-help__field input {
    min-height: 50px;
    padding: 0 14px;
}

.appointment-help__field textarea {
    min-height: 134px;
    padding: 14px;
    line-height: 1.6;
    resize: vertical;
}

.appointment-help__field input::placeholder,
.appointment-help__field textarea::placeholder {
    color: rgba(80, 101, 112, 0.68);
}

.appointment-help__field input:focus,
.appointment-help__field textarea:focus {
    border-color: var(--sea);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(23, 77, 96, 0.1);
}

.appointment-help__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 3px;
}

.appointment-help__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--sea);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.79rem;
    font-weight: 800;
    transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.appointment-help__submit:hover {
    background: var(--sea-deep);
    box-shadow: 0 14px 24px -17px rgba(16, 57, 70, 0.72);
    transform: translateY(-2px);
}

.appointment-help__actions p {
    flex: 1 1 180px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.7rem;
    line-height: 1.5;
}

@media (max-width: 820px) {
    .appointment-help {
        grid-template-columns: 1fr;
        gap: 38px;
        width: min(100% - 44px, 620px);
    }

    .appointment-help__intro h2,
    .appointment-help__intro > p:not(.section-kicker):not(.appointment-help__privacy) {
        max-width: 48ch;
    }
}

@media (max-width: 640px) {
    .appointment-help {
        margin-top: 80px;
        padding: 27px 22px;
    }

    .appointment-help__icon {
        width: 44px;
        height: 44px;
        margin-bottom: 20px;
    }

    .appointment-help__intro h2 {
        max-width: 11ch;
        font-size: clamp(2.45rem, 12vw, 3.45rem);
    }

    .appointment-help__form {
        grid-template-columns: 1fr;
        padding: 21px;
    }

    .appointment-help__field--full,
    .appointment-help__actions {
        grid-column: 1;
    }

    .appointment-help__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .appointment-help__submit {
        width: 100%;
    }
}

.home-information + .appointment-help {
    margin-top: 0;
}

.appointment-help + .home-cta {
    margin-top: clamp(72px, 10vw, 128px);
}

@media (max-width: 640px) {
    .appointment-help + .home-cta {
        margin-top: 64px;
    }
}

/* Messaggio "in attesa di conferma" */
.status-msg.pending {
    background: #fef3c7;
    border: 1px solid #f5c542;
    border-left: 5px solid #e0a100;
    color: #5c3d00;
    font-weight: 600;
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
    line-height: 1.5;
}

.status-msg.pending i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 1.25rem;
    color: #b45309;
}

/* Mobile: messaggio a tutta larghezza e più leggibile */
@media (max-width: 600px) {
    .booking-flow .status-msg {
        margin: 20px -18px 0;      /* annulla il padding della card */
        padding: 16px 18px;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        font-size: 0.95rem;
        line-height: 1.55;
        gap: 12px;
    }

    .booking-flow .status-msg i {
        flex: 0 0 auto;
        margin-top: 2px;
        font-size: 1.3rem;
    }
}

@media (max-width: 390px) {
    .booking-flow .status-msg {
        margin-inline: -14px;      /* la card qui ha padding 14px */
        padding-inline: 14px;
    }
}