:root {
	--hl: #ed930740;
	--azure: #3b8bba;
	--orange: #FB5B27;
	--orange_hover: #ff7f54;
	--orange_h_st: #ff7f547a;
	--orange_light: #FD9303;
	--bg_default: #F0F0F0;
	--meta_theme: var(--bg_card);
	--bg_card: white;
	--char_col: black;
	--char_col_menu: white;
	--blue_juice: rgba(86,146, 198, 1);
	--semi_trans: #ffffff7c;
	--shadow: rgba(0, 0, 0, 0.3);
	--radius-sm: 0.5rem;
	--radius-md: 1rem;
	--radius-l: 2rem;
	--radius-xl: 3rem;
	--radius-xxl: 4rem;
	
	--bg_red: #f99;
	--bg_yellow: yellow;
	--bg_green: #Af9;
}

section, .safe-area {
    padding-left:1em;
    padding-right:1em;
}

@supports(padding:max(0px)) {
	section {
		/* old syntax iOS 11.0, 11.1 */
		padding-left:  max(1em, constant(safe-area-inset-left));
		padding-right: max(1em, constant(safe-area-inset-right));
		
		/* new syntax iOS 11.2+ */
		padding-left:  max(1em, env(safe-area-inset-left));
		padding-right: max(1em, env(safe-area-inset-right));
	}
}

.bg_red {
	background: var(--bg_red) !important;
}
.bg_yellow {
	background: var(--bg_yellow) !important;
}
.bg_green {
	background: var(--bg_green) !important;
}

.red {
	color: red;
}
.green {
	color: green;
}

.confirm.clicked {
	color: red;
}

.small {
	font-size: .8em;
}

.indent {
	padding-left: 2em;
}
.spaced {
	margin-bottom: 3em;
}
/* elementi webpage */
HTML,BODY {
	overflow: hidden;
	height: 100%;
	background-color: var(--bg_default) !important;
	height: 100%;
	font-family: "Montserrat", sans-serif !important;
}
@media screen and (max-width: 767px),
	(max-height: 767px) {
	HTML,BODY{
		background-color: var(--meta_theme) !important;
		transition: background-color 0.08s ease-in-out;
		margin: 0;
		padding: 0;
	}
}

body {
    margin: 0;
    padding: 0;
    /* height: 100dvh; */ /* Altezza dinamica della viewport */
    padding: env(safe-area-inset-top, 0)
            env(safe-area-inset-right, 0)
            env(safe-area-inset-bottom, 0)
            env(safe-area-inset-left, 0);
    /* background-color: #f0f0f0; */
    box-sizing: border-box;
	min-height: -webkit-fill-available;
}

#root {
	display: flex;
    height: 100dvh;
	padding-bottom: env(safe-area-inset-bottom, 20px);
}
#main {
	padding: 2rem;
	width: 100%;
	height: auto;
	/* display: flex;
	flex-direction: column; */
	justify-content: center;
	align-content: center;
	overflow: auto;
}

.logo_title{
	display: block;
	margin-bottom: 1rem;
	align-self: center !important;
}

@media screen and (max-width: 767px),
(max-height: 767px) {
	#main {
		padding: 0em;
		width: 100%;
		overflow: hidden;
	}

	.logo_title {
		display: none;
	}

	#card-background{
		padding: 0rem 2rem !important;
	}

	#card-background h2{
		position: sticky;
		top: 0;
		left: 0;
		width: 100%;
		padding-top: 3rem;
		padding-left: 2.5rem;
		z-index: 3;
		
		margin-bottom: 0%;
		padding-bottom: 1rem;
		background-image: linear-gradient(180deg, var(--bg_card) 88%, transparent);
		
	}

	#card-background .msg h2{
		background-color: transparent;
		width: 100% !important;
		z-index: 2;
	}
}

.home_logo{
	display: flex;
	align-self: center;
	justify-self: center;
}

@media screen and (max-width: 767px),
(max-height: 767px) {
	.home_logo{
		background: url('../logo_only_orange.png') transparent no-repeat fixed center !important;
		background-size: 35dvh !important;
		overflow-y: auto !important;
		padding: 0%;
	}

}

#no_usr_hp{
	display: flex;
	align-self: center;
	justify-self: center;
	background: url('../juice_login.png') transparent no-repeat center;
	background-size: 80%;
	width: 100%;
	height: 100%;
}
/* fine */

.error {
	color: red;
	line-height: 1.5;
}
.error:not(.field,.checkboxes)::before {
	content: '\2022';
	margin-right: .5em;
}
/*elementi della pagina mod style*/

/* elementi pagina */
*::-webkit-scrollbar-thumb:hover {
	background-color: #a8a8a8 !important;
}
*::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.07);
	background-color: transparent;
}
*::-webkit-scrollbar {
	min-width: 6px;
	width: 1%;
	background-color: transparent;
}
*::-webkit-scrollbar-thumb {
	background-color: #c1c1c171;
	border-radius: var(--radius-sm);
}

.container{
	min-height: 45%;
	padding-bottom: 2rem !important;
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	margin: auto;
	height: fit-content;
}

.card {
	box-shadow: 0 0px 2px var(--orange);
    border-radius: var(--radius-l);
    background-color: var(--bg_card);
	max-width: 100%;
	max-height: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	position: relative;
	padding: .5rem !important;
}
.card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
	text-transform: uppercase;
	font-family: "Saira Condensed", sans-serif !important;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
	text-transform: uppercase;
	font-family: "Saira Condensed", sans-serif !important;
}


@media screen and (max-width: 767px),
(max-height: 767px) {
	.container{
		opacity: 0.95;
		background-color: var(--bg_card) !important;
	}
	.card{
		box-shadow: none !important;
		width: 100% !important;
		padding: 0 1rem !important;
		border: none !important;
		background-color: transparent;
	}
}

button, .btn {
    border-radius: var(--radius-md) !important;
}

.btn-primary, .pure-button-primary {
	width: 100%;
	box-shadow: 0 0px 5px var(--orange);
	background-color: var(--orange) !important;
	color: var(--bg_card);
	border: none !important;
	outline: none !important;
	opacity: 0.90;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.pure-button-primary:hover, .pure-button-primary:focus, .pure-button-primary:active {
	opacity: 1;
	border-color: var(--orange) !important;
}

.btn-secondary{
    width: 100%;
    box-shadow: 0 0px 5px grey ;
	border: none;
	opacity: 0.75;
}
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active,
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    border-color: var(--orange) !important;
	opacity: 1;
}
.btn-secondary.disabled{
	background-color: silver !important;
}
/* Pulsanti append form */
.btn-outline-secondary {
    width: 2rem;
    bottom: auto;
    align-items: center;
    justify-content: center;
    align-self: center;
    right:auto ;
    color: var(--char_col);
    border: none !important;
    background-color: transparent !important;
	outline: none !important
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus{
    color: var(--char_col) !important;
    border: none !important;
}

#btn-acquisto {
	background-color: var(--orange_hover);
	align-self: center;
	margin: 0;
	margin-bottom: 1rem !important;
	border: none;
}
@media screen and (max-width: 767px),
(max-height: 767px) {
	.btn-primary, .btn-secondary, .btn-outline-secondary{
		opacity: 1 !important;
	}
}

.form-check-input, input[type='checkbox']{
	position: relative !important;
    border-radius: var(--radius-sm) !important;
	border-color: 2px var(--orange) !important;
	accent-color: var(--orange_light);
}
.form-check-input:focus, input[type='checkbox']:focus{
	outline-color: var(--orange) !important;
}
select[type='select']{
	padding-top: .1em !important;
	padding-bottom:.1em !important;
}

.form-control {
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
}
.form-control:hover, .form-control:focus, .form-control:active {
    border-color: var(--orange) !important;
}
.login-div .input-group {
	margin-top: -5% !important;
}
.form-control[type=select]{
	background-image: linear-gradient(var(--bg_card), var(--bg_default));
}

legend {
	font-size: 1.4rem !important;
	font-weight: bold;
	font-family: "Saira Condensed", sans-serif !important;
}

.tooltip-custom {
	max-width: 90dvw;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--orange_light);
    color: var(--bg_card);
    padding: 0.5rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px var(--bg_card);
    white-space: normal;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}
/* Mostra il tooltip quando è attivo */
.tooltip-custom.active {
    opacity: 0.95;
    visibility: visible;
}

/* menu22.css pure-min.css per il resto */

.carousel-inner {
	justify-content: start;
}
.carousel-indicators {
	top: 1%;
 	pointer-events: none;
}
.carousel-indicators li {
	transition: transform .5s;
}

.carousel-indicators li {
	background-color: var(--orange_hover) !important;
}
/*fix 07-02-2025 richiesta rimozione titolo e data notizie
.carousel-caption {
    top: 0;
    bottom: auto;
	pointer-events: none;
}*/

.carousel-control-next-icon, .carousel-control-prev-icon {
	position: fixed;
	top: 50%;
}
.carousel-control-prev-icon {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23e67e22' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E") !important;
}
.carousel-control-next-icon {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23e67e22' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E") !important;
}

/*fix 07-02-2025 richiesta rimozione titolo e data notizie
@media screen and (max-width: 767px),
(max-height: 767px) {
	.carousel-caption{
		top: 1.5rem;
	}
}
*/
/* fine */

#anteprima {
	margin: 2em 0;
}
#div_anteprima {
	border: solid 1px silver;
	padding: 1em;
}
#anteprima TABLE {
	margin-left: 1em;
	width: calc(100% - 1em);
}
#anteprima H3 {
	margin-top: 0;
	margin-bottom: .5em;
}
#anteprima TR.current {
	background-color: var(--hl);
}
#anteprima TR.slashed TD {
	color: silver;
	text-decoration: line-through;
}
#anteprima TD.ut {
	cursor: pointer;
}
#anteprima TD.ut:hover {
	background-color: var(--hl);
}
#anteprima TD.ut INPUT {
	width: 5em;
	background: transparent;
	border: none;
	padding: 2px 10px 2px 2px;
	text-align: right;
}

.back_button {
	font-size: 1.5em;
	width: 2em;
	height: 2em;
	text-align: center;
	padding-top: .5em;
	float: right;
	background: white;
	border: solid 1px silver;
	border-radius: .25em;
}

#calendario_header {
	color: black;
	margin-bottom: 1em;
	margin-left: 1em;
}
#calendario_label {
	position: relative;
	display: inline-block;
	text-align: left;
	cursor: pointer;
}
#calendario_header A {
	margin-right: 1em;
}
#cf_date {
	opacity: 0;
	position: absolute;
	top: 1.5em;
	left: 0;
	width: 0;
	height: 0;
	border: none;
}

TD.small {
	text-align: center;
	width: 3.5em;
}
TD.importo {
	text-align: right;
	padding: 0 .5em !important;
}

.stu_table,
.les_table,
.materia_table,
.classe_table {
	margin-bottom: 2em;
}
.percorso_table TD:first-child {
	white-space: nowrap;
}
.percorso_table TD:nth-child(3),
.percorso_table TD:nth-child(4) {
	width: 7em;
	text-align: right;
	padding-right: 1em;
}
.materia_table TD:nth-last-child(3),
.materia_table TD:nth-last-child(2),
.classe_table TD:nth-last-child(2),
.les_table TD:nth-last-child(1) {
	width: 3em;
	text-align: right;
	padding-right: 1em;
}
.stu_table TD:last-child,
.percorso_table TD:last-child,
.materia_table TD:last-child,
.classe_table TD:last-child {
	width: 3em;
	text-align: center;
}
.stu_table TD:first-child {
	width: 50%;
}

#percorsi_table {
	margin-bottom: 1em;
}
#percorsi_table TR.in_corso {
	color: var(--azure);
}
#percorsi_table TR.prova TD:first-child:before,
#studenti_table TR.prova TD:first-child:before {
	content: 'P';
	background: var(--azure);
	color: white;
	border-radius: 100%;
	font-size: .5em;
	margin-right: 10px;
	width: 1em;
	height: 1em;
	display: inline-block;
	text-align: center;
	padding: 2px;
	vertical-align: 2px;
}
#percorsi_table TR.prova:not(.in_corso) TD:first-child:before {
	background: silver;
}
#studenti_table TR.fine TD:first-child {
	text-decoration: line-through;
}

A.lezione_rem:hover {
	color: red;
}

I.pa-icon {
	font-style: normal;
	margin: 2px 10px;
}
I.pa-icon.p {
	color: green;
}
I.pa-icon.a {
	color: red;
}
I.pa-icon.g {
	color: gray;
}
I.pa-icon.nd {
	color: silver;
}

#lezioni_table TR.collettiva {
	font-weight: bold;
}
#lezioni_table TR.past {
	color: silver;
}
#lezioni_table TD:last-child {
	text-align: center;
}
@media screen and (max-width: 767px), 
(max-height: 767px) {
	#lezioni_table TR.past {
		color: var(--char_col);
	}
}

DIV.notizia {
	background-color: #ffe7d880;
	padding: 1em 2em;
	max-width: 100%;
	min-height: 75dvh;
	height: fit-content;
	overflow: hidden;
	border-radius: var(--radius-md);
	border: solid 1px var(--orange_hover);
}
DIV.notizia H2 {
	margin: 0 0 .5em;
}
DIV.notizia H3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: bold;
	text-transform: uppercase;
	font-family: "Saira Condensed", sans-serif !important;
}
DIV.notizia H4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
	text-transform: uppercase;
	font-family: "Saira Condensed", sans-serif !important;
	color: var(--char_col)
}
DIV.notizia.hl {
	border: solid 5px #ea801738;
}
DIV.notizia.solo_ins {
	border: solid 5px orange;
}
DIV.notizia IMG {
	max-width: 100%;
}

DIV.inline_checkboxes DIV.field {
	display: inline-block;
}

@keyframes blink {
	0% { opacity: .5 }
	49% { opacity: .5 }
	50% { opacity: 1 }
}
.blink {
	animation: blink 1s infinite;
}

TR.border_top {
	border-top: solid 2px #000;
}

.pure-button {
	margin-bottom: 4px;
}

/* .pure-button.admin {
	background-color: #72cdf1;
} */

@media screen and (max-width: 767px),
	(max-height: 767px)  {
	#calendario_header {
		margin-left: 0em;
	}

	#calendario_label {
		margin-top: .5em;
	}

	DIV.notizia {
		margin: 2em 1em;
		padding: 1em .5em;
	}
}

@media screen and (max-width: 350px) {
	A.menu_burger {
		margin-right: .5em !important;
	}
}

@media print {
	.no_print,
	#credits,
	#calendario_form,
	#menu-container {
		display: none !important;
	}

	#main {
		display: block;
	}
	.break {
		break-before: always;
	}

	#card-background{
		border: none;
	}
}