/* =========================================================
   RESET
========================================================= */

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


/* =========================================================
   BODY
========================================================= */

body {
    font-family: Arial, Helvetica, sans-serif;

    background: linear-gradient(
        135deg,
        #dceee4,
        #f5f9f6
    );

    color: #2f3e34;

    min-height: 100vh;

    text-align: center;

    padding-top: 110px;
    padding-bottom: 95px;

    scroll-behavior: smooth;
}


/* =========================================================
   HEADER FISSO
========================================================= */

.topbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    background: rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(8px);

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.08);

    z-index: 1000;
}


.header-side {
    width: 44px;

    flex-shrink: 0;
}


/* =========================================================
   LOGO HEADER
========================================================= */

.top-logo {
    height: 70px;

    width: auto;

    filter:
        drop-shadow(
            0 3px 8px rgba(0, 0, 0, 0.12)
        );
}


/* =========================================================
   NOTIFICHE HEADER
========================================================= */

.notification-btn {
    position: relative;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    color: #2f4f40;

    background: rgba(47, 79, 64, 0.08);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;

    flex-shrink: 0;
}


.notification-btn i {
    font-size: 1.3rem;
}


.notification-btn:hover {
    background: rgba(47, 79, 64, 0.15);

    transform: scale(1.05);

    color: #2f4f40;
}


/* =========================================================
   BADGE NOTIFICHE
========================================================= */

.notification-badge {
    position: absolute;

    top: -4px;
    right: -2px;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    border-radius: 999px;

    background: #dc3545;

    color: #ffffff;

    font-size: 0.7rem;

    font-weight: 700;

    display: flex;

    align-items: center;
    justify-content: center;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   CONTENITORE PRINCIPALE
========================================================= */

.custom-container {
    max-width: 1100px;

    width: calc(100% - 40px);

    margin: 0 auto;

    background: rgba(255, 255, 255, 0.82);

    backdrop-filter: blur(6px);

    border-radius: 24px;

    padding: 45px 30px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.10);

    animation: fadeIn 0.6s ease;
}


/* =========================================================
   IMMAGINE PRINCIPALE
========================================================= */

.logo-container {
    margin-bottom: 25px;
}


.logo-img {
    width: 100%;

    max-width: 520px;

    height: auto;

    border-radius: 18px;

    filter:
        drop-shadow(
            0 6px 12px rgba(0, 0, 0, 0.15)
        );
}


/* =========================================================
   TITOLI
========================================================= */

h1 {
    font-size: 2.3rem;

    color: #2f4f40;

    margin-bottom: 20px;

    font-weight: 700;
}


h2 {
    font-size: 1.7rem;

    color: #2f4f40;

    margin-top: 35px;
    margin-bottom: 18px;

    font-weight: 700;
}


/* =========================================================
   TESTO
========================================================= */

p {
    font-size: 1.1rem;

    line-height: 1.7;

    color: #556b61;

    margin-bottom: 25px;
}


strong {
    color: #2f4f40;
}


/* =========================================================
   REGOLAMENTO
========================================================= */

.regolamento {
    max-width: 850px;

    margin: 0 auto 30px;

    padding-left: 25px;

    text-align: left;

    color: #556b61;

    line-height: 1.7;
}


.regolamento li {
    margin-bottom: 10px;

    padding-left: 5px;
}


.regolamento li::marker {
    color: #2f4f40;

    font-weight: bold;
}


/* =========================================================
   SERVIZI / PRENOTAZIONE
========================================================= */

.info {
    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;

    margin-top: 35px;
}


.box {
    background: #ffffff;

    padding: 24px;

    border-radius: 18px;

    min-width: 240px;
    max-width: 320px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    color: #556b61;

    line-height: 1.5;

    text-decoration: none;
}


.box:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   ICONA SERVIZIO
========================================================= */

.emoji {
    margin-bottom: 12px;
}


.icona-servizi {
    width: 90px;

    height: auto;
}


.box strong {
    display: block;

    font-size: 1.1rem;

    color: #2f4f40;

    margin-bottom: 8px;
}


/* =========================================================
   BOX PRENOTAZIONE
========================================================= */

.prenota-box {
    width: 100%;

    max-width: 100%;

    text-decoration: none;

    cursor: pointer;

    display: block;

    text-align: center;
}


.prenota-box strong {
    margin-bottom: 8px;
}


.prenota-box span {
    display: block;

    color: #556b61;

    font-size: 0.95rem;
}


.prenota-box:hover {
    text-decoration: none;

    color: inherit;
}


/* =========================================================
   MENU INFERIORE FISSO
========================================================= */

.bottombar {
    position: fixed;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 78px;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(10px);

    display: flex;

    justify-content: space-around;
    align-items: center;

    box-shadow:
        0 -2px 10px rgba(0, 0, 0, 0.08);

    z-index: 1000;
}


/* =========================================================
   ELEMENTI MENU
========================================================= */

.nav-item {
    flex: 1;

    text-decoration: none;

    color: #556b61;

    font-size: 0.82rem;

    font-weight: 600;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;

    height: 100%;

    position: relative;
}


.nav-item i {
    font-size: 1.35rem;

    line-height: 1;

    transition:
        transform 0.2s ease;
}


.nav-item small {
    font-size: 0.72rem;

    line-height: 1;
}


.nav-item:hover {
    color: #2f4f40;

    transform: translateY(-2px);

    text-decoration: none;
}


.nav-item:hover i {
    transform: scale(1.08);
}


.nav-item.active {
    color: #2f4f40;
}


.nav-item.active::before {
    content: "";

    position: absolute;

    top: 6px;

    width: 34px;
    height: 4px;

    border-radius: 999px;

    background: #2f4f40;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery-section {
    margin-top: 45px;
}


.gallery-description {
    margin-bottom: 20px;
}


.gallery-wrapper {
    display: flex;

    gap: 15px;

    overflow-x: auto;

    padding: 10px 0 15px;

    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;
}


.gallery-item {
    flex: 0 0 80%;

    max-width: 420px;

    scroll-snap-align: center;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.10);

    cursor: pointer;
}


.gallery-item img {
    width: 100%;

    height: 280px;

    object-fit: cover;

    display: block;
}


/* =========================================================
   VIEWER FULLSCREEN
========================================================= */

.photo-viewer {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.95);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 99999;

    padding: 20px;
}


.photo-viewer.show {
    display: flex;
}


.photo-viewer img {
    max-width: 95%;

    max-height: 90%;

    object-fit: contain;

    border-radius: 10px;
}


.photo-viewer-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 44px;
    height: 44px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.20);

    color: #ffffff;

    font-size: 1.2rem;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;
}


/* =========================================================
   PULSANTI
========================================================= */

.btn-primary {
    background-color: #2f4f40;

    border-color: #2f4f40;
}


.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
    background-color: #3b6653 !important;

    border-color: #3b6653 !important;
}


.btn-secondary {
    background-color: #5bc493;

    border-color: #5bc493;

    color: #ffffff;
}


.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:focus-visible {
    background-color: #6fc19d !important;

    border-color: #6fc19d !important;

    color: #ffffff;
}


.recupera {
    color: #2f4f40;

    text-decoration: none;

    font-weight: bold;
}


.recupera:hover,
.recupera:focus,
.recupera:active,
.recupera:focus-visible {
    color: #3b6653 !important;

    text-decoration: none;

    font-weight: bold;
}


/* =========================================================
   CAMPI
========================================================= */

.form-control:focus {
    border-color: #5bc493 !important;

    box-shadow:
        0 0 0 0.25rem rgba(91, 196, 147, 0.25) !important;
}


/* =========================================================
   PASSWORD - MOSTRA / NASCONDI
========================================================= */

.password-container {
    position: relative;
}


.password-container .form-control {
    padding-right: 50px;
}


.password-toggle {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    width: 36px;
    height: 36px;

    border: none;

    background: transparent;

    color: #556b61;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 5;

    border-radius: 50%;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}


.password-toggle:hover {
    color: #5bc493;

    background-color: rgba(91, 196, 147, 0.10);
}


.password-toggle:focus {
    outline: none;

    box-shadow: none;
}


.password-toggle i {
    font-size: 1.15rem;
}


/* =========================================================
   PAGINA LOGIN
========================================================= */

body.login-page {
    padding-top: 0;

    padding-bottom: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 100vh;
}


body.login-page .custom-container {
    max-width: 420px;

    width: calc(100% - 30px);

    padding: 35px 25px;
}


/* =========================================================
   PAGINA NOTIFICHE
========================================================= */

.notifications-container {
    max-width: 700px;

    width: calc(100% - 40px);

    margin: 0 auto;

    text-align: left;

    animation: fadeIn 0.6s ease;
}


/* =========================================================
   HEADER PAGINA
========================================================= */

.page-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 10px;
}


.page-header .page-title {
    font-size: 2rem;

    color: #2f4f40;

    margin: 0;

    font-weight: 700;

    text-align: left;
}


.mark-all-button {
    border: none;

    background: transparent;

    color: #2f4f40;

    font-size: 0.9rem;

    font-weight: 700;

    padding: 8px 5px;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.mark-all-button:hover {
    color: #5bc493;

    transform: scale(1.03);
}


/* =========================================================
   DATA NOTIFICHE
========================================================= */

.notification-date {
    font-size: 0.78rem;

    font-weight: 700;

    color: #77877f;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    margin: 25px 5px 10px;
}


/* =========================================================
   SINGOLA NOTIFICA
========================================================= */

.notification-item {
    position: relative;

    background:
        rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(6px);

    border-radius: 18px;

    padding: 16px;

    margin-bottom: 12px;

    display: flex;

    align-items: flex-start;

    gap: 14px;

    border:
        1px solid rgba(47, 79, 64, 0.08);

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.notification-item:hover {
    transform: translateY(-3px);

    background: #ffffff;

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.09);
}


.notification-item:active {
    transform: scale(0.98);
}


/* =========================================================
   NOTIFICA NON LETTA
========================================================= */

.notification-item.unread {
    background:
        rgba(91, 196, 147, 0.12);

    border-left:
        4px solid #5bc493;
}


/* =========================================================
   ICONA NOTIFICA
========================================================= */

.notification-icon {
    width: 48px;
    height: 48px;

    min-width: 48px;

    border-radius: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 1.3rem;
}


.icon-booking {
    background:
        rgba(91, 196, 147, 0.18);

    color: #2f4f40;
}


.icon-payment {
    background:
        rgba(255, 193, 7, 0.18);

    color: #b88600;
}


.icon-dog {
    background:
        rgba(91, 196, 147, 0.15);

    color: #3b6653;
}


.icon-warning {
    background:
        rgba(220, 53, 69, 0.12);

    color: #dc3545;
}


.icon-info {
    background:
        rgba(47, 79, 64, 0.10);

    color: #2f4f40;
}


/* =========================================================
   CONTENUTO NOTIFICA
========================================================= */

.notification-content {
    flex: 1;

    min-width: 0;

    text-align: left;
}


.notification-title {
    font-size: 0.98rem;

    font-weight: 700;

    color: #2f4f40;

    margin-bottom: 5px;

    line-height: 1.3;
}


.notification-description {
    font-size: 0.9rem;

    color: #556b61;

    line-height: 1.5;

    margin: 0;
}


.notification-time {
    font-size: 0.75rem;

    color: #8a9991;

    margin-top: 8px;
}


/* =========================================================
   PALLINO NON LETTA
========================================================= */

.unread-dot {
    width: 9px;
    height: 9px;

    min-width: 9px;

    border-radius: 50%;

    background: #5bc493;

    margin-top: 7px;

    box-shadow:
        0 2px 5px rgba(91, 196, 147, 0.4);
}


/* =========================================================
   LOADING NOTIFICHE
========================================================= */

.loading-container {
    text-align: center;

    padding: 50px 20px;

    color: #556b61;
}


.loading-container .spinner-border {
    color: #5bc493;
}


.loading-container div:last-child {
    margin-top: 15px;
}


/* =========================================================
   NESSUNA NOTIFICA
========================================================= */

.empty-notifications {
    display: none;

    text-align: center;

    padding: 70px 20px;

    color: #556b61;
}


.empty-notifications i {
    display: block;

    font-size: 4.5rem;

    color: #b8c5be;

    margin-bottom: 20px;
}


.empty-notifications h3 {
    font-size: 1.3rem;

    color: #2f4f40;

    margin-bottom: 10px;
}


.empty-notifications p {
    font-size: 0.95rem;

    margin: 0;

    color: #77877f;
}


/* =========================================================
   PAGINA PROFILO
========================================================= */

.profilo-page {
    width: 100%;

    max-width: 700px;

    margin: 0 auto;

    padding: 10px 0 20px;

    animation: fadeIn 0.6s ease;
}


/* =========================================================
   HEADER PROFILO
========================================================= */

.profilo-header {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 24px 20px;

    margin-bottom: 20px;

    background:
        rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(6px);

    border-radius: 20px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);

    text-align: left;
}


/* =========================================================
   AVATAR PROFILO
========================================================= */

.profilo-avatar {
    width: 70px;
    height: 70px;

    min-width: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #5bc493;

    color: #ffffff;

    font-size: 2rem;

    box-shadow:
        0 5px 12px rgba(91, 196, 147, 0.30);
}


/* =========================================================
   INFORMAZIONI PROFILO
========================================================= */

.profilo-info {
    min-width: 0;

    flex: 1;
}


.profilo-info h1 {
    margin: 0 0 5px;

    font-size: 1.45rem;

    color: #2f4f40;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.profilo-info p {
    margin: 0;

    font-size: 0.9rem;

    color: #77877f;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   MENU PROFILO
========================================================= */

.profilo-menu {
    display: flex;

    flex-direction: column;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.90);

    backdrop-filter: blur(6px);

    border-radius: 20px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);

    text-align: left;
}


/* =========================================================
   VOCE MENU PROFILO
========================================================= */

.profilo-menu-item {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 16px 18px;

    border: none;

    border-bottom:
        1px solid rgba(47, 79, 64, 0.08);

    background: transparent;

    color: #2f3e34;

    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}


.profilo-menu-item:last-child {
    border-bottom: none;
}


.profilo-menu-item:hover {
    background:
        rgba(91, 196, 147, 0.08);
}


.profilo-menu-item:active {
    transform: scale(0.985);

    background:
        rgba(91, 196, 147, 0.14);
}


/* =========================================================
   ICONA MENU PROFILO
========================================================= */

.profilo-menu-icon {
    width: 45px;
    height: 45px;

    min-width: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        rgba(91, 196, 147, 0.15);

    color: #2f4f40;

    font-size: 1.25rem;
}


/* =========================================================
   TESTO MENU PROFILO
========================================================= */

.profilo-menu-text {
    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.profilo-menu-text span {
    font-size: 0.98rem;

    font-weight: 700;

    color: #2f4f40;
}


.profilo-menu-text small {
    font-size: 0.78rem;

    line-height: 1.3;

    color: #77877f;
}


/* =========================================================
   FRECCIA PROFILO
========================================================= */

.profilo-menu-arrow {
    color: #9aa8a1;

    font-size: 1rem;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}


.profilo-menu-item:hover .profilo-menu-arrow {
    color: #2f4f40;

    transform: translateX(3px);
}


/* =========================================================
   SEPARATORE PROFILO
========================================================= */

.profilo-separator {
    height: 9px;

    background:
        rgba(47, 79, 64, 0.04);

    border-bottom:
        1px solid rgba(47, 79, 64, 0.06);
}


/* =========================================================
   ESCI
========================================================= */

.profilo-esci {
    border-bottom: none;
}


.profilo-esci .profilo-menu-icon {
    background:
        rgba(220, 53, 69, 0.10);

    color: #dc3545;
}


.profilo-esci .profilo-menu-text span {
    color: #dc3545;
}


.profilo-esci .profilo-menu-arrow {
    color: #dc3545;
}


.profilo-esci:hover {
    background:
        rgba(220, 53, 69, 0.05);
}


/* =========================================================
   PAGINA PRENOTAZIONI DOGPARK
========================================================= */

.prenotazioni-dogpark-page {
    width: 100%;

    max-width: 700px;

    margin: 0 auto;

    padding: 10px 0 20px;

    animation: fadeIn 0.6s ease;

    text-align: left;
}


/* =========================================================
   HEADER PRENOTAZIONI
========================================================= */

.prenotazioni-dogpark-page .page-header {
    margin-bottom: 25px;
}


.prenotazioni-dogpark-page .page-title {
    font-size: 2rem;

    color: #2f4f40;

    margin: 0;

    font-weight: 700;

    text-align: left;
}


/* =========================================================
   LOADING PRENOTAZIONI
========================================================= */

.prenotazioni-loading {
    text-align: center;

    padding: 55px 20px;

    color: #556b61;
}


.prenotazioni-loading .spinner-border {
    width: 2.5rem;
    height: 2.5rem;

    color: #5bc493;
}


.prenotazioni-loading p {
    margin: 18px 0 0;

    font-size: 0.95rem;

    color: #77877f;
}


/* =========================================================
   LISTA PRENOTAZIONI
========================================================= */

.prenotazioni-lista {
    display: flex;

    flex-direction: column;

    gap: 16px;
}


/* =========================================================
   CARD PRENOTAZIONE
========================================================= */

.prenotazione-card {
    position: relative;

    width: 100%;

    background:
        rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(8px);

    border-radius: 20px;

    border:
        1px solid rgba(47, 79, 64, 0.08);

    overflow: hidden;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

    animation:
        prenotazioneCardIn 0.45s ease both;
}


.prenotazione-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.11);
}


.prenotazione-card:active {
    transform: scale(0.99);
}


/* =========================================================
   STATO CARD
========================================================= */

.prenotazione-card.confermata {
    border-left: 5px solid #5bc493;
}


.prenotazione-card.annullata {
    border-left: 5px solid #dc3545;

    opacity: 0.88;
}


/* =========================================================
   HEADER CARD
========================================================= */

.prenotazione-card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 17px 18px 14px;

    border-bottom:
        1px solid rgba(47, 79, 64, 0.07);
}


/* =========================================================
   CANE
========================================================= */

.prenotazione-cane {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}


.prenotazione-cane-icon {
    width: 46px;
    height: 46px;

    min-width: 46px;

    border-radius: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(91, 196, 147, 0.16);

    color: #2f4f40;

    font-size: 1.35rem;
}


.prenotazione-cane-info {
    min-width: 0;
}


.prenotazione-cane-info span {
    display: block;

    font-size: 0.72rem;

    color: #8a9991;

    margin-bottom: 2px;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    font-weight: 600;
}


.prenotazione-cane-info strong {
    display: block;

    color: #2f4f40;

    font-size: 1.15rem;

    line-height: 1.2;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


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

.prenotazione-stato {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 11px;

    border-radius: 999px;

    font-size: 0.72rem;

    font-weight: 700;

    white-space: nowrap;
}


.prenotazione-stato i {
    font-size: 0.78rem;
}


.prenotazione-stato.confermata {
    background:
        rgba(91, 196, 147, 0.15);

    color: #2f4f40;
}


.prenotazione-stato.annullata {
    background:
        rgba(220, 53, 69, 0.11);

    color: #dc3545;
}


/* =========================================================
   CORPO CARD
========================================================= */

.prenotazione-card-body {
    padding: 18px;
}


/* =========================================================
   GRIGLIA INFORMAZIONI
========================================================= */

.prenotazione-info-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


/* =========================================================
   SINGOLA INFORMAZIONE
========================================================= */

.prenotazione-info-item {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

    padding: 11px 12px;

    background:
        rgba(47, 79, 64, 0.035);

    border-radius: 12px;
}


.prenotazione-info-icon {
    width: 34px;
    height: 34px;

    min-width: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        rgba(91, 196, 147, 0.14);

    color: #2f4f40;

    font-size: 0.95rem;
}


.prenotazione-info-content {
    min-width: 0;
}


.prenotazione-info-label {
    display: block;

    font-size: 0.68rem;

    color: #8a9991;

    margin-bottom: 2px;

    text-transform: uppercase;

    letter-spacing: 0.35px;

    font-weight: 600;
}


.prenotazione-info-value {
    display: block;

    font-size: 0.86rem;

    color: #2f3e34;

    font-weight: 700;

    line-height: 1.25;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   DETTAGLI PRENOTAZIONE
========================================================= */

.prenotazione-dettagli {
    display: flex;

    align-items: stretch;

    width: 100%;
}


.prenotazione-dettagli-info {
    flex: 1;

    min-width: 0;
}


/* =========================================================
   SINGOLO DETTAGLIO
========================================================= */

.prenotazione-dettaglio {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;

    text-align: left;

    color: #2f4f40;
}


.prenotazione-dettaglio > i {
    width: 38px;
    height: 38px;

    min-width: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        rgba(91, 196, 147, 0.14);

    color: #2f4f40;

    font-size: 1.1rem;
}


.prenotazione-dettaglio > div {
    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

    line-height: 1.2;
}


.prenotazione-dettaglio small {
    display: block;

    margin-bottom: 3px;

    color: #8a9991;

    font-size: 0.68rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.35px;
}


.prenotazione-dettaglio strong {
    display: block;

    color: #2f4f40;

    font-size: 0.9rem;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   PULSANTE ACCEDI
========================================================= */

.prenotazione-accesso {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 15px 18px;

    border-left:
        1px solid rgba(47, 79, 64, 0.08);
}


.btn-accedi {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 6px;

    min-width: 82px;
    min-height: 72px;

    padding: 10px 14px;

    border: none;

    border-radius: 12px;

    background: #5bc493;

    color: #ffffff;

    font-size: 0.78rem;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(91, 196, 147, 0.25);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}


.btn-accedi i {
    font-size: 1.5rem;
}


.btn-accedi:hover {
    background-color: #4fba89;

    transform: translateY(-2px);

    box-shadow:
        0 8px 16px rgba(91, 196, 147, 0.30);
}


.btn-accedi:active {
    transform: scale(0.96);
}


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


.btn-accedi:focus-visible {
    outline:
        3px solid rgba(91, 196, 147, 0.30);

    outline-offset: 2px;
}


/* =========================================================
   ORARIO
========================================================= */

.prenotazione-orario {
    grid-column: span 2;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(91, 196, 147, 0.12),
            rgba(91, 196, 147, 0.05)
        );

    border-radius: 14px;

    border:
        1px solid rgba(91, 196, 147, 0.14);
}


.prenotazione-orario i {
    color: #2f4f40;

    font-size: 1.15rem;
}


.prenotazione-orario span {
    color: #2f4f40;

    font-size: 1.05rem;

    font-weight: 700;
}


/* =========================================================
   ADDESTRATORE
========================================================= */

.prenotazione-addestratore {
    grid-column: span 2;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px 13px;

    border-radius: 12px;

    background:
        rgba(91, 196, 147, 0.08);

    color: #3b6653;

    font-size: 0.85rem;

    font-weight: 600;
}


.prenotazione-addestratore i {
    font-size: 1rem;

    color: #2f4f40;
}


/* =========================================================
   FOOTER CARD
========================================================= */

.prenotazione-card-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 13px 18px;

    background:
        rgba(47, 79, 64, 0.025);

    border-top:
        1px solid rgba(47, 79, 64, 0.06);
}


/* =========================================================
   ID PRENOTAZIONE
========================================================= */

.prenotazione-id {
    font-size: 0.72rem;

    color: #9aa8a1;

    font-weight: 600;
}


/* =========================================================
   TIPO AREA
========================================================= */

.prenotazione-tipo-area {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #77877f;

    font-size: 0.75rem;

    font-weight: 600;
}


.prenotazione-tipo-area i {
    font-size: 0.85rem;

    color: #5bc493;
}


/* =========================================================
   NESSUNA PRENOTAZIONE
========================================================= */

.prenotazioni-vuote {
    display: none;

    text-align: center;

    padding: 65px 20px;

    animation: fadeIn 0.5s ease;
}


.prenotazioni-vuote i {
    display: block;

    font-size: 4.5rem;

    color: #b8c5be;

    margin-bottom: 20px;
}


.prenotazioni-vuote h3 {
    font-size: 1.35rem;

    color: #2f4f40;

    margin-bottom: 10px;

    font-weight: 700;
}


.prenotazioni-vuote p {
    font-size: 0.95rem;

    line-height: 1.5;

    color: #77877f;

    margin-bottom: 22px;
}


.prenotazioni-vuote .btn {
    border-radius: 12px;

    padding: 10px 20px;

    font-weight: 600;
}


/* =========================================================
   ERRORE PRENOTAZIONI
========================================================= */

.prenotazioni-errore {
    text-align: center;

    padding: 55px 20px;

    color: #556b61;
}


.prenotazioni-errore i {
    display: block;

    font-size: 3.8rem;

    color: #dc3545;

    margin-bottom: 18px;
}


.prenotazioni-errore h3 {
    font-size: 1.25rem;

    color: #2f4f40;

    margin-bottom: 8px;
}


.prenotazioni-errore p {
    font-size: 0.9rem;

    color: #77877f;

    margin-bottom: 20px;
}


/* =========================================================
   ANIMAZIONE CARD PRENOTAZIONE
========================================================= */

@keyframes prenotazioneCardIn {

    from {
        opacity: 0;

        transform: translateY(15px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   ANIMAZIONE GENERALE
========================================================= */

@keyframes fadeIn {

    from {
        opacity: 0;

        transform: translateY(20px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   OTP
========================================================= */

.otp-input {
    width: 55px;
    height: 60px;

    font-size: 26px;

    font-weight: 600;

    padding: 0;

    border-radius: 8px;
}


.otp-input:focus {
    border-color: #5bc493;

    box-shadow:
        0 0 0 0.25rem rgba(91, 196, 147, 0.25);
}

/* =========================================================
   ACCESSI
========================================================= */

.accesso-item {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 15px 10px;

    border-bottom: 1px solid #eeeeee;

    font-size: 15px;
    font-weight: 500;

    cursor: pointer;

    transition: background-color 0.15s ease;
}

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

.accesso-item:hover {
    background-color: #f7f7f7;
}

.accesso-item:active {
    background-color: #eeeeee;
}


/* Icona principale */

.accesso-item > i:first-child {
    width: 24px;

    text-align: center;

    font-size: 19px;
}


/* Accesso comune */

.accesso-comune {
    color: #555;
}


/* Area dedicata */

.accesso-dedicato {
    color: #5bc493;
}


/* Testo */

.accesso-item span {
    flex: 1;
}


/* Freccia */

.accesso-arrow {
    color: #aaa;

    font-size: 12px !important;
}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        padding-top: 95px;

        padding-bottom: 85px;
    }


    /* =====================================================
       HEADER
    ===================================================== */

    .topbar {
        height: 80px;

        padding: 0 14px;
    }


    .top-logo {
        height: 58px;
    }


    .header-side {
        width: 40px;
    }


    /* =====================================================
       NOTIFICHE HEADER
    ===================================================== */

    .notification-btn {
        width: 40px;
        height: 40px;
    }


    .notification-btn i {
        font-size: 1.2rem;
    }


    .notification-badge {
        min-width: 18px;

        height: 18px;

        font-size: 0.65rem;
    }


    /* =====================================================
       CONTENITORE
    ===================================================== */

    .custom-container {
        width: calc(100% - 20px);

        padding: 30px 20px;

        border-radius: 20px;
    }


    /* =====================================================
       TITOLI
    ===================================================== */

    h1 {
        font-size: 1.8rem;
    }


    h2 {
        font-size: 1.4rem;
    }


    /* =====================================================
       TESTO
    ===================================================== */

    p {
        font-size: 1rem;

        line-height: 1.65;
    }


    /* =====================================================
       IMMAGINI
    ===================================================== */

    .logo-img {
        max-width: 340px;

        border-radius: 14px;
    }


    .logo-accesso {
        max-width: 250px;
    }


    /* =====================================================
       REGOLAMENTO
    ===================================================== */

    .regolamento {
        padding-left: 22px;

        font-size: 0.95rem;

        line-height: 1.6;

        text-align: left;
    }


    .regolamento li {
        margin-bottom: 9px;
    }


    /* =====================================================
       ICONE SERVIZI
    ===================================================== */

    .icona-servizi {
        width: 72px;
    }


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

    .bottombar {
        height: 72px;
    }


    .nav-item {
        font-size: 0.74rem;
    }


    .nav-item i {
        font-size: 1.2rem;
    }


    .nav-item small {
        font-size: 0.68rem;
    }


    .nav-item.active::before {
        width: 30px;

        height: 3px;
    }


    /* =====================================================
       GALLERY
    ===================================================== */

    .gallery-item {
        flex: 0 0 85%;
    }


    .gallery-item img {
        height: 220px;
    }


    /* =====================================================
       BOX
    ===================================================== */

    .box {
        max-width: none;
    }


    /* =====================================================
       PAGINA NOTIFICHE
    ===================================================== */

    .notifications-container {
        width: calc(100% - 20px);
    }


    .page-header {
        align-items: center;

        margin-bottom: 5px;
    }


    .page-header .page-title {
        font-size: 1.6rem;
    }


    .mark-all-button {
        font-size: 0.78rem;

        padding: 6px 0;
    }


    .notification-date {
        margin-top: 22px;

        font-size: 0.72rem;
    }


    .notification-item {
        padding: 14px;

        gap: 12px;

        margin-bottom: 10px;

        border-radius: 16px;
    }


    .notification-icon {
        width: 44px;
        height: 44px;

        min-width: 44px;

        font-size: 1.15rem;

        border-radius: 13px;
    }


    .notification-title {
        font-size: 0.92rem;
    }


    .notification-description {
        font-size: 0.84rem;

        line-height: 1.45;
    }


    .notification-time {
        font-size: 0.7rem;
    }


    .unread-dot {
        width: 8px;
        height: 8px;

        min-width: 8px;
    }


    .empty-notifications {
        padding: 55px 15px;
    }


    .empty-notifications i {
        font-size: 3.8rem;
    }


    /* =====================================================
       PAGINA PROFILO
    ===================================================== */

    .profilo-page {
        width: calc(100% - 20px);

        padding: 0;

        margin: 0 auto;
    }


    .profilo-header {
        padding: 20px 16px;

        margin-bottom: 15px;

        border-radius: 18px;

        gap: 14px;
    }


    .profilo-avatar {
        width: 60px;
        height: 60px;

        min-width: 60px;

        font-size: 1.7rem;
    }


    .profilo-info h1 {
        font-size: 1.25rem;
    }


    .profilo-info p {
        font-size: 0.8rem;
    }


    .profilo-menu {
        border-radius: 18px;
    }


    .profilo-menu-item {
        padding: 15px 14px;

        gap: 12px;
    }


    .profilo-menu-icon {
        width: 42px;
        height: 42px;

        min-width: 42px;

        font-size: 1.15rem;

        border-radius: 12px;
    }


    .profilo-menu-text span {
        font-size: 0.92rem;
    }


    .profilo-menu-text small {
        font-size: 0.72rem;
    }


    .profilo-menu-arrow {
        font-size: 0.9rem;
    }


    /* =====================================================
       PAGINA PRENOTAZIONI DOGPARK
    ===================================================== */

    .prenotazioni-dogpark-page {
        width: calc(100% - 20px);

        padding: 0;

        margin: 0 auto;
    }


    .prenotazioni-dogpark-page .page-header {
        margin-bottom: 20px;
    }


    .prenotazioni-dogpark-page .page-title {
        font-size: 1.6rem;
    }


    /* =====================================================
       LISTA CARD
    ===================================================== */

    .prenotazioni-lista {
        gap: 12px;
    }


    /* =====================================================
       CARD
    ===================================================== */

    .prenotazione-card {
        border-radius: 17px;
    }


    .prenotazione-card-header {
        padding: 14px;

        gap: 10px;
    }


    /* =====================================================
       CANE
    ===================================================== */

    .prenotazione-cane {
        gap: 10px;
    }


    .prenotazione-cane-icon {
        width: 42px;
        height: 42px;

        min-width: 42px;

        font-size: 1.2rem;

        border-radius: 12px;
    }


    .prenotazione-cane-info span {
        font-size: 0.65rem;
    }


    .prenotazione-cane-info strong {
        font-size: 1.05rem;
    }


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

    .prenotazione-stato {
        padding: 6px 8px;

        font-size: 0.66rem;
    }


    .prenotazione-stato i {
        font-size: 0.7rem;
    }


    /* =====================================================
       CORPO
    ===================================================== */

    .prenotazione-card-body {
        padding: 14px;
    }


    .prenotazione-info-grid {
        gap: 9px;
    }


    .prenotazione-info-item {
        padding: 9px;

        gap: 8px;

        border-radius: 10px;
    }


    .prenotazione-info-icon {
        width: 30px;
        height: 30px;

        min-width: 30px;

        font-size: 0.82rem;

        border-radius: 8px;
    }


    .prenotazione-info-label {
        font-size: 0.61rem;
    }


    .prenotazione-info-value {
        font-size: 0.78rem;
    }


    /* =====================================================
       DETTAGLIO PRENOTAZIONE
    ===================================================== */

    .prenotazione-dettagli {
        width: 100%;
    }


    .prenotazione-dettagli-info {
        min-width: 0;
    }


    .prenotazione-dettaglio {
        gap: 10px;
    }


    .prenotazione-dettaglio > i {
        width: 34px;
        height: 34px;

        min-width: 34px;

        font-size: 0.95rem;

        border-radius: 9px;
    }


    .prenotazione-dettaglio small {
        font-size: 0.62rem;

        margin-bottom: 2px;
    }


    .prenotazione-dettaglio strong {
        font-size: 0.82rem;
    }


    /* =====================================================
       PULSANTE ACCEDI MOBILE
    ===================================================== */

    .prenotazione-accesso {
        padding: 12px 10px;
    }


    .btn-accedi {
        min-width: 68px;

        min-height: 64px;

        padding: 8px 10px;

        border-radius: 10px;

        gap: 4px;

        font-size: 0.68rem;
    }


    .btn-accedi i {
        font-size: 1.3rem;
    }


    /* =====================================================
       ORARIO
    ===================================================== */

    .prenotazione-orario {
        padding: 12px;

        gap: 9px;
    }


    .prenotazione-orario i {
        font-size: 1rem;
    }


    .prenotazione-orario span {
        font-size: 0.95rem;
    }


    /* =====================================================
       ADDESTRATORE
    ===================================================== */

    .prenotazione-addestratore {
        padding: 9px 11px;

        font-size: 0.78rem;
    }


    /* =====================================================
       FOOTER CARD
    ===================================================== */

    .prenotazione-card-footer {
        padding: 11px 14px;
    }


    .prenotazione-id,
    .prenotazione-tipo-area {
        font-size: 0.68rem;
    }


    /* =====================================================
       NESSUNA PRENOTAZIONE
    ===================================================== */

    .prenotazioni-vuote {
        padding: 55px 15px;
    }


    .prenotazioni-vuote i {
        font-size: 3.8rem;
    }


    .prenotazioni-vuote h3 {
        font-size: 1.25rem;
    }


    .prenotazioni-vuote p {
        font-size: 0.88rem;
    }

}


/* =========================================================
   MOBILE MOLTO PICCOLO
========================================================= */

@media (max-width: 400px) {

    .otp-input {
        width: 48px;
        height: 55px;

        font-size: 24px;
    }


    .prenotazione-card-header {
        align-items: flex-start;
    }


    .prenotazione-stato {
        font-size: 0.62rem;

        padding: 5px 7px;
    }


    .prenotazione-info-grid {
        grid-template-columns: 1fr;
    }


    .prenotazione-orario {
        grid-column: span 1;
    }


    .prenotazione-addestratore {
        grid-column: span 1;
    }


    /* =====================================================
       ACCESSO SU SCHERMI MOLTO PICCOLI
    ===================================================== */

    .prenotazione-accesso {
        padding-left: 7px;
        padding-right: 7px;
    }


    .btn-accedi {
        min-width: 60px;

        min-height: 60px;

        padding: 7px 8px;
    }


    .btn-accedi i {
        font-size: 1.15rem;
    }


    .btn-accedi span {
        font-size: 0.62rem;
    }

}


/* =========================================================
   ACCESSIBILITÀ
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}