html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%);
    z-index: 0;
}


.title {
    position: relative;
    color: white;
    text-align: center;
    font-size: 7vw;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

    /* Ombre multiple per effetto 3D */
    text-shadow:
            1px 1px 0 rgba(0, 0, 0, 0.7),
            2px 2px 0 rgba(0, 0, 0, 0.6),
            3px 3px 0 rgba(0, 0, 0, 0.5);
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.container-center {
    position: relative;
    z-index: 1;
    height: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

body .container-center .btn-large {
    margin-top: 20px;
    width: 140px;
    border-radius: 20px;
    background-color: #ffd700 !important;
    color: #333;
    font-weight: 800;
}

.powered-by {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #ddd;
}

.powered-by span {
    font-weight: bold;
    color: white;
}

.download-btn {
    position: absolute;
    top: 50px;
    right: 20px;
    z-index: 2; /* Assicurati che il pulsante sia visibile sopra l'overlay */
}

.install-text {
    margin-left: 8px; /* Spazio tra il bottone e il testo */
    font-size: 1rem; /* Dimensione del testo, regolabile a piacere */
    color: white;
    font-weight: 500;
}

.custom-btn, .custom-btn:hover {
    background-color: transparent;
    font-size: 3rem;
    padding: 0;
    color: white;
    width: fit-content;
    height: fit-content;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    /*border: 1px solid white;*/
}


#modeScreenInstruction {
    color: burlywood;
    padding: 0 20px;
}

.mode-button i {
    font-size: xxx-large;
}

#footerList .icon-button, #footerMap .icon-button {
    padding: 0;
}

.small-flag {
    font-size: 40px; /* Imposta la dimensione desiderata */
}

#languageButton .btn {
    line-height: 0;
}


#modeButtonList, #modeButton, .modeButton {
    padding: 0.50rem 1rem;
    font-size: 1rem;
    background-color: #fff;
    border: 1px solid #444;
    border-radius: 0.5rem;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-button, #languageButton, #modeButton, .modeButton, .toggle-button:hover, #languageButton:hover, #modeButton:hover, #languageButtonList, #languageButtonList:hover, #modeButtonList, #modeButtonList:hover  {
    color: white;
    background: #9a1c1c;
    border: none;
}

#listScreen {
    background: #9a1c1c;
    top: 0;
    display: flex;
    flex-direction: column;
}

#listScreen h2 {
    color: white;
    margin-bottom: 0;
}

#listContainer {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: 90%;
    /* top: 4.5rem; */
    /* bottom: 13.5rem; */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    /* width: 90%; */
    /* max-width: 640px; */
    /* overflow-y: auto; */
    padding: 1.4rem 1.4rem 200px;
    flex: 1;
    box-shadow: inset 0 -1px 15px 0 rgba(0, 0, 0, 0.25);


}

#footerList {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    display: block;
    flex-direction: unset;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: unset;
    height: 150px;
    display: none !important;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Assicura che il footer sia in primo piano */
    border-top-left-radius: 10px;  /* Arrotonda l'angolo in alto a sinistra */
    border-top-right-radius: 10px; /* Arrotonda l'angolo in alto a destra */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
    /* Background gradiente che parte da #ededed in basso ad un bianco più puro in alto */
    background: linear-gradient(to top, #ededed, #ededed);
}

.list-item-thumb {
    background-color: transparent;
}



.list-item-content {
    background: #fff;
    font-weight: bold;
    color: #9a1c1c;
}

.list-item, .list-item:hover {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    min-height: 10vh;
}

.secondary-content i.material-icons {
    color: burlywood;
}

.input-field {
    position: relative;
    width: 80%;
    /* max-width: 400px; */
    margin: 20px 0;
}
/* Stile dell'input di ricerca */
.input-field input[type="text"] {
    background-color: #fff;
    border: none;
    border-radius: 15px;
    height: 40px;
    /* padding: 0 15px 0 45px; */
    font-size: 16px;
    box-shadow: none;
    width: calc(100% - 50px);
    padding-left: 50px;
    margin-left: 0;
}
/* Focus: evidenziazione con bordo sottile */
.input-field input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 1px #9a1c1c;
}
/* Posizionamento e stile dell'icona all'interno dell'input */
.input-field .prefix {
    position: absolute;
    left: 0px;
    top: calc(50% - 3px);
    transform: translateY(-50%);
 /*   color: #9a1c1c;*/
    color:gray;
    font-size: 20px;
    line-height: 40px;
}

#languageContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    row-gap: 1rem;
}


input:not([type]):focus:not([readonly]), input[type=text]:not(.browser-default):focus:not([readonly]), input[type=password]:not(.browser-default):focus:not([readonly]), input[type=email]:not(.browser-default):focus:not([readonly]), input[type=url]:not(.browser-default):focus:not([readonly]), input[type=time]:not(.browser-default):focus:not([readonly]), input[type=date]:not(.browser-default):focus:not([readonly]), input[type=datetime]:not(.browser-default):focus:not([readonly]), input[type=datetime-local]:not(.browser-default):focus:not([readonly]), input[type=tel]:not(.browser-default):focus:not([readonly]), input[type=number]:not(.browser-default):focus:not([readonly]), input[type=search]:not(.browser-default):focus:not([readonly]), textarea.materialize-textarea:focus:not([readonly]) {
/*    border-bottom: 1px solid #9a1c1c;
    -webkit-box-shadow: 0 1px 0 0 #9a1c1c;
    box-shadow: 0 1px 0 0 #9a1c1c;*/
    border-bottom: 1px solid gray;
    -webkit-box-shadow: 0 1px 0 0 gray;
    box-shadow: 0 1px 0 0 gray;
}


.list-item-thumb {
    width: 5rem;
    height: 5rem;
}

#listScreen #headerList {
/*    padding: 20px;*/
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#headerList > div {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.5rem;
}

#cameraScreen #headerCamera {
/*    padding: 20px;*/
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#headerCamera > div {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.5rem;
}



#modeButtonList {border: none;}
#selectedModeTextList {
    font-size: 1rem;
}

.btn, .btn-large, .btn-small, .btn-flat {
    text-transform: none;
}


#languageButtonList, .languageButton , #languageButton {
    margin-left: 20px;
}

#mapToggleButton {
    margin-right: 10px;
}

.close-button {
    width: fit-content;
    height: fit-content;
    position: absolute;
    top: 15px;
    right: 15px;
    left: unset;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    text-transform: lowercase;
    font-weight: bold;
}

.btn:focus, .btn-large:focus, .btn-small:focus, .btn-floating:focus {
    background: #9a1c1c;
}

#detailScreen {
    background: #9a1c1c;
    padding: 0 1rem 2rem;
}

#detailContent h2 {
    padding-top: 20px;
    font-size: 1.8rem;
    color: white;
}

#detailContent, #detailContent p {
    font-size: 1.2rem;
    color: white;
}

#detailContent {
    padding-bottom: 75px;
}

#closeDetailButton {
    display: none;
    position: fixed;
}

#orientationOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
/*    background-image: url(images/piazza-ducale-bg.jpg);*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#orientationOverlay .overlay {
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay i {
    font-size: 5rem;
    color: #fff;
}

#detailContent img + h2 {
    margin-top: 0;
}


.loghi {
    height: 36px;
    background-image: url(../../images/loghi-innovacultura.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
    position: fixed;
    z-index: 10;
    width: 100%;
    margin: 0 auto;
    top: 0;
}

.tag-section { margin-bottom: 2rem; }
.tag-header  {
    font-weight: 600;
    margin: 0.5rem 0 1rem;
    text-transform: capitalize;
    color: white;
}

