:root {
    --primary-color: #183A7A;
    --secondary-color: #d77e1d;
    --third-color: #ffffff;
}

.col-primary{
    color: var(--primary-color) !important;
}

.col-secondary{
    color: var(--secondary-color) !important;
}

*{
    font-family: "Work Sans", sans-serif;
    color: #001341;
}
h2{
    margin: 0px;
}
.work-sans-100 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
}

.work-sans-200 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
}

.work-sans-300 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.work-sans-400 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.work-sans-500 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}
.work-sans-600 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}
.work-sans-700 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
.work-sans-800 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}
.work-sans-900 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
}
.work-sans {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

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

.btn-solid {
    border:0px;
    background-color: #183A7A;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: block;
    text-align: center;
}

.btn-outline {    
    border: 1px solid #0D2A60;
    color: #0D2A60;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}


header {
    display: flex;
    flex-direction: column;
}

header .top-bar{    
    padding:8px;
    background-color: #183A7A;
    order: 2;    
}
header nav{    
    order: 3;    
}
header .top-bar .container{    
    display: flex;
    gap: 24px;
    justify-content: flex-end;    
}
@media (max-width: 768px) {
    header .top-bar .container{
        justify-content: center;
    }
}
header .top-bar a{
    display: inline-block;
    text-decoration: none;
    background-color:white;
    border-radius: 50%;
    width: 26px;
    height: 26px;    
    text-align: center;
}
header .top-bar a i{
    color: #183A7A;
    font-size: 16px;
    line-height: 26px;    
}

header .top-bar a:hover{
    opacity: 0.8;
}

header .bottom-bar{
    order: 1;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;    
}
header .bottom-bar .container{
    padding: 12px;
}
header .bottom-bar .logo{
    float: left;
}
header .bottom-bar .logo img {
    width: 240px;
}

header .bottom-bar .personal-area {
    margin-top: 10px;
    float: right;
    margin-left: 16px;
}
ul.personal-area i {
    color: #ffffff;
}
ul.personal-area {
    list-style: none;
    margin-top: 14px !important;
    margin-left: 0 !important;
    padding-left: 15px !important;
}

header .bottom-bar .search-container{    
    float: right;
    position: relative;
    margin-top: 10px;
}
header .bottom-bar .search{    
    color: #666666;    
    padding: 7px 20px 7px 6px;
    font-size: 16px;
    background-color: #F9F9F9;
    border-radius: 6px;
    border:1px solid #EBEBEB;
}
header .bottom-bar .search::placeholder{
    color: #C1C4CC;
    opacity: 1;
}
header .bottom-bar .go-search{
    position: absolute;
    top:8px;
    right:8px;
    font-size: 19px;
    color: #C1C4CC;
    
}

@media (min-width: 769px) {
    header .top-bar {
        order: 1;
    }
    
    header .bottom-bar {
        order: 2;
    }
}

.menu>li{
    margin-right: 10px;
}

.toggle-menu {
    display: none;
}
.submenu{
    position: relative;
}
.submenu ul{
    display: none;
    position: absolute;
    background-color: white;
    right: 0px;
    top: 100%;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
    z-index: 10001;
    padding:4px 8px 10px;
    border-radius: 5px;
    list-style: none;
}
.submenu>ul>li{
    padding: 6px;
    min-width: 120px;
    /*text-transform: uppercase;*/
    text-align: left;
    font-size: 18px;
    border-bottom:1px solid #ededed;
    font-family: "DM Serif Display", serif;
}
.menu>li.submenu:hover ul{
    display: block;
}
.submenu.selected > ul{
    display:block;
}

.submenu .submenu ul{
    top: 0px;
    left: 100%;
    right: auto;
}

nav{
    width: 100%;
    background-color: #f9f9f9;
}

nav .menu {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    display: flex; /* Dispone le voci in riga */
    justify-content: space-between;
    list-style: none; /* Rimuove i pallini */
    padding: 0px;
    padding-bottom: 0px;
}

nav .menu li a {
    color: #161922;
    padding:14px 10px;
    font-weight: 700;
    font-size: 16px;
}

nav .menu li a:hover{
    opacity:0.7;
}

/* Voci di menu */
.menu > li {
    white-space: nowrap;
}

/* "Altro" come ultimo elemento */
.menu > li.othermenu {
    position: relative;
}

/* Sottomenu nascosto inizialmente */
.menu > li.othermenu > ul.menu {
    display: none;
    position: absolute;
    width: auto;
    top: 100%;
    right: 0;
    background: white;
    padding: 0.5rem 1rem;
    list-style: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

/* Mostra sottovoci al passaggio su "Altro" */
.menu > li.othermenu:hover > ul.menu {
    display: flex;
}

/* Link */
.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* Responsive: nasconde voci a step */
@media screen and (max-width: 1250px) {
    .menu-voice-size-1250 { display: none !important; }
    .submenu-voice-size-1250 { display: flex !important; }
}
@media screen and (max-width: 985px) {
    .menu-voice-size-985 { display: none !important; }
    .submenu-voice-size-985 { display: flex !important; }
}
@media screen and (max-width: 855px) {
    .menu-voice-size-855 { display: none !important; }
    .submenu-voice-size-855 { display: flex !important; }
}

@media screen and (max-width: 768px) {
    .menu li:not(.othermenu){ display: flex !important; }
    .menu li.othermenu{ display: none !important; }
}

.close-menu{
    color: #ffffff;
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 36px;
    display: none;
    cursor: pointer;
}

.mobile-logo{
    display: none;   
}

.mobile-menu-toggle {
    display: none;
    float: right;
    font-size: 28px;
    padding:5px 8px;
    background-color: var(--primary-color);    
    border-radius:5px;
}
.mobile-menu-toggle i{
    color: #ffffff;
}

@media (max-width: 768px) {         
    .mobile-logo{
        display: block;
        margin-left: 10px;
    }
    .close-menu{
        display: block;
    }
    nav {
        width: 100%;
        display: none;
        visibility: hidden;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10001;
        transition: visibility 0.4s;
        background-color: var(--primary-color);
        height: 100vh;
        overflow: auto;
        padding: 10px;
    }
    nav.open{
        display: block;
        visibility: visible;
    }
    nav .menu {
        display: block;
        width: 100%;
        padding-top: 10px;
    }
    nav .menu li a {
        color: #ffffff;
        font-size: 20px;
        margin-top: 12px;
        padding: 8px 12px;
        padding-right: 30px;
        display: block;
    }
    .submenu ul{
        background-color: transparent;
        position: relative;
        box-shadow: none;
    }
    .submenu>ul>li{
        border-bottom: 0px;
        padding-left: 20px;
    }
    nav .menu li.submenu ul li a {
        /*color: var(--primary-color);*/
    }
    .mobile-menu-toggle {
        display: block;
        padding-top:10px;
    }
    .logo-container img{
        height:60px;
    }
    .menu>li {
        margin-right: 1rem;
    }
}

.sr-slider-container{
    overflow: hidden;
    position: relative;
}

.sr-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.sr-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 550px;    
}

.sr-slide .sr-slide-overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background: linear-gradient(to top, #284A8A 0%, transparent 80%);
}

.sr-slide .sr-slide-content{
    position: absolute;
    text-align: center;
    width: 800px;
    left: calc(50% - 400px);
    top: 50%;
    padding-top:2rem;    
}

.sr-slide .sr-slide-content .btn{
    margin-top:20px;
    border-radius: 4px;
    font-size: 16px;
    padding:4px 12px;
}

.sr-slide-title {
    font-weight: bold;
    font-size: 32px;
    margin-bottom: 20px;  
}

.sr-slide-title b{
    color: white;
}

@media (max-width: 840px) {
    .sr-slide .sr-slide-overlay{
        background: linear-gradient(to top, #284A8A 0%, transparent 100%);
    }
    
    .sr-slide {
        height: 300px;    
    }
    
    .sr-slide .sr-slide-content{
        width: 60%;
        left:20%;
        right:20%;
        top:30%;
        padding-left:10px;
        padding-right:10px;        
    }
    
    .sr-slide-title {
        font-weight: 400;
        font-size: 24px;
        margin-bottom: 20px;  
    }
}

@media (max-width: 575px) {
    .sr-slide .sr-slide-overlay{
        background: linear-gradient(to top, rgba(40,74,138,0.9) 0%, rgba(40,74,138,0.6) 60%, transparent 100%);
    }
    
    .sr-slide {
        height: 200px;    
    }
    
    .sr-slide .sr-slide-content{
        width: 100%;
        left:0px;
        top:30px !important;
        padding-left:10px;
        padding-right:10px;        
    }
    
    .sr-slide-title {
        font-weight: 400;
        font-size: 20px;
        margin-bottom: 20px;  
    }
}

.sr-prev, .sr-next {
    position: absolute;    
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;    
    font-size: 20px;    
}
.sr-prev:hover, .sr-next:hover {
    opacity: 0.85;
}

.sr-prev {
    content: "\f104";
    left: 8%;
}

.sr-next {
    content: "\f105";
    right: 8%;
}

.sr-prev::before {
    content: "\f104";
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
}

.sr-next::before {
    content: "\f105";
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
}

.sr-dots {
    display: none;
    text-align: center;
    margin-top: 10px;
}

.sr-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 5px;
    background-color: gray;
    border-radius: 50%;
    cursor: pointer;
}

.sr-dots .active {
    background-color: black;
}
@media (max-width: 768px) {
    .sr-prev, .sr-next {
        width: 28px;
        height: 28px;
        font-size: 16px;   
        bottom: 10px;
        top: unset;
    }
    
    .sr-prev {
        left: 10px;
    }
    
    .sr-next {
        right: 10px;
    }
}

/********* PAGE TITLE *********/
.page-title {
    color: #001341;
    text-align: center;
    font-size: 50px;
    margin: 25px 0 0 0;
}
.page-subtitle {
    color: #001341;
    text-align: center;
    font-size: 22px;
    margin: 5px 0;
}

@media (max-width: 575px) {
    .page-title {
        font-size: 40px;
    }
    .page-subtitle {
        font-size: 18px;
    }
}

/********* ITEMS LIST *********/
.items-list {
    padding: 20px 0;
}

.items-list h4 {
    color: #001341;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 24px;
    padding: 0 10px;
}

.items-list .btn-action {
    display: block;
    text-align: center;
    background-color: inherit;
    color: #183A7A;
    border: 1px solid #183A7A;
    padding: 10px 15px;
    width: 100%;
    font-size: 15px;
    font-family: "Judson", sans-serif;
    margin-top: 20px;
}

.items-list img {
    width: 100%;
}

.items-list .item-list-content {
    margin-bottom: 50px;
}

.items-list .hero-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #183A7A;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 15px;
    font-family: "Judson", sans-serif;
}

.items-list .hero-button:hover {
    background-color: #183A7A;
}

@media (max-width: 768px) {
    .items-list {
        padding: 30px 10px;
    }
}

/********* BREADCRUMB *********/
.breadcrumb-nav {
    padding: 10px 0;
    font-size: 0.95rem;
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #39251C;
}

.breadcrumb li+li::before {
    content: "/";
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb a {
    text-decoration: none;
    color: #39251C;
}

.breadcrumb a:hover {
    color: #183A7A;
}

.breadcrumb .active {
    color: #183A7A;
    font-weight: 500;
}

/* Responsive font size */
@media (max-width: 576px) {
    .breadcrumb-nav {
        font-size: 0.85rem;
    }

    .breadcrumb li+li::before {
        margin: 0 5px;
    }
}

.discover-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.discover-box {
    font-family: "Work sans";
    position: relative;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;    
    background-size: cover;
    background-position: center;
}

.discover-box h2{
    color: white;
}

.discover-content {
    display: flex;
    flex-direction: column;
    align-items: center;    
}

/* Pulsante */
.discover-box a {
    font-family: "Work sans";
    margin-top: 1rem;
    background: white;
    color: #0D2A60;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 400;
    text-decoration: none;
}
/* Variante colore su discover2 */
.discover2 a, .discover4 a {
    background: #0D2A60;
    color: white;
}

.discover-box h2{
    margin:0px;
}

/*.discover1{
    background-image: linear-gradient(rgba(226, 132, 26, 0.85), rgba(226, 132, 26, 0.85)), url('/frontend/images/discover3.jpg');
}
.discover2{
    background-image: url('/frontend/images/discover2.jpg');
    background-image: linear-gradient(rgba(242, 246, 248, 0.85), rgba(242, 246, 248, 0.85)), url('/frontend/images/discover2.jpg');    
}*/
.discover2 h2{
    color: #0D2A60;
}
/*.discover3{
    background-image: linear-gradient(rgba(13, 42, 96, 0.85), rgba(13, 42, 96, 0.85)), url('/frontend/images/discover1.jpg');   
}*/
.discover4{
   /* background-image: linear-gradient(rgba(242, 246, 248, 0.85), rgba(242, 246, 248, 0.85)), url('/frontend/images/discover2.jpg');*/
    color: #0D2A60;
} 

@media (max-width: 768px) {
    .personal-area, .search-container{
        width: 100%;
    }
    .discover-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-align: left;
    }
    
    .discover-content h2 {        
        margin: 0;
        padding-left: 20px;
        font-size: 1.2rem;
    }
    
    .discover-box {
        text-align: left; /* non più center */ 
        height: 100px;
    }
    
    .discover-box a {
        margin-right: 20px;
        margin-top: 0px;
    }
    
    .discover-wrapper {
        /*flex-direction: column;*/
    }
    
    .discover-box {
        /*flex: 1 1 100%;*/
    }
}

.news-section {
    padding: 60px 20px;
}
.news-section .event-content a {
    text-decoration: underline !important;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.news-header h2{
    font-size: 40px;
}

.news-header p{
    margin-top:4px;
}

.news-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-box {
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding:0 20px;
    position: relative;
    flex: 1;
}

.news-box img {
    width: 100%;
    height: 260px;
    display: block;
    border-top:6px solid #E2841A;
}

.news-content {
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /*margin-left: 16px;
    margin-right: 16px;
    margin-top: -100px;*/
}

.news-content .tag {
    font-size: 14px;
    line-height: 14px;
    color: #71747F;
    text-transform: uppercase;
}

.news-content .tag::before{
    content: "";
    display: inline-block;
    width: 6px;
    height: 10px; /* più alto del testo per creare spazio sopra e sotto */
    background-color: #E2841A;
    margin-right: 6px; /* Spazio tra rettangolo e testo */
    border-radius: 1px;
}

.news-content h3 {
    font-size: 20px;
    margin: 0.5rem 0;
    font-weight: 400;
}

.news-content .date {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}
.news-box-container {
    display: flex;
    flex-wrap: wrap;
}

.news-box-container>.col-12 {
    display: flex;
}

.news-content {
    flex-grow: 1;
    /* riempie lo spazio disponibile */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* per tenere il bottone sempre in basso */
}

.agenda-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    font-family: sans-serif;
}

.agenda-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 20px;
    flex-wrap: wrap; /* per sicurezza su schermi piccoli */
}

.agenda-header h2 {
    font-size: 40px;
    font-weight: bold;
    margin: 0;
}

.agenda-header p {
    margin: 10px 0 20px;
}

.agenda-btn {
    background-color: #d77e1d;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    border:none;
    text-decoration: none;
    font-weight: 500;
    display: block;
    text-align: center;
    width: fit-content;
}

.agenda-events {
    /*flex: 1;  si prende tutto lo spazio restante */    
}

.event-card {
    width: 100%;
    overflow: hidden;   
}

.event-card .event-img {
    height:100px;
    background-size:cover;
    border-radius: 6px;
}

.event-info {
    display: flex;
    gap: 18px;
    padding: 16px 0px;
}

.event-date {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    position: relative;
}

.event-date::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    background-color: #d77e1d;
}

.event-date .day {
    font-size: 32px;
    line-height: 32px;
}

.event-date .month {
    display: block;
    font-size: 18px;
    line-height: 18px;
    text-transform: lowercase;
    font-weight: normal;
    color: #333;
}

.event-text strong {
    display: block;
    margin-bottom: 4px;
    margin-top:8px;
    font-weight: 600;
}

.event-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

@media (max-width: 991px) {
    .agenda-btn{
        display: none;
    }
    
    .event-card {
        margin-top:20px;
    }
    
    .event-date {
        text-align: right;
    }
    
    .event-date::before {
        width: 90px;
        height:6px;
    }
    
    .event-date .day {
        font-size: 40px;
        line-height: 40px;
    }
    
    .event-date .month {
        font-size: 28px;
        line-height: 20px;      
    }
}

.press-box {
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding:0px;
    position: relative;
    margin-bottom: 20px;
}

.press-box img {
    width: 100%;
    height: auto;
    display: block;
    border-top:6px solid #E2841A;
}

.press-content {
    padding: 1rem;
    background-color: white;
    border-radius: 0px 0px 4px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: -100px;
}

.press-content .tag {
    font-size: 14px;
    line-height: 14px;
    color: #71747F;
    text-transform: uppercase;
}

.press-content .tag::before{
    content: "";
    display: inline-block;
    width: 6px;
    height: 10px; /* più alto del testo per creare spazio sopra e sotto */
    background-color: #E2841A;
    margin-right: 6px; /* Spazio tra rettangolo e testo */
    border-radius: 1px;
}

.press-content h3 {
    font-size: 20px;
    margin: 0.5rem 0;
    font-weight: 400;
}

.press-content .date {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}
@media (max-width: 991px) {
    .news-section{
        padding: 1.4rem;
    }
}

/********* EVENTI *********/
/* Contenitore generale */
.event-content {
    align-items: flex-start;
}

/*.event-container {
    padding: 20px;
    margin-top: 30px;
}*/

/* Titolo evento */
.event-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Immagine principale */
.event-main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.event-main-image {
    float: left;
}

.event-right {
    background-color: #ffffff;
    padding: 20px;
}

.event-right,
.event-description,
.event-notes,
.event-organizer {
    color: #68615D;
}

.event-section-title {
    color: #183A7A;
}

.event-right a {
    color: inherit;
    text-decoration: underline;
}

/* Icone */
.event-icon {
    width: 20px;
    margin-right: 8px;
    color: #183A7A;
}

/* Blocchi testuali */
.event-description,
.event-notes,
.event-attachments {
    margin-top: 20px;
}

/* Riga info evento */
.event-location,
.event-organizer,
.event-dates,
.event-status {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Lista allegati */
.event-attachments ul {
    list-style: none;
    padding: 0;
    /*display: flex;
    column-gap: 10px;*/
}

.event-attachments li {
    margin-bottom: 15px;
}

.event-attachments a {
    text-decoration: none;
    font-size: 18px;
}

/* Badge per lo stato */
.event-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
    color: #fff;
    margin-left: 5px;
}

.event-badge-upcoming {
    background-color: #347eb0;
}

.event-badge-ongoing {
    background-color: #28a745;
}

.event-badge-ended {
    background-color: #4d564f;
}

.event-badge-postponed {
    background-color: #ffc107;
}

.event-badge-canceled {
    background-color: #dc3545;
}

/* ---------------------------- */
/* RESPONSIVE BREAKPOINTS      */
/* ---------------------------- */

/* Tablet e sotto (<= 992px) */
@media (max-width: 992px) {

    .event-left,
    .event-right {
        margin-bottom: 30px;
    }
}

/* Mobile (<= 576px) */
@media (max-width: 576px) {
    .event-title {
        font-size: 1.5rem;
    }

    .event-icon {
        width: 18px;
        margin-right: 6px;
    }

    .event-location,
    .event-organizer,
    .event-dates,
    .event-status {
        font-size: 0.95rem;
    }

    .event-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .event-main-image {
        float: none;
    }
}

/****** Galleria ******/
.event-gallery {
    margin-top: 40px;
}

.event-gallery-grid {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.gallery-description {
    text-align: center;
    margin-bottom: 30px;
}

/* Desktop: 4 colonne fisse */
@media (min-width: 768px) {
    .event-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: 3 colonne */
@media (max-width: 767.98px) {
    .event-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 colonne */
@media (max-width: 576px) {
    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Immagini */
.event-gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.contact-section{
    background: linear-gradient(rgba(24, 58, 122, 0.85), rgba(24, 58, 122, 0.85)), url('/frontend/images/contact.jpg');
    background-position: center;
    background-size: cover;
    height:400px;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    margin-top:-400px
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

.contact-form-wrapper h2 {
    margin-bottom: 10px;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
}

.contact-form-wrapper p{
    width:60%;
    font-size: 20px;
    margin-left: 20%;
    text-align: center;
}

/*.contact-form-wrapper label{
    display: block;
    margin-bottom:4px;
}*/

.contact-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact-form .cols-2>* {
    flex: 1 1 50%;
}

.contact-form .form-input,
.contact-form .form-textarea {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

.contact-form .form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-submit {
    width: 100%;
    padding: 14px;
    background: #183A7A;
    border-radius:6px;
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.contact-form .form-submit:hover {
    background: #183A7A;
}

.contact-form label {
    display: flex;
    color: #818181;
    margin-bottom: 5px;
}
.form-checkbox {
    display: flex;
    align-items: baseline;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form .cols-2>* {
        flex: 1 1 100%;
    }
    
    .contact-form-wrapper {
        padding: 20px 6px;
    }
    
    .contact-content {
        display: block;
        padding:0 20px;
        margin-top: -360px;
    }
    
    .contact-form-wrapper p{
        width: 100%;
        margin:0px;
        padding:0 10px;
    }
    
    .contact-form{
        width: 100%;
        padding:0px;
        margin-top: 20px;
    }
}

/****** FORM ******/
/****** elements: form ******/
input[type=email], input[type=number], input[type=password], input[type=reset], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    display: block;
    width: 100%;
    padding: 1.1em 1.22em 0.9em;
    border: 1px solid #e0dede;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    font-size: 0.875em;
    line-height: 1.5;
    color: #999;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 20px;
}
.form-select .error {
    font-size: 14px;
    color: #c3173c;
}
.form-select .correct {
    font-size: 14px;
    color: #8ca123
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #c3173c !important;
}
.form-group.error .error {
    color: #c3173c !important;
    text-align: left;
    font-size: 16px;
}

/****** LOGIN ******/
.login-form {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 50px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.login-form .form-input {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

.login-form .form-submit {
    width: 100%;
    padding: 14px;
    background: #183A7A;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: block;
}

.login-form .form-submit:hover {
    background: #183A7A;
}

.private-content-message {
    background: #f0d8d8;
    padding: 5px 10px;
    border-left: 5px solid #cd5454;
    color: #333333;
}

/* blog */
.blog-post-archive {
    margin-top: 70px;
}
.blog-post-archive .breadcrumb a:hover, .breadcrumb li:last-child {
  color: var(--primary-color);
}
.breadcrumb li:not(:last-child):after {
  font-family: "Font Awesome 7 Pro";
}
.post{
    box-shadow: 0px 0px 20px -5px #00000033;
    margin-bottom: 20px;
    /*border-radius: 30px;*/
    /*border:1px solid #c9c9c9;*/
}
.breadcrumb-blog{
    padding-bottom:20px;
    padding-top:0px !important;
}

.post-wrapper, .post-search-key, .breadcrumb{
    padding-left: 20px;
    padding-right: 20px;
}

.post-classic .post-title, .post-classic .post-content{
    padding: 0px;
}

.post .post-title a{
    color: var(--primary-color);
    font-size: 36px;
}

.post .post-content{
    font-size: 22px;
    color: #343434;
}
.post-media {
    margin: 0;
}
.post-media, .post-media img {
    width: 100%;
}
.post-read-more {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    margin-top: 20px;
    display: block;
    width: fit-content;
}

.post-calendar{
    display: none;
}

.post-details .btn{
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 1em;
    border:0px;
}
.post-border .post-details {
    border: 0;
}

.tag{
    font-size: 16px;
    color: var(--primary-color);
}
.tag:hover{
    color: var(--secondary-color);
}

.social-links {
    padding: 10px 20px;
}
.social-links a {
    color: var(--primary-color);
}
.social-links a:hover {
    color: var(--secondary-color);
}

.post-category-tree-list a{
    font-size: 20px;
    font-weight: 300;
    color: var(--primary-color);
}
.post-category-tree-list a:hover {
    color: var(--primary-color);
}

.post-category-tree-list .dd-item::marker{
    color: #ffffff;
}

.post-classic .post-details{
    padding: 20px;
    font-size: 18px;
}

.widget-search input{
    padding: 1.1em 1.22em 0.9em
}

.post-post-grid .entry-title a{
    color: var(--primary-color);
    font-size: 26px;
}
.social-link:hover {
  color: var(--primary-color);
}

@media screen and (max-width: 550px) {
    .post-wrapper, .post-search-key, .breadcrumb{
        padding-left: 0px;
        padding-right: 0px;
    }

    .post .post-title a{
        font-size: 26px;
    }
    
    .post .post-content{
        font-size: 18px;
    }
    
    .tag{
        font-size: 14px;
    }
}

/****** CUSTOMER AREA ******/
.customer-area-form {
    max-width: 800px;
    text-align: left;
}
.customer-area-form .form-group {
    margin-bottom: 20px;
}
.customer-area-form .form-group input[type='date'] {
    width: 100%;
    height: 50px;
    border: 1px solid #e0dede;
}
.customer-area-form .form-submit {
    margin-top: 20px;
}

.customer-area-form label {
    margin-bottom: 5px;
    display: block;
}

/****** CALENDAR ******/
#calendar-event {
    background-color: #183A7A;
    color: var(--third-color);
    padding: 10px;
    border-radius: 10px;
}
.cp-calendar-prev-month {
    color: var(--third-color);
}

.cp-calendar-next-month {
    color: var(--third-color);
}

.cp-calendar-month,
.cp-month-day {
    font-weight: 400;
    font-family: "Judson", sans-serif;
}

.cp-calendar-month {
    font-size: 30px;
}

.cp-month-day.cp-prev-month,
.cp-month-day.cp-next-month {
    background-color: transparent;
    opacity: 0.7;
}

.cp-week-day.cp-week-end,
.cp-month-day.cp-week-end {
    color: #d77e1d;
}

.cp-month-day:not(.disabled):active,
.cp-month-day:not(.disabled):hover,
.cp-month-day.selected {
    background-color: transparent !important;
    color: var(--third-color) !important;
    border: 1px solid var(--third-color);
}

.cp-month-day.is-past {
    background-color: transparent !important;
    color: var(--third-color) !important;
    border: 1px solid var(--third-color);
    opacity: 0.7;
}
.flex {
    display: flex;
    justify-content: space-around;
}
.calendar {
    border-radius: 10px;
    background-color: white;
    border: 1px solid;
}

.week-day {
    font-weight: 600;
    text-align: center;
    min-width: 40px;
    color: #ffffff;
}

.week-day.week-end {
    font-weight: bold;
    color: #d32f2f;
}

.month-day.week-end {
    color: #d32f2f;
}

.weeks-days {
    border-bottom: 1px solid;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.calendar-header {
    display: table;
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
}

.calendar-prev-month {
    display: table-cell;
    width: 30px;
    font-size: 20px;
    cursor: pointer;
    color: #333333;
}

.calendar-next-month {
    display: table-cell;
    width: 30px;
    text-align: right;
    font-size: 20px;
    cursor: pointer;
    color: #333333;
}

.calendar-prev-month:hover,
.calendar-next-month:hover {
    opacity: 0.8;
}

.calendar-month {
    display: table-cell;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
}

.month-day {
    text-align: center;
    padding: 8px 0;
    min-width: 40px;
    color: #000000;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    position: relative;
    border: 1px solid transparent;
    margin: 6px 0px;
}
@media only screen and (max-width: 769px) {
    .col-o770-2.is-empty {
        display: none;
    }
}

@media only screen and (min-width: 770px) {
    .col-o770-2 {
        width: 50%;
        float: left;
    }
}

@media only screen and (min-width: 990px) {
    .col-o990-3 {
        width: 33.3333%;
        float: left;
    }
}

@media only screen and (max-width: 770px) {
    .col-u771-hidden {
        display: none;
    }
}

@media only screen and (max-width: 990px) {
    .col-u991-hidden {
        display: none;
    }
}

.availability-yes {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    bottom: 3px;
    left: calc(50% - 4px);
}

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: red;
    border-radius: 10px;
    font-size: 12px;
    padding-left: 5px;
    padding-right: 5px;
}

.badge:empty {
    display: none;
}

.calendar-prev-month {
    color: var(--third-color);
}

.calendar-next-month {
    color: var(--third-color);
}

.calendar-month,
.month-day {
    font-weight: 900;
    font-family: "Judson", sans-serif;
    color: var(--third-color);
    font-size: 20px;
}

.calendar-month {
    font-size: 30px;
}

.month-day.prev-month,
.month-day.next-month {
    background-color: transparent;
    opacity: 0.7;
}

.week-day.week-end,
.month-day.week-end {
    color: #d77e1d;
}

.month-day:not(.disabled):active,
.month-day:not(.disabled):hover,
.month-day.selected {
    background-color: transparent !important;
    color: var(--third-color) !important;
    border: 1px solid var(--third-color);
}

.month-day.is-past {
    background-color: transparent !important;
    color: var(--third-color) !important;
    border: 1px solid var(--third-color);
    opacity: 0.7;
}

/* CONTACT */
.contact-section {
    background-size: cover;
    background-position: center;
    /*background-color: #f5f5f5;*/
    padding: 200px 20px;
    position: relative;
    margin-bottom: 200px;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 30px 0;
    text-align: center;
}

.contact-form-float {
    margin-bottom: -250px;
    max-width: 600px;
}

.contact-form .form-input,
.contact-form .form-textarea {
    border-radius: 0 !important;
}

.contact-form h2 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    color: #39251B;
}

.contact-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact-form .cols-2>* {
    flex: 1 1 50%;
}

.contact-form .form-input,
.contact-form .form-textarea {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

.contact-form .form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-submit {
    width: 100%;
    padding: 14px;
    background: #183A7A;
    color: #fff;
    font-family: "Judson", sans-serif;
    font-size: 15px;
    border: none;
    cursor: pointer;
}

.contact-form .form-submit:hover {
    background: #183A7A;
}

.thankyou-message {
    text-align: center;
    margin: 50px;
}

.obligatory-field {
    text-align: left;
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
}
.social {
    margin-top: 1rem;
}

.social strong {
    display: block;
    margin-bottom: 0.3rem;
}

.social-icons a {
    display: inline-block;
    text-decoration: none;
    background-color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    transition: opacity 0.2s;
}

.social-icons a i {
    color: #183A7A;
    font-size: 18px;
    line-height: 40px;
}

.social-icons a:hover {
    opacity: 0.7;
}

.contact-info {
    background-color: #ffffff;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 16px;
}

.contact-info ul {
    list-style: none;
    padding-left: 0;
}

.contact-info ul li {
    line-height: 2;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-info ul li i {
    font-size: 16px;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    color: #183A7A;
}

.contact-info ul li a,
.contact-info ul li p,
.contact-info ul li span {
    margin: 0;
    line-height: 1.4;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form .cols-2>* {
        flex: 1 1 100%;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .contact-section {
        padding: 100px 20px;
    }
}

/* FOOTER */
.site-footer {
    background: #183A7A;
    color: #ffffff;
    font-size: 15px;
    padding: 20px;
}

.footer-top {
    padding: 20px 0 0 0;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /*gap: 40px;*/
}

/*.footer-col {
    width: 25%;
    padding: 0 15px;
    box-sizing: border-box;
    margin-bottom: 30px;
}*/

.footer-column.with-1-subcolumns{
    display: flex;
    /*gap: 100px;*/
    width: 15%;
    justify-content: center;
}
.footer-column.with-1-subcolumns:first-child {
    width: 20%;
}
.footer-column.with-1-subcolumns:nth-child(4) {
    width: 25%;
}
.footer-column.with-2-subcolumns{
    display: flex;
    gap: 100px;
}
.footer-subcolumn-item-icon-email {
    overflow-wrap: anywhere !important;
}

.site-footer a {
    color: inherit;
}
.footer-col p{
    margin-top:0px;
    margin-right: 10px;
}

.footer-logo {
    width: 240px;
    margin-bottom: 0px;
}
.footer-social {
    display: flex;
    margin-top: 30px;
    margin-bottom: 30px;
}

.footer-subcolumn-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 0;
}
.footer-subcolumn-item i {
    font-size: 16px;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    color: #ffffff;
}

.footer-subcolumn-item a,
.footer-subcolumn-item p,
.footer-subcolumn-item span {
    margin: 0;
    line-height: 1.4;
    display: inline-block;
    color: #ffffff;
    font-size: 15px;
}
.footer-subcolumn-item p {
    margin-top: 20px;
}

.footer-social p {
    margin-top: 0;
    font-weight: 600;
    margin-right: 5px;
}
.footer-subcolumn-item a {    
    margin-bottom: 0;
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
}
.footer-subcolumn-name {
    color: #ffffff;
}

.footer-subcolumn-item a:not(.footer-subcolumn-item-icon-text,.footer-subcolumn-item-icon-address) {
    display: block;
    float: left;
}

.footer-subcolumn-item a.footer-subcolumn-item-icon-address{
    font-size: 15px;
}

.footer-subcolumn-item a:hover {
    opacity: 0.8;
}

[class^="footer-subcolumn-item-icon-"]{
    position: relative;
    padding-left: 24px;
}

[class^="footer-subcolumn-item-icon-"] i{
    position: absolute;
    left:0px;
    top:2px;
}

.footer-social a {
    color: #ffffff;
    margin-right: 16px;
    transition: color 0.3s;
    display: inline !important;
    float: none !important;
}

.footer-social a i{
    font-size: 24px;
}

.footer-social a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 20px 20px;
}

.footer-bottom-boxed {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    border-top: 1px solid #ffffff;
}
.footer-bottom-content{
    max-width: 768px;
    margin: 0 auto;
}
.footer-bottom-boxed .footer-bottom-content div{
    float:left;
    margin-right:14px;
    font-size:15px;
    margin-top:8px;
    color: #ffffff;
}
.footer-bottom-boxed a {
    color: #ffffff;
    text-decoration: underline;
}

.iub__us-widget {
    display: none !important;
}

@media (max-width: 992px) {
    .footer-social {
        display: block;
        padding-left: 0;
    }
}

@media (min-width: 651px) and (max-width: 1200px) {
    .footer-column.with-1-subcolumns {
        width: 30%;
    }
    .site-footer {
    padding: 20px;
}
}
@media (max-width: 650px) {
    .footer-logo{
        width: 80%;        
        margin:0 10%;
    }
    .footer-bottom-boxed .footer-bottom-content div:first-child{
        float:none;
    }
    .footer-container{
        justify-content: unset;
        gap: unset;
        padding-top: 20px;
    }
    
    .footer-column.with-2-subcolumns, .footer-column.with-1-subcolumns{
        display: block;
        width: 100%;
    }
    
    .footer-column.with-2-subcolumns .footer-subcolumn, .footer-column.with-1-subcolumns .footer-subcolumn{
        width: 45%;
        margin:0px 2.5%;
        float: left;
        display: block;
    }
    
    .footer-column{
        margin-bottom: 30px;
    }
    
    .footer-column:not(.with-2-subcolumns), .footer-column:not(.with-1-subcolumns){
        width: 100% !important;
    }
    .footer-column:not(.with-2-subcolumns) .footer-subcolumn, .footer-column:not(.with-1-subcolumns) .footer-subcolumn{
        text-align: center;
    }
    .footer-column:not(.with-2-subcolumns) .footer-subcolumn .footer-subcolumn-item, .footer-column:not(.with-1-subcolumns) .footer-subcolumn .footer-subcolumn-item{
        justify-content: center;
    }
    .footer-column:not(.with-2-subcolumns) .footer-subcolumn {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
    .footer-social a{
        margin:0 8px;
    }    
}

@media (max-width: 576px) {
    .footer-col-big img{
        width: 70%;
    }
    .footer-col.footer-col-big {
        width: 100%;
        text-align: center;
    }

    .footer-col ul,
    .footer-col-right p,
    .footer-col-right a,
    .footer-social {
        /*justify-content: center;*/
        /*text-align: center;*/
    }

    .footer-social {
        display: block;
        padding-left: 0;
    }
    
    footer-social p{
        margin-bottom:0px;
    }

    .footer-col-item {
        display: block;
    }
}

@media (max-width: 485px) {
    .footer-bottom{
        padding-left:0px;
        padding-right: 0px;
        padding-top: 0px;
    }
    .footer-top{
        padding:0px;
    }
    .footer-col{
        margin-bottom:20px;
    }
    .footer-col *{
        font-size: 15px;
    }
    .footer-bottom-boxed .footer-bottom-content div{
        font-size:14px;
        margin-left:0px;
        margin-right:0px;
        padding:0 6px;
    }
}

.social {
    margin-top: 1rem;
}

.social strong {
    display: block;
    margin-bottom: 0.3rem;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icons a {
    display: inline-block;
    text-decoration: none;
    background-color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    transition: opacity 0.2s;
    margin-left: 10px;
}

.social-icons a:hover {
    opacity: 0.7;
}

.page-image {
    flex: 0 0 100%;
    height: 100%;
    position: relative;    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;    
}

.dynamic-page .page-image-overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background: linear-gradient(to top, #284A8A 0%, transparent 90%);
}

.dynamic-page .page-image-content{
    position: absolute;
    text-align: center;
    width: 800px;
    left: calc(50% - 400px);
    top: 36%;
    padding-top:2rem;    
}

.dynamic-page .page-image-title{
    font-weight: 400;
    font-size: 32px;
    margin-bottom: 20px;  
}

.dynamic-page .page-image-title:not(.has-subtitle){
    font-size: 40px;
}
.dynamic-page a {
    text-decoration: underline !important;
}

.page-image-title b{
    color: white;
}

.page-description{
    margin-top: 30px;
    margin-left: 40px;
    border-left:10px solid var(--primary-color);
    padding: 10px 16px;
    margin-bottom: 40px;    
}

.page-description p{
    margin-top:0px;
    margin-bottom:20px;
    font-size: 18px;
}

.page-description a{
    border: 0px;    
    background-color: #E6E6E6;
    color: #001341;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 400;
    text-align: center;
    float: left;
    margin-right: 20px;    
}

.page-description li {
    /*display: flex;*/
    margin-bottom: 10px;
}
.page-description li a {
    float: none !important;
}

.page-description td, .page-description th{
    padding: 10px;
    padding-bottom: 30px;
    padding-top: 0px;
    vertical-align: top;
}

.page-description td a{
    width:100%;
    float: none;
    display: block;
    text-align: left;
}

.page-description th{
    text-align: left;
    padding-bottom: 20px;
}

@media (max-width: 840px) {
    .dynamic-page .page-image-overlay{
        background: linear-gradient(to top, #284A8A 0%, transparent 100%);
    }
    
    .page-image {
        height: 200px;    
    }
    
    .page-image .page-image-content{
        width: 60%;
        left:20%;
        right:20%;
        top:20%;
        padding-left:10px;
        padding-right:10px;        
        padding-top: 30px;
    }
    
    .dynamic-page .page-image-title{
        font-weight: 400;
        font-size: 20px;
        margin-bottom: 20px;  
    }
    
    .dynamic-page .page-image-title:not(.has-subtitle){
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .page-description{
        padding:16px;
        margin-top: 20px;
        margin-left: 10px;
    }
    
    .page-description a{
        display: block;
        margin-right:10px;
        margin-left:10px;
        margin-bottom:20px;
        float: none;
    }
    .page-image .page-image-overlay{
        background: linear-gradient(to top, rgba(40,74,138,0.9) 0%, rgba(40,74,138,0.6) 60%, transparent 100%);
    }
    
    .page-image {
        height: 160px;    
    }
    
    .page-image .page-image-content{
        width: 100%;
        left:0px;
        top:30% !important;
        padding-left:10px;
        padding-right:10px;   
        padding-top: 10px;
    }
    
    .dynamic-page .page-image-title{
        font-weight: 400;
        font-size: 18px;
        margin-bottom: 20px;  
    }
    
    .dynamic-page .page-image-title:not(.has-subtitle){
        font-size: 26px;
    }
    
    .page-description thead{
        display: none;
    }
    .page-description table,
    .page-description tbody,
    .page-description tr,
    .page-description td {
        display: block;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-description td a{
        margin:0px;
    }
    
    .page-description tr {
        margin-bottom: 32px;
    }
    
    .page-description td {
        padding: 4px 0px;
        box-sizing: border-box;
        border: none;
    }
    
    .page-description tr td:nth-child(2) {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.member-box{
    display: flex;
    justify-content: center;
}

.member-box img{
    width: 100%;
    height: auto;
    display: block;
    border-top: 4px solid #183A7A;    
}

.member-box.evidence-member img{
    border-top: 6px solid #E2841A;
}

.member-header{
    padding-left: 12px;
    border-left: 4px solid #183A7A;  
    margin-top: 20px;    
}

.member-box:hover .member-header{
    opacity: 0.8;
}

.member-box.evidence-member .member-header{
    border-left: 6px solid #E2841A;    
}

.member-role{
    font-size: 14px;
    line-height: 14px;
    color: #71747F;
    text-transform: uppercase;
    padding-top:10px;
    margin:0px;
    margin-bottom: 4px;
}

.member-name{
    font-size: 24px;
    font-weight: bold;
    margin:0px;
    padding-bottom: 10px;
}
@media (min-width: 992px) {
    .col-lg-1-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}
@media (min-width: 470px) {
    .member-box img{
        max-width: 250px;
    }
}