/*
Theme Name: Fondazione Matteotti
Author: (rob.a) grafica | Web Solutions & graphic design
Author URI: robagrafica.com
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import "assets/css/custom_carousel.css";

:root {
    /* Font Family */

    /* Font Weight */
    --font_light: 300;
    --font_normal: 400;
    --font_medium: 500;
    --font_semibold: 600;
    --font_bold: 600;

    /* Colors */
        /** alpha colors % **/
        --a90: 'E6'; --a80: 'CC'; --a70: 'B3'; --a60: '99'; --a50: '80'; --a40: '66'; --a30: '4D'; --a20: '33'; --a10: '1A';

    --color_red: 193, 39, 45;
    --theme_primary_color: #000000;
    --theme_red: rgb(var(--color_red));
    --theme_light: #F2F2F2;
    --text_primary_color: #000000;
    --main_bg: var(--theme_primary_color);

    /* Header / footer heights */
    --header_height: 80px;

    --transition: all .3s;
    /*--container: 100%;*/
    --header_zindex: 100;
}


html, body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: var(--font_normal);
    font-style: normal;
    color: var(--text_primary_color);
}

a, img {
    transition: var(--transition);
}

a {
    color: inherit;
}

a:hover {
    color: var(--theme_red);
    text-decoration: none;
}
#page_content a{
    color: var(--theme_red);
    text-decoration: underline;
}

a.more_link {
    color: var(--theme_primary_color);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 90%;
    transition: var(--transition);
}

a.more_link.small {
    font-size: 70%;
}

a.more_link:hover {
    margin-left: 10px;
}
a[aria-expanded]{
    position: relative;
}
a[aria-expanded="false"]:not(.menu)::after{
    content: '\F128';
    font-family: bootstrap-icons !important;
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 1.4em;
}
a.collapse_close:not(.menu)::after, .elenco_fascicoli a[aria-expanded="true"]::after{
    content: '\F148';
    font-family: bootstrap-icons !important;
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 1.4em;
}

a.menu[aria-expanded="false"]::after{
    content: '\F479';
    font-family: bootstrap-icons !important;
    font-size: 1.4em;
}
a.menu[aria-expanded="true"]::after{
    content: '\F659';
    font-family: bootstrap-icons !important;
    font-size: 1.4em;
}
.main-content{
    margin-top: calc(var(--header_height) + 60px);
}
/*.wp_no_acf a, [id^="content_collapse"] a {*/
/*    color: var(--theme_primary_color);*/
/*}*/

/*.wp_no_acf a:hover, [id^="content_collapse"] a:hover {*/
/*    text-decoration: underline;*/
/*}*/

strong, b, .text_bold {
    font-weight: var(--font_bold);
}


h3, h4, h5, h6 {
    
}
h5{
    font-size: 1.2rem;
}

.tit_sezione {
    position: relative;
    font-weight: var(--font_bold);
    font-size: 1.3rem;
}
.tit_sezione.small, .txt_bigger{
    font-size: 1.1rem;
}

.tit_sezione a {
    text-decoration: none;
}

.tit_sezione.menu_cat {
    font-size: inherit;
    text-transform: none;
    font-weight: normal;
    padding-left: 20px;

}

.tit_sezione.menu_cat::before {
    background-color: var(--theme_primary_color);
    content: '';
    height: 2px;
    margin-left: -20px;
    width: 80px;
    transition: var(--transition);
}

.tit_sezione.menu_cat:hover::before, .tit_sezione.menu_cat.active::before {
    margin-left: -340px;
    width: 400px;
}

.subtitle{
    font-weight: var(--font_light);
}

/*----------------------
    Background color classes
----------------------*/
.bg_dark {
    background-color: var(--theme_red);
    color: #FFFFFF;
}

.bg_primary {
    background-color: var(--theme_primary_color);
    color: #FFFFFF;
}

.bg_primary a:hover {
    color: #FFFFFF;
    opacity: .6;
}

.bg_light {
    background-color: var(--theme_light);
}

.img_cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 30%);
}

/*----------------------
    BUTTONS
----------------------*/

.btn {
    border-radius: 0;
    text-decoration: none;
    /*padding: 12px 24px;*/
    text-transform: uppercase;
    font-size: .8rem;
    background-color: var(--theme_red);
    color: white;
    border-left: 2px solid white;
}
.btn:hover {
    background-color: rgba(var(--color_red), 0.8);
    color: white;
    border-left: 2px solid white;
}

.btn.btn_white{
    background-color: white;
    color: var(--theme_red);
    border-left: 2px solid var(--theme_red);
}

.btn.btn_white:hover {
    background-color: rgba(255,255,255, 0.8);
    color: var(--theme_red);
    border-left: 2px solid var(--theme_red);
}

.btn-group-sm>.btn, .btn-sm {
    padding: 0.15rem 0.5rem;
    font-size: .7rem;
}

.btn.btn-cta{
    font-weight: 700;
    position: relative;
    font-size: 1.5rem;
    text-align: left;
    text-transform: none !important;
}
.btn.btn-cta:after{
    content: '>';
    right: 20px;
    position: absolute;
    transition: var(--transition);
}
.btn.btn-cta:hover:after {
    right: 10px;
}

button:focus, .btn:focus {
    outline: none;
    box-shadow: none;
}

.btn.btn-outline {
    color: var(--text_primary_color);
    background-color: transparent;
    background-image: none;
    border: 1px solid var(--text_primary_color);
    font-weight: 400;
}

.btn.btn-outline-theme_primary {
    color: var(--theme_primary_color);
    background-color: transparent;
    background-image: none;
    border: 1px solid var(--theme_primary_color);
    font-weight: 400;
}

.btn.btn-outline-theme_primary:hover, .btn.btn-outline:hover {
    color: #FFFFFF;
    background-color: var(--theme_primary_color);
    background-image: none;
    border-color: #FFFFFF;
}


.btn.btn-outline-theme_negative {
    color: var(--theme_light);
    background-color: transparent;
    background-image: none;
    border: 1px solid var(--theme_light);
    font-weight: 400;
}

.btn.btn-outline-theme_negative:hover {
    color: var(--theme_primary_color);
    background-color: var(--theme_light);
    background-image: none;
    border-color: var(--theme_primary_color);
}

a.btn_red_arrow {
    color: var(--theme_primary_color);
    position: relative;
    display: block;
    font-size: 12px;
    font-weight: 400;
    text-transform: lowercase;
}

a.btn_red_arrow:hover {
    text-decoration: none;
}

a.btn_red_arrow.left:after {
    content: "\e87a";
    position: absolute;
    font-family: 'Linearicons-Free';
    margin-left: 15px;
    margin-top: -2px;
    transition: all .3s;
}

a.btn_red_arrow.left:hover:after {
    margin-left: 10px;
}

a.btn_red_arrow.right {
    margin-right: 30px;
}

a.btn_red_arrow.right:after {
    content: "\e87a";
    position: absolute;
    font-family: 'Linearicons-Free';
    right: -30px;
    top: -2px;
    transition: all .3s;
}

a.btn_red_arrow.right:hover:after {
    right: -25px;
}

a.btn_red_arrow.down:before {
    content: "\e878";
    position: absolute;
    font-family: 'Linearicons-Free';
    margin-left: -15px;
    margin-top: -1px;
    transition: all .3s;
}

a.btn_red_arrow.down:hover:before {
    margin-top: 5px;
}

a.btn_red_arrow.up:before {
    content: "\e877";
    position: absolute;
    font-family: 'Linearicons-Free';
    margin-left: -15px;
    margin-top: -1px;
    transition: all .3s;
}

a.btn_red_arrow.up:hover:before {
    margin-top: 5px;
}

a.btn_red_arrow.arrow_on_right.down, a.btn_red_arrow.arrow_on_right.up {
    margin-right: 20px;
    font-weight: 500;
}

a.btn_red_arrow.arrow_on_right.down:before, a.btn_red_arrow.arrow_on_right.up:before {
    margin-left: auto;
    right: -20px;
}


.btn-round {
    border-radius: 30px;
}

a.btn-theme-primary {
    background-color: var(--theme_primary_color);
    color: #FFFFFF;
    text-transform: uppercase;
    padding: 6px;
    font-size: 12px;
    text-align: center;
    transition: all .3s;
}

.btn-theme-primary:hover {
    text-decoration: none;
    color: var(--theme_primary_color);;
    background-color: #FFFFFF;
}

a.arrow-link {
    text-transform: uppercase;
    display: block;
    position: relative;
    padding-right: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font_medium);
}

a.arrow-link:after {
    content: '\f1df';
    font-family: 'Material Icons';
    position: absolute;
    right: 0;
}

/*----------------------
    MENU
----------------------*/

header ul.menu{
    margin-bottom: 0;
    padding: 0;
}


ul.menu, ul.sub-menu, ul.menu_mob {
    list-style: none;
}

ul.menu > li a{
    /*font-weight: var(--font_light);*/
    text-decoration: none;
    text-transform: uppercase;
    font-size: .85rem;
}

ul.menu > li {
    display: inline-block;
    margin-right: 20px;
}

ul.sub-menu li a{
    font-size: .7rem;
}
ul.sub-menu {
    margin-bottom: 10px;
    display: none;
    position: absolute;
    padding: 10px;
    background-color: var(--theme_light);
    border-left: 1px solid var(--theme_red);
}
ul.menu > li:hover ul.sub-menu {
    display: block;
}
ul.menu_mob >li{
    margin-bottom: 15px;
    text-transform: uppercase;
}
ul.menu_mob >li a{
    text-decoration: none;
}
ul.menu_mob >li .sub-menu{
    display: block;
    position: relative;
}

/*----------------------
    HEADER
----------------------*/
header{
    height: var(--header_height);
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    z-index: var(--header_zindex);
}
header.header_sticky .header_logo{
    max-width: 180px;
}

.site_search {
    border: none;
    background-color: transparent;
    padding: 6px 40px 6px 10px;
    width: 100%;
}

.site_search + button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    right: 10px;
    position: absolute;
    top: calc(50% - 10px);
}

/*----------------------
    breadcrumbs
----------------------*/
#breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumb {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
    background-color: #fff;
    border-radius: 0;
    font-size: 14px;
    
}
.breadcrumb a{
    text-decoration: none;
}

/*----------------------
    HOME PAGE
----------------------*/

#hp-slider {
    z-index: calc(var(--header_zindex) - 2);
    margin-top: -50px;
}

.hp_section_row > div{
    /*height: 460px;*/
    background-size: cover;
    background-position: center;
    background-color: rgba(var(--color_red), 0.2);
    background-blend-mode: overlay;
}
.hp_section_row .row{
    padding: 5rem 0;
}
/*
    Pagination
*/
.page-link {
    position: relative;
    display: block;
    padding: 0 .3rem;
    margin-left: 0;
    line-height: 20px;
    letter-spacing: 0.37px;
    color: inherit;
    background-color: transparent;
    border: none;
    font-size: 16px;
}

.page-item.disabled .page-link {
    box-sizing: border-box;
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 3px;
    text-align: center;
    padding: 0;
    background-color: transparent;
    color: #000000;
    font-weight: bold;
}

.page-link:focus {
    box-shadow: none;
}

.page-link:hover {
    color: var(--theme_primary_color);
    border: none;
    background-color: transparent;
}

.title_box_over {
    position: absolute;
    bottom: 0;
    background-color: rgba(var(--color_red),.5);
    width: 100%;
    padding: 3% 20px;
    color: white;
    min-height: 140px;
    transition: var(--transition);
}
.title_box_over h1{
    font-size: 1.6rem;
    font-weight: var(--font_bold);
}
/*.title_box_over:after {*/
/*    content: '>';*/
/*    right: 20px;*/
/*    position: absolute;*/
/*    transition: var(--transition);*/
/*}*/
a:hover .title_box_over {
    padding: 3% 40px;
}


/*----------------------
    ARCHIVE
----------------------*/


/*----------------------
    POST GRIDS
----------------------*/
.post_img_thumb{
    transition: var(--transition);
    background-color: var(--theme_red);
    overflow: hidden;
}
a:hover .post_img_thumb img{
    opacity: .5;
}

.post_elements, .fascicolo_list {
    position: relative;
    /*padding: 20px 0;*/
}

.post_elements a, a .post_elements {
    text-decoration: none;
}

.post_cat_name {
    /*text-transform: uppercase;*/
    font-size: 14px;
    /*position: absolute;*/
    /*top: 0;*/

}
.post_cat_name a{
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
    padding: 0 4px;
    border-left: 2px solid var(--theme_red);
}
.post_elements .post_elements {
    border-left: 4px solid var(--theme_red);
    padding-left: 10px;
    margin-top: 4px
}
.post_elements h5{
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 5px;
}

.post_elements .post_elements_bg {
    position: absolute;
    left: -20px;
    width: 35%;
    height: 100%;
    opacity: .2;
    top: 0;
    z-index: -1;
}

.post_elements .post_preview_txt .btn {
    font-size: small;
}

.post_elements.progetti .post_elements_bg {
    top: -35px;
    height: 120%;
    left: 0;
    opacity: .3;
    width: 45%;
}


/*----------------------
    SEARCH RESULTS
----------------------*/




/*----------------------
    Single post
----------------------*/

.img_single_post{
    max-height: 40vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/*----------------------
PAGE Archivi
----------------------*/


/*----------------------
    SINGLE PAGE
----------------------*/


/*----------------------
    LIGHTCASE
----------------------*/


/*----------------------
    EDITOR GENERICO
----------------------*/


/*
Carousel flickity
*/
.carousel_flick, .wp-block-gallery {
    padding: 3rem 40px;
}

.carousel_flick img, .wp-block-gallery img {
    max-height: 300px;
    margin-right: 20px;
    padding-right: 20px;
}

.wp-block-gallery img {
    margin-right: auto !important;
}

.wp-block-image {
    width: auto !important;
}

.wp-block-gallery.has-nested-images {
    display: block;
    flex-wrap: unset;
}

.flickity-button {
    position: absolute;
    background: transparent;
    border: none;
    color: var(--theme_primary_color);
    transition: var(--transition);
}

.flickity-button:hover {
    background: transparent;
    color: var(--text_primary_color);
    cursor: pointer;
}

/* position outside */
.flickity-prev-next-button.previous {
    left: -10px;
}

.flickity-prev-next-button.next {
    right: -10px;
}

/* hide disabled button */
/*.flickity-prev-next-button:disabled {*/
/*    display: none;*/
/*}*/

/*----------------------
    FOOTER
----------------------*/

footer {
    background-color: var(--theme_red);
    padding: 20px 0;
    color: white;
}

footer a:hover {
    color: var(--theme_light);
    text-decoration: underline;
}


ul#footer_menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul#footer_menu li{
    /*display: inline-block;*/
    margin-bottom: 6px;
}
/*ul#footer_menu li:not(:last-child):after{*/
/*    content: ' / ';*/
/*}*/

ul#footer_menu a {
    text-decoration: none;
}

ul.social_footer {
    padding-left: 0;
}
ul.social_footer li {
    display: inline-block;
    margin-right: 20px;
    font-size: xx-large;
}


/*----------------------
    FORM ELEMENTS
----------------------*/

select {
    width: 100%;
    border: none;
    padding: 6px;
}

input:focus-visible {
    outline: -webkit-focus-ring-color auto 0;
}

ul.dropdown-menu li {
    transition: var(--transition);
    cursor: pointer;
}

ul.dropdown-menu li:hover {
    opacity: .8;
}


/*----------------------
    Contact Form 7
----------------------*/
.wpcf7-spinner {
    position: absolute;
    right: 0;
    top: 60px;
    margin-right: calc(var(--bs-gutter-x) * .5);
}
