:root {
	--cassiopeia-color-primary: #1E3A5F;
	--cassiopeia-color-secondary: #14B8A6;
	--cassiopeia-color-tertiary: #eaf3ff;
	--cassiopeia-color-link: #14B8A6;
	--cassiopeia-color-velina: #4A6FA5;
	--link-color: #14B8A6;
	--link-color-rgb: 20, 184, 166;
	--cassiopeia-color-hover: #1E3A5F;
	--link-hover-color: #1E3A5F;
	--link-hover-color-rgb: 30, 58, 95;

	--link-hover-color-1: #5DADE2;
	--link-hover-color-2: #63B3ED;


}
/*
Primario (hover link)	#1E3A5F	rgb(30, 58, 95)
Secondario (CTA, bottoni, tag)	#14B8A6	rgb(20, 184, 166)
Velina immagini	#4A6FA5	rgb(74, 111, 165)
Sezione evidenza HP	#EAF3FF	rgb(234, 243, 255)
Testo principale	#1F2937	rgb(31, 41, 55)
Link stato di quiete	#14B8A6	rgb(20, 184, 166)
*/
.mw-4 {
	max-width: 4rem;
}
.mw-5 {
	max-width: 5rem;
}
.mw-9 {
	max-width: 9rem;
}
.mw-15 {
	max-width: 15rem;
}
.text-primary {
	color: var(--cassiopeia-color-primary)!important;
}
.text-bg-tertiary {
	background-color: var(--cassiopeia-color-tertiary)!important;
}
.text-bg-velina {
	background-color: var(--cassiopeia-color-velina)!important;
	color: #fff !important;
}
.text-bg-velina a {
	color: var(--cassiopeia-color-tertiary)!important;
}
.text-bg-velina a:hover {
	text-decoration: underline !important;
	color: var(--link-hover-color-1)!important;
}
.card-cover {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
a {
	text-decoration: none !important;
}
a:hover {
	text-decoration: underline !important;
	color: var(--link-hover-color-1)!important;
}
a.navbar-brand:hover {
	text-decoration: none !important;
	color: var(--link-hover-color-1)!important;
}
background-image:
	linear-gradient(
		to bottom,
		rgba(0,0,0,.25),
		rgba(0,0,0,.75)
	),
	url(...);

.youtube-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
}

#player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.playlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playlist button {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  text-align: left;
  background: #111;
  color: white;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.playlist img {
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* N3T COOKIE CONSENT */ 
/* iframeManager YouTube - WCAG 1.4.3 */
div[data-service] .c-n-t,
div[data-service] .cc-text,
div[data-service] .cc-text a {
    color: #fff !important;
    background-color: #0b1016 !important;
}

div[data-service] .cc-text a {
    text-decoration: underline !important;
    border-bottom: 0 !important;
}

/* CONTATTI */ 
.com-contact-category__items .row {
    justify-content: center;
    align-items: stretch;
}

.contact-info,
.contact-map {
    width: 100%;
    min-height: 350px;
}

.contact-info {
    padding: 2rem;
}

.contact-details {
    width: 100%;
    max-width: 500px;
}

.contact-map {
    overflow: hidden;
	z-index: 1;
}

.contact-map .nrf-widget.map-widget {
    margin-inline: auto;
    max-width: 100%;
}

.contact-map .map-item,
.contact-map .leaflet-container {
    width: 100% !important;
    max-width: 400px;
    height: 350px !important;
    margin-inline: auto;
}

@media (max-width: 991.98px) {
    .contact-info,
    .contact-map {
        min-height: auto;
    }

    .contact-info {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .contact-map .nrf-widget.map-widget,
    .contact-map .map-item,
    .contact-map .leaflet-container {
        width: 100% !important;
        max-width: 100%;
    }
}

/* LOGHI FOOTER */
.custom-logos .col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    padding: 15px;
}

.custom-logos .logo-item {
    width: auto;
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.custom-logos a:hover .logo-item {
    transform: scale(1.06);
    opacity: 0.85;
}
/* POPUP */
.custom-popup .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.custom-popup .modal-content {
    border: 0;
    border-radius: 0.75rem;
}

.custom-popup .modal-header {
    align-items: center;
}

/* BREADCRUMB */
.breadcrumb {
	background-color: var(--cassiopeia-color-tertiary);
	margin-bottom: 0;
}
/* VIDEO */
.com-content-article video {
	width: 100%;
	height: auto;
}
/* ALLEGATO */
.doc-link {
  margin: 0;
  padding:0;
  text-decoration: none;
}

.doc-icon {
  font-size: 1.4rem;
}

/* VIDEO EMBEDDED */
body .embera-embed-responsive-provider-dailymotion, body .embera-embed-responsive-provider-kickstarter, body .embera-embed-responsive-provider-rutube, body .embera-embed-responsive-provider-ted, body .embera-embed-responsive-provider-vimeo, body .embera-embed-responsive-provider-youtube, body .embera-embed-responsive-provider-animatron, body .embera-embed-responsive-provider-amcharts, body .embera-embed-responsive-provider-on-aol-com, body .embera-embed-responsive-provider-animoto, body .embera-embed-responsive-provider-videojug, body .embera-embed-responsive-provider-speakerdeck, body .embera-embed-responsive-provider-sketchfab, body .embera-embed-responsive-provider-spotify, body .embera-embed-responsive-provider-livestream, body .embera-embed-responsive-provider-googlemaps {
	padding-bottom: 0 !important;
}
/* GALLERY */
.image-caption-overlay figcaption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        rgba(74,111,165,.7),
        rgba(74,111,165,0)
    );
    color: white;
    padding: 15px;
}
/* ORGANIGRAMMA */
.org-card{
    height:100%;
    padding:2rem;
    background:#fff;
    border:1px solid #dee2e6;
    border-radius:.75rem;
    box-shadow:0 .125rem .25rem rgba(0,0,0,.075);

    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.org-card .btn{
    margin-top:auto;
}

/* NOTIZIE */
.notizie a {
	color: #fff;
}
.notizie .bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.notizie .bd-placeholder-img-lg {
  font-size: 3.5rem;
}
}
.notizie .b-example-divider {
width: 100%;
height: 3rem;
background-color: #0000001a;
border: solid rgba(0, 0, 0, 0.15);
border-width: 1px 0;
box-shadow:
  inset 0 0.5em 1.5em #0000001a,
  inset 0 0.125em 0.5em #00000026;
}
.notizie .b-example-vr {
flex-shrink: 0;
width: 1.5rem;
height: 100vh;
}
.notizie .bi {
vertical-align: -0.125em;
fill: #fff;
}
.notizie .nav-scroller {
position: relative;
z-index: 2;
height: 2.75rem;
overflow-y: hidden;
}
.notizie .nav-scroller .nav {
display: flex;
flex-wrap: nowrap;
padding-bottom: 1rem;
margin-top: -1px;
overflow-x: auto;
text-align: center;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
.notizie .btn-bd-primary {
--bd-violet-bg: #712cf9;
--bd-violet-rgb: 112.520718, 44.062154, 249.437846;
--bs-btn-font-weight: 600;
--bs-btn-color: var(--bs-white);
--bs-btn-bg: var(--bd-violet-bg);
--bs-btn-border-color: var(--bd-violet-bg);
--bs-btn-hover-color: var(--bs-white);
--bs-btn-hover-bg: #6528e0;
--bs-btn-hover-border-color: #6528e0;
--bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
--bs-btn-active-color: var(--bs-btn-hover-color);
--bs-btn-active-bg: #5a23c8;
--bs-btn-active-border-color: #5a23c8;
}
.notizie .bd-mode-toggle {
z-index: 1500;
}
.notizie .bd-mode-toggle .bi {
width: 1em;
height: 1em;
}
.notizie .bd-mode-toggle .dropdown-menu .active .bi {
display: block !important;
}

.notizie .feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: .75rem;
}

.notizie .icon-square {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
}

.notizie .text-shadow-1 { text-shadow: 0 .125rem .25rem rgba(0, 0, 0, .25); }
.notizie .text-shadow-2 { text-shadow: 0 .25rem .5rem rgba(0, 0, 0, .25); }
.notizie .text-shadow-3 { text-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25); }

.notizie .feature-icon-small {
  width: 3rem;
  height: 3rem;
}

/* HERO IMAGE ARTICLE */
.article-hero-fullwidth {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.article-hero {
    position: relative;
    height: 60vh;
    min-height: 420px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-caption {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    padding-left: max(8vw, 2rem);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(74,111,165,.95) 0%,
        rgba(74,111,165,.65) 45%,
        rgba(74,111,165,.20) 100%
    );
    transform-origin: left center;
    animation: overlayReveal 2.8s cubic-bezier(.77,0,.18,1) forwards;
}

@keyframes overlayReveal {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.animate-text {
    opacity: 0;
    transform: translateX(-120px);
    animation: revealLeftText 1.4s cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: .5s;
}

@keyframes revealLeftText {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 2px;
    margin-top: 2rem;
    background: rgba(255,255,255,.85);
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    animation: lineReveal 1.2s ease forwards;
    animation-delay: 1.2s;
}

@keyframes lineReveal {
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* H2 */
h3 {
    position: relative;
    display: inline-block;
}

/* SOTTOLINEATURA */
h2.underline {
    position: relative;
    display: inline-block;
}
h2.underline::after {
    content: "";
    display: block;

    width: 120px;
    height: 2px;
    margin-top: 2.2rem;

    background: var(--cassiopeia-color-primary);

    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
}

/* H2 VISIBILE */

h2.underline.in-view::after {
    animation: lineReveal 1.2s ease forwards;
    animation-delay: .9s;
}

/* ANIMAZIONE */

@keyframes lineReveal {

    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }

}



/**/ 


/* SLIDER */
.carousel-item {
    position: relative;
    overflow: hidden;
}

/* IMMAGINE */

.carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover;

    transform: scale(1);
    transition: transform 7s ease;
}

.carousel-item.active img {
    transform: scale(1.08);
}

/* VELINA */

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
	backdrop-filter: blur(2px);
    background:
        linear-gradient(
            90deg,
            rgba(74,111,165,.96) 0%,
            rgba(74,111,165,.72) 45%,
            rgba(74,111,165,.22) 100%
        );

    transform-origin: left center;
    transform: scaleX(0);

    opacity: 1;
}

/* SLIDE ATTIVA */

.carousel-item.active .slide-overlay {
    animation:
        overlayReveal 2.8s cubic-bezier(.77,0,.18,1) forwards;
}

/* ANIMAZIONE */

@keyframes overlayReveal {

    0% {
        transform: scaleX(0);
        opacity: 1;
    }

    55% {
        transform: scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }

}

/* EFFETTO NEXT */

.carousel-item.carousel-item-next .slide-overlay,
.carousel-item.carousel-item-prev .slide-overlay {
    opacity: .85;
}

/* SLIDE ATTIVA */

.carousel-item.active .slide-overlay {
    opacity: .45;
}

/* CAPTION */

.carousel-caption {
    z-index: 5;
    bottom: 15%;
    text-align: left;
}

/* TESTI */

.animate-text {
    opacity: 0;
    transform: translateX(-120px);
}

.carousel-item.active .animate-text {
    animation: revealLeftText 1.4s cubic-bezier(.22,.61,.36,1) forwards;
}

.carousel-item.active .delay-1 {
    animation-delay: .25s;
}

.carousel-item.active .delay-2 {
    animation-delay: .45s;
}

@keyframes revealLeftText {

    0% {
        opacity: 0;
        transform: translateX(-120px);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }

}

/* TITLE */

.slide-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    line-height: .95;
}

.slide-title::after {
    content: "";
    display: block;

    width: 120px;
    height: 2px;
    margin-top: 2.2rem;

    background: rgba(255,255,255,.85);

    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
}

/* solo quando la slide è attiva */
.carousel-item.active .slide-title::after {
    animation: lineReveal 1.2s ease forwards;
    animation-delay: .9s;
}

@keyframes lineReveal {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* SUBTITLE */

.slide-subtitle {
    font-size: clamp(1.2rem, 2vw, 2rem);
    max-width: 700px;
}

/* MENU */
.container-header {
	z-index: 20;
}

.container-header .navbar {
  display: flex;
  align-items: center;
}

.desktop-menu {
  align-items: center;
}

.desktop-menu .mod-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
}

.desktop-menu .nav-item {
  position: relative;
}

.desktop-menu a,
.desktop-menu button {
  color: #fff;
  text-decoration: none;
  background: none;
  border: 0;
}

.desktop-menu .mod-menu__sub {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #fff;
  padding: .75rem 0;
  z-index: 1000;
}

.desktop-menu .nav-item:hover > .mod-menu__sub {
  display: block;
}

.desktop-menu .mod-menu__sub a {
  display: block;
  padding: .5rem 1rem;
  color: #000;
}

.offcanvas a {
  color: inherit;
  text-decoration: none;
}

/* LAST NEWS */
.last-news-overflow .last-news-row {
	gap: 1rem;
}

.last-news-overflow .last-news-card {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-height: 100%;
}

.last-news-overflow .last-news-content {
	flex: 1 1 auto;
}

.last-news-overflow .last-news-image-wrap {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-top: auto;
	border-radius: 21px 21px 0 0;
	overflow: hidden;
}

.last-news-overflow .last-news-image-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/*
.last-news-overflow .last-news-title-link {
	color: inherit;
	text-decoration: none;
}

.last-news-overflow .last-news-title-link:hover,
.last-news-overflow .last-news-title-link:focus {
	text-decoration: underline;
}
*/
.last-news-overflow .last-news-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 767.98px) {
	.last-news-overflow .last-news-row {
		gap: 0;
	}

	.last-news-overflow .last-news-card {
		margin-bottom: 1rem;
	}

	.last-news-overflow .last-news-image-wrap {
		width: 90%;
	}
}
