.resize-animation-stopper * {
    animation: none;
    transition: none;
}

body {
    background-position: 9% center;
}

/* ------------------- */
/*  MENU AD HAMBURGER  */
/* ------------------- */

#burger-input {
    display: block;
    position: absolute;
    left: -9999px;
    opacity: 0;
}

#burger-input:focus-visible + #logo + ul + a + .burger-menu,
#burger-input:focus-visible ~ .burger-menu {
    outline: 2px solid black;
    outline-offset: 2px;
    border-radius: 0.3em;
}

.burger-menu{
    display: flex;
    margin-left: 2em;
    z-index: 1001;
}

#menu{
    margin-left: -0.5em;
    display: flex;
    width: 100%;
    padding: 0 10px;
}

.burger-menu.menu-open span:nth-child(1){
    transform: rotate(45deg) translate(6px, 5px);
}

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

.burger-menu.menu-open span:nth-child(3){
    transform: rotate(-45deg) translate(6px, -5px);
}


#menu ul {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #acd2e6 0%, #f7fbfc 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    padding-top: 60px;
    list-style: none;
    margin: 0;
}


#menu ul.menu-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#menu ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 260px;
    padding: 15px 0;
    
    background-color: #ffffff;
    color: #082636;
    
    font-family: 'Jost', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(8, 38, 54, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


#menu ul li a:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(8, 38, 54, 0.1);
}


#menu ul li a#currentLink {
    background-color: #4f5abb;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 90, 187, 0.3);
}


/* --------------- */
/*  DOVE TROVARCI  */
/* --------------- */

@media screen and (max-width: 650px) {
  .locations-container {
    grid-template-columns: 1fr;
    width: 95%;
  }
}

.search-container input {
    width: 90%;
}

.sticky-header {
    width: 95%;
    top: 5px;
}


.drop {
    width: 10%;
}

#landing-title {
    height: calc(100vh - 10.8em);
}


#landing-title h1 {
    font-size: 3.5em;
    width: 80%;
    margin-left: 10%;
    text-align: center;
}

#landing-title h2 {
    width: 70%;
    margin-left: 20%;
    text-align: right;
    font-size: 1.4em;
}


@media screen and (orientation: landscape) {
    
    #landing-title {
        width: 58%;
        height: fit-content;
        background-color: var(--primary-bg-color);
        border-radius: 2.8em;
        margin: auto;
        margin-top: 1em;
        margin-bottom: 4.2em;
        box-shadow: 0 4px 15px rgba(8, 38, 54, 0.1);
    }

    #landing-title h1 {
        font-size: 2.5em;
        margin-bottom: 0.5em;
    }
    
    #landing-title h2 {
        font-size: 1.1em;
        text-align: center;
        margin: 0 auto;
        margin-bottom: 1.4em;
        width: 100%;
    }
}

/* ------------------- */
/*  HOMEPAGE - CARDS   */
/* ------------------- */

#card-intro {
    flex-direction: column;
    height: auto;
    padding: 2em 1.5em;
}

#card-intro div {
    width: 100%;
    margin-left: 0;
    padding-right: 0;
    gap: 1.5em;
}

#card-intro h2 {
    text-align: center;
    font-size: 2em;
}

#card-intro p {
    font-size: 1.1em;
    text-align: center;
}

#card-intro a {
    margin: 0 auto;
}

#card-intro img {
    width: 100%;
    height: 250px;
    margin-left: 0;
    margin-top: 1.5em;
    border-radius: 0 0 1.4em 1.4em;
    object-fit: cover;
}


#card-join {
    height: auto;
    padding-bottom: 0.4em;
}

#card-join-title {
    height: auto;
    padding: 1em 1.5em 0.5em;
    margin-bottom: 0.5em;
}

#card-join-title h2 {
    font-size: 1.8em;
}

#card-join-title p {
    font-size: 1.1em;
}

#card-join ul {
    flex-direction: row;
    flex-wrap: wrap;
    width: 90%;
    height: auto;
    gap: 1em;
    margin-top: 0.5em;
}

#card-join li {
    width: calc(50% - 0.5em);
    height: auto;
    min-height: 220px;
}

#card-join img {
    height: auto;
    min-height: 160px;
}

#card-join li p {
    font-size: 1.05em;
    padding: 0.8em 0.5em;
}

#card-why-us {
    flex-direction: column;
    height: auto;
    padding: 2em 1.5em;
}

#div-why-us {
    width: 100%;
    margin-right: 0;
    margin-top: 0;
}

#div-why-us h2 {
    text-align: center;
    font-size: 2em;
}

#div-why-us h3 {
    font-size: 1.4em;
}

#div-why-us p {
    font-size: 1.1em;
}

#card-why-us img {
    width: 100%;
    height: 250px;
    margin-right: 0;
    margin-top: 1em;
    border-radius: 0 0 1.4em 1.4em;
    object-fit: cover;
}

#card-locations {
    height: auto;
    min-height: 300px;
    padding: 2em 1em;
}

#card-locations div {
    width: 90%;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#card-locations h2 {
    font-size: 1.6em;
}

#card-locations p {
    font-size: 1em;
    margin-bottom: 1.5em;
}

/* ------------------- */
/*  FOOTER RESPONSIVE  */
/* ------------------- */
footer{
    padding-top: 1em;
}

.footer-buttons {
    flex-direction: column;
    gap: 1em;
    padding: 0;
    margin-bottom: 0.5em;
}

.footer-buttons a {
    width: auto;
    margin: 0 auto;
    text-align: center;
    padding: 0.8em;
}

.footer-container {
    flex-direction: column;
    padding: 0 0.5em;
}

.left-footer,
.right-footer {
    width: 100%;
    align-items: center;
    margin: 0.5em 0;
}

.right-footer .title-item,
.vertical-divider {
    display: none;
}

.right-footer .times-item {
    align-items: center;
    margin-top: 0;
}

.contact-info {
    align-items: center;
    gap: 0.8em;
    margin-bottom: 0;
    margin-top: 1em;
}

.contact-item {
    justify-content: center;
}

.footer-social {
    margin-top: 0;
}

/* ------------------- */
/*  BREADCRUMB         */
/* ------------------- */

#breadcrumb {
    width: 90%;
    padding: 0.3em 0.8em;
}

#breadcrumb p {
    font-size: 0.9em;
}

.search-container input {
    width: 95%;
    padding: 0.6em 1em;
}

/* ------------------- */
/*  TABELLE RESPONSIVE */
/* ------------------- */

.data-table {
    font-size: 0.85em;
}

.data-table th,
.data-table td {
    padding: 0.8em 0.5em;
    font-size: 0.9em;
}

.select-locations-admin select {
    max-width: 100%;
    font-size: 0.95em;
}

/* ------------------- */
/*  PROFILO RESPONSIVE */
/* ------------------- */

.profile-header {
    flex-direction: column;
    gap: 3em;
    margin-top: 1.5em;
    margin-bottom: 2.5em;
}

.button-container {
    float: none;
    margin: 0 auto;
    max-width: 100%;
}

.dashboard-container {
    width: 95%;
    padding: 0 1em;
}

.data-list dt {
    width: 140px;
    font-size: 0.8em;
}

.data-list dd {
    font-size: 1em;
}

/* ------------------- */
/*  ABOUT US / FAQ     */
/* ------------------- */

.text-standard,
#founders {
    width: 95%;
    padding: 1.5em;
}

.text-standard p,
.text-standard li,
.text-standard dd {
    font-size: 1em;
}

.tertiary-title {
    font-size: 1.6em;
    padding-left: 0.8em;
}

#founders h4 {
    font-size: 1.6em;
}

#founders ul {
    grid-template-columns: 1fr;
}

/* ------------------- */
/*  TITOLI STANDARD    */
/* ------------------- */

#title-standard h1 {
    font-size: 3em;
    padding: 0 0.5em;
}

#title-standard h2 {
    font-size: 1.3em;
    margin-bottom: 0.8em;
    padding: 0 1em;
}

.main-standard {
    padding: 1.5em;
    margin-top: 2%;
}

/* ------------------- */
/*  UTILITY MOBILE     */
/* ------------------- */

.back-button-container {
    position: static;
    margin: 1em;
    text-align: left;
    width: 100%;
}

.back-button {
    display: block;
    width: fit-content;
}





.button-standard button,
.button-standard input[type="submit"] {
    font-size: 15px;
    padding: 14px;
}


#disclaimer {
    margin: 4rem auto 2rem;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
}

/* ========================================
   DIALOG MODALE - MOBILE
======================================== */
dialog {
  width: 95%;
  max-width: 95%;
}

.dialog-buttons {
  flex-direction: column;
}

.dialog-buttons .dialog-form,
.dialog-buttons > button {
  flex: none;
  width: 100%;
}

/* ========================================
   PAGINE ERRORE - MOBILE
======================================== */
body.error-background {
    background-image: none;
}

.error-container {
    flex-direction: column;
    gap: 2em;
    padding: 1em;
}

.error-content {
    order: 1; 
    max-width: 100%;
}

.error-image {
    order: 2; 
    max-width: 280px;
    margin: 0 auto;
}

.error-code {
    font-size: 5em;
}

.error-message {
    font-size: 1.8em;
}

.error-description {
    font-size: 1em;
    margin: 1.5em 0;
}

.error-suggestion {
    font-size: 0.9em;
}

.error-actions {
    flex-direction: column;
    gap: 1em;
    width: 100%;
}

.error-actions a {
    width: 100%;
    text-align: center;
    padding: 1em;
}

/* ========================================
   FAQ - MOBILE
======================================== */
.faq dt, .faq dd {
    max-width: 100%;
    border-right: none;
    border-left: 5px solid #749BA3;
}

.faq dt {
    font-size: 1.15rem;
    flex-direction: row;
    text-align: left;
}

.faq dt::before {
    margin-left: 0;
    margin-right: 0.75rem;
}

/* ========================================
   CAROSELLO - MOBILE
======================================== */
.carousel img {
    width: 250px;
    height: 180px;
}

/* ========================================
   TABELLA ADMIN - MOBILE
======================================== */
.table-container {
  box-shadow: none;
}

.data-table thead {
  display: none;
}

.data-table,
.data-table tbody,
.data-table tr,
.data-table td,
.data-table th {
  display: block;
  width: 100%;
}

.data-table tr {
  margin-bottom: 1.5em;
  border-radius: 1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5em;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbfc 100%);
  border: 1px solid #e0e7ec;
}

.data-table td,
.data-table th {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: right;
  padding: 0.9em 0;
  border: none;
  border-bottom: 1px solid #f0f4f8;
  position: relative;
  font-size: 1.05em;
  flex-wrap: nowrap;
  gap: 1em;
}

.data-table td:last-child,
.data-table th:last-child {
  border-bottom: none;
  padding-bottom: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8em;
}

.data-table td::before,
.data-table th::before {
  content: attr(data-label);
  font-weight: 600;
  color: #2c5f7a;
  font-size: 1em;
  text-transform: none;
  text-align: left;
  flex-shrink: 0;
}

.data-table th {
  font-weight: 600;
  color: #082636;
  font-size: 1.1em;
}

.data-table td:has(.status-completed),
.data-table th:has(.status-completed) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1em;
}

.data-table .status-completed {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 1em;
}

.data-table button,
.data-table .btn-table {
  width: 100%;
  margin: 0;
  display: block;
  padding: 1em;
  font-size: 1em;
}

.data-table .btn-table + .btn-table {
  margin-top: 0.8em;
}


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

.btn-index {
    padding: 0.9em 1.5em;
}

/* ========================================
   CARD PROFILO DONATORE
======================================== */

.profile-cards-grid {
  grid-template-columns: 1fr;
}

/* ========================================
   LAYOUT ADMIN MODIFICA PRENOTAZIONE
======================================== */

.admin-layout-container {
  grid-template-columns: 1fr;
  gap: 1.5em;
  padding: 0 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donor-info-sidebar {
  width: auto;
  max-width: 21em;
  min-width: min-content;
}
