/*!
Theme Name: fondazione_cariplo
Theme URI: https://www.fondazionecariplo.it/
Author: Emanuele Widenhorn - GAG
Author URI: https://www.gag.it/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fondazione_cariplo
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

fondazione_cariplo is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: 700;
	color: var(--cariplo-light-blue);
}
.area-ambiente strong {
	color: #137965;
}
.area-arte-e-cultura strong {
	color: #BE5016;
}
.area-ricerca-scientifica strong {
	color: #6E4EBC;
}
.area-servizi-alla-persona strong {
	color: #910303;
}
.area-trasversale-e-sfide-di-mandato strong {
	color: #1C66BF;
}
.area-finanza-e-sostenibilita strong {
	color: #69710E;
}
.area-ambiente .corsivo, .area-ambiente em, .area-ambiente i {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	letter-spacing: -1px;
	color: #137965;
}
.area-arte-e-cultura .corsivo, .area-arte-e-cultura em, .area-arte-e-cultura i {
	color: #BE5016;
}
.area-ricerca-scientifica .corsivo, .area-ricerca-scientifica em, .area-ricerca-scientifica i {
	color: #6E4EBC;
}
.area-servizi-alla-persona .corsivo, .area-servizi-alla-persona em, .area-servizi-alla-persona i {
	color: #910303;
}
.area-trasversale-e-sfide-di-mandato .corsivo, .area-trasversale-e-sfide-di-mandato em, .area-trasversale-e-sfide-di-mandato i {
	color: #1C66BF;
}
.area-finanza-e-sostenibilita .corsivo, .area-finanza-e-sostenibilita em {
	color: #69710E;
}
/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}
u {
	text-decoration: underline;
}
em {
	font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: -1px;
    color: #0A66D6;
}
/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	letter-spacing: -1px;
}

h2 {
	font-size: 2.5rem;
	font-weight: 300;
}

h3 {
	font-size: 1.75rem;
	font-weight: 400;
	margin-bottom: 2rem;

}

h4 {
	font-weight: 700;
	margin-bottom: 1.5rem;
}

h5 {
	font-weight: 700;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li>ul,
li>ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
	border-collapse: separate!important;
    border-spacing: .625rem!important;
}
table thead {
	border: none;
}
table thead tr th {
	background: var(--cariplo-light-blue);
	color: #fff;
	border-radius: .375rem;
	padding: 1.25rem 0;
	text-align: center;
	font-weight: 500;
	border: none;
}
table tbody tr td, .wp-block-table td {
	background: #F3F8FF;
	color: var(--cariplo-blue);
	border-radius: .375rem;
	padding: 1.25rem 0;
	font-size: 1rem;
	text-align: center;
	font-weight: 500;
	border: none;
}
@media (max-width: 767px) {
    .wp-block-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; 
    }
    .wp-block-table table {
        min-width: 100%;
  		white-space: nowrap;
    }
}
.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

/* La tabella mantiene la sua larghezza naturale */
.wp-block-table table {
  width: auto;
  min-width: 100%;
}


@media (max-width: 767px) {
	.wp-block-table td,
	.wp-block-table th {
	white-space: normal;
	word-wrap: break-word;
	border: none;
	}

	/* Opzionale: indicatore visivo dello scroll */
	.wp-block-table {
	position: relative;
	}

	.wp-block-table::after {
	content: '→';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	padding: 0.5rem;
	background: rgba(0,0,0,0.05);
	border-radius: 3px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s;
	}

	.wp-block-table:not(.scrolled-right)::after {
	opacity: 1;
	}
  .wp-block-table td,
  .wp-block-table th {
    width: 170px; /* Valore ridotto per mobile */
  }

}
/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}


.updated:not(.published) {
	display: none;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery__item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

.allinea-centro img {
	display: block;
	margin: 0 auto;
}

.allinea-sinistra img {
	float: left
}

.allinea-destra img {
	float: right;
}

/**** SITE SPECIFIC ****/
:root {
	--cariplo-blue: #052E61;
	--cariplo-blue-card: #064086;
	--cariplo-light-blue: #0A66D6;
	--cariplo-medium-blue: #77B1F9;
	--cariplo-medium-light-blue: #E6F1FF;
	--cariplo-extralight-blue: #EDF5FF;
}

body {
	font-family: Inter;
	font-size: 1.25rem;
	/* letter-spacing: -1px; */
	line-height: 1.75rem;
	font-weight: 300;
	color: var(--cariplo-blue);
}

/**** BACKGROUNDS ****/
.back__blu {
	background-color: var(--cariplo-blue);
	color: white;
}

.back__light__blue {
	background: var(--cariplo-medium-light-blue);
}

/**** TEXT COLORS ****/
.text__blue__primary {
	color: var(--cariplo-blue);
}
.text__blu__medium {
	color: var(--cariplo-medium-blue)!important;
}

.text__light__blue {
	color: var(--cariplo-light-blue);
}

.text__blu__medark {
	color: var(--cariplo-light-blue) !important;
}

/**** TEXT DIMENSIONS ****/
.text__extra__small, .text-extra-small {
	font-size: .875rem;
	line-height: 1.125rem;
}
.text__extra__small a, .text-extra-small a {
	text-decoration: none;
}
.text__small, .text-small {
	font-size: .938rem;
	line-height: 1.2rem;
}
.text__medium {
	font-size: 1.125rem;
}
.title__big, .title-big {
	font-size: 3rem;
}
.title__sidebar {
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--cariplo-blue);
	letter-spacing: 1.5px;
}
.title__28400, .title-28400 {
	font-size: 1.75rem;
	letter-spacing: -1px;
	font-weight: 400;
	line-height: 2.625rem;
}
.title__60300, .title-60300 {
	font-size: 3.75rem!important;
	letter-spacing: -1px!important;
	font-weight: 300!important;
	line-height: 4.25rem!important;
}
.title__18400 {
	font-size: 1.125rem;
	line-height: 1.75rem;
}
/**** FONTS ****/
.corsivo {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	letter-spacing: -1px;
	color: #0A66D6;
}
.corsivo-small {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	letter-spacing: -1px;
	font-size: 2rem;
	line-height: 2.813rem;
	color: #0A66D6;
}
.font__light {
	font-weight: 300;
}

.font__regular {
	font-weight: 400;
}

.font__medium {
	font-weight: 500;
}
.font__semimedium {
	font-weight: 600;
}
.font__bold {
	font-weight: 700;
}

.font__black {
	font-weight: 900;
}

.strong {
	font-weight: 700;
}

.font-size-1 {
	font-size: 1rem;
}

/**** BUTTONS ****/
.btn__primary  {
	padding: .7rem 1.2rem;
	border-radius: 100px;
	background-color: var(--cariplo-blue);
	color: #fff;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 400;
	transition: all 0.3s ease-in-out;
	white-space: nowrap;
	display: inline-block;
	border: 1px solid transparent;
}
.btn__blue,
.wp-block-button__link {
	padding: .7rem 1.2rem;
	border-radius: 100px;
	background-color: var(--cariplo-blue);
	color: #fff;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 400;
	transition: all 0.3s ease-in-out;
	white-space: nowrap;
	display: inline-block;
	border: 1px solid transparent;
}

.btn__primary:hover,
.btn__blue:hover,
.wp-block-button__link:hover {
	background-color: var(--cariplo-light-blue);
	color: #fff;
	border: 1px solid transparent;
}

.btn__blue:after,
.wp-block-button__link:after {
	content: url('img/icon/icon__arrow__right__on.svg');
	display: inline-block;
	width: 10px;
	height: auto;
	margin-left: 1rem;
}

.btn__blue:hover:after,
.wp-block-button__link:hover:after {
	content: url('img/icon/icon__arrow__right__on.svg');
}

.btn__middle__blue {
	padding: .7rem 2rem;
	border-radius: 100px;
	background-color: var(--cariplo-light-blue);
	color: #fff;
	text-decoration: none;
	font-size: .875rem;
	font-weight: 600;
	transition: all 0.3s ease-in-out;
	white-space: nowrap;
	display: inline-block;
}

.btn__middle__blue:hover {
	background-color: #fff;
	color: var(--cariplo-light-blue);
}

.btn__white {
	padding: .7rem 2rem;
	border-radius: 100px;
	background-color: white;
	color: var(--cariplo-blue);
	text-decoration: none;
	font-size: 1rem;
	font-weight: 400;
	transition: all 0.3s ease-in-out;
	white-space: nowrap;
	display: inline-block;
}

.btn__white:hover {
	background-color: var(--cariplo-medium-blue);
	color: #064086;
}

.btn__white:after {
	content: url('img/icon/icon__arrow__right.svg');
	display: inline-block;
	width: 10px;
	height: auto;
	margin-left: 1rem;
}

/**** UTILITY ***/
.round-image {
	border-radius: 0 6.25rem 0 6.25rem;
	width: 100%;
	height: auto;
	object-fit: cover;
}
.originale img {
	min-height: auto!important;
}
.separator__block {
	position: relative;
}

.separator__block:after {
	content: '';
	height: 1px;
	width: 35px;
	background: var(--cariplo-blue);
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
	display: block;
}

.span__pillow {
	font-size: 1rem;
	font-weight: 700;
	color: var(--cariplo-light-blue);
	background: var(--cariplo-medium-light-blue);
	letter-spacing: 1.5px;
	text-transform: uppercase;
	border-radius: 100px;
	display: inline-block;
	padding: .5rem .8rem;
}

.span__pillow__partner {
	font-size: .875rem;
	color: #fff;
	border-radius: 100px;
	background: var(--cariplo-medium-light-blue);
	padding: .5rem 2rem;
	display: inline-block;
	margin-right: .625rem;
}

.partner__pillow a {
	font-weight: 600;
	font-size: 0.813rem;
	letter-spacing: 0;
	color: var(--cariplo-blue);
	text-decoration: none;
	text-transform: uppercase;
}
.pt__50 {
	padding-top: 3.125rem
}
.pt__60 {
	padding-top: 3.75rem
}

.pt__80 {
	padding-top: 5rem
}
.parallax-img {
	transition: transform 0.1s ease-out;
	will-change: transform;
}
.slider-image-container.no-overlay:before {
    content: none !important; 
}
.disabled__link > a{
  pointer-events: none; 
  cursor: default; 
}
/**** HEADER ****/
header.container {
	height: 105px;
}

.logo-section img {
	height: 60px;
	width: auto;
}

.nav-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 1400px;
	margin: 0 auto;
}

.icon__user {
	margin-left: 1rem;
}

/* Main Navigation */
.main-navigation {
	position: relative;
	z-index: 1000;
}

.menu-primary {
	display: flex;
	list-style: none;
	justify-content: center;
	align-items: center;
	padding: 0;
	margin: 0;
}

.menu-item {
	position: relative;
}

.menu-link {
	padding: .75rem 1.25rem;
	border: 1px solid var(--cariplo-blue);
	border-radius: 30px;
	background-color: #fff;
	color: var(--cariplo-blue);
	text-decoration: none;
	font-size: 1rem;
	font-weight: 400;
	transition: all 0.3s ease-in-out;
	white-space: nowrap;
	display: block;
	text-transform: uppercase;
}

.menu-link:hover {
	background-color: var(--cariplo-blue);
	color: #fff;
}

/* Megamenu Styles */
.megamenu {
	position: absolute;
	top: calc(100% + 17px);
	left: 50%;
	transform: translateX(-10%);
	width: 700px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	border-radius: 0 0 1.5rem 1.5rem;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	margin-top: 10px;
	border-top: 20px solid #DEE4EE;
	z-index: 999;
}

.menu-item.active .megamenu {
	opacity: 1;
	visibility: visible;
}

.menu-item.active .menu-link {
	background: var(--cariplo-blue);
	color: #fff;
}

.megamenu-container {
	display: flex;
	min-height: 400px;
}

/* Left Column - Menu Items */
.megamenu-column {
	flex: 1;
}

.left-column {
	border-right: 1px solid #e0e0e0;
}

.right-column {
	padding: 1.25rem 2.8rem 2rem 2.8rem;
	position: relative;
}

.submenu-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.submenu-item {
	margin-bottom: 5px;
}

.submenu-item a {
	display: block;
	padding: .8rem 1.9rem;
	text-decoration: none;
	color: var(--cariplo-blue);
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
}

.submenu-item a:hover,
.submenu-item.active a {
	background-color: #DEE4EE !important;
	color: var(--cariplo-light-blue) !important;
	padding-left: 20px;
	box-shadow: none !important;
}

/* Right Column - Content */
.default-content,
.third-level-content {
	opacity: 0;
	visibility: hidden;
	position: absolute;
	top: 0;
	left: 30px;
	right: 0;
	transition: all 0.3s ease;
}

.default-content.active,
.third-level-content.active {
	opacity: 1;
	visibility: visible;
	position: relative;
	left: 0;
}

/* Help Desk Box */
.help__desk__box {
	background-size: cover;
	background-position: center center;
	border-radius: 1.25rem;
	padding: 25px;
	color: #fff;
	min-height: 300px;
}

.help__text h3 {
	font-size: 1.125rem;
	color: var(--cariplo-blue);
	margin-bottom: 10px;
	font-weight: 600;
	text-align: center;
}

.help__text {
	margin-bottom: -80px;
	border-radius: 0 1.25rem;
	line-height: 1.125rem;
	padding: 1.25rem;
	font-size: .75rem;
	letter-spacing: 0;
	color: var(--cariplo-blue);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}
.menu-item.has-megamenu.active .help__text {
	pointer-events: all;
}
.help__text p {
	margin-bottom: 1rem;
}

/* Third Level List */
.third-level-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.third-level-list li {
	margin-bottom: 10px;
}

.third-level-list a {
	display: block;
	padding: 12px 20px;
	color: var(--cariplo-light-blue);
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 15px;
}

.third-level-list a:hover {
	color: var(--cariplo-blue);
	transform: translateX(5px);
}

/* Overlay for closing menu */
.megamenu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 998;
}

.megamenu-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.megamenu {
		width: 700px;
	}
}

@media (max-width: 768px) {
	.menu-primary {
		flex-wrap: wrap;
	}

	.megamenu {
		width: 90vw;
		max-width: 600px;
	}

	.megamenu-container {
		flex-direction: column;
		min-height: auto;
	}

	.left-column {
		border-right: none;
		border-bottom: 1px solid #e0e0e0;
		padding-right: 0;
		padding-bottom: 20px;
		margin-bottom: 20px;
	}

	.right-column {
		padding-left: 0;
	}
}

@media (max-width: 480px) {
	.menu-link {
		padding: 15px 20px;
		font-size: 12px;
	}

	.megamenu {
		width: 95vw;
	}

	.megamenu-container {
		padding: 20px;
	}
}

/* Animation classes */
.fade-in {
	animation: fadeIn 0.3s ease;
}

.fade-out {
	animation: fadeOut 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translateY(0);
	}

	to {
		opacity: 0;
		transform: translateY(-10px);
	}
}

/*******************************************/
.main__nav {
	padding: 0;
	margin: 0;
}

.main__nav>li {
	display: inline-block;
	list-style: none;
	margin-right: -4px;
}

.nav-wrapper>.menu-item:hover a {
	background-color: white;
	color: var(--cariplo-blue);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 61, 122, 0.2);
}

.area-riservata {
	padding: 12px 30px;
	border-radius: 30px;
	background-color: #0066cc;
	color: white;
	text-decoration: none;
	font-size: 16px;
	font-weight: 400;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.area-riservata:hover {
	background-color: #0052a3;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.lang-divider {
	color: #999;
	margin: 0 10px;
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 1rem;
}

.lang-switch a {
	color: var(--cariplo-blue);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.lang-switch a:hover {
	color: var(--cariplo-light-blue);
}

.menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: flex-end;
	flex-direction: column;
	gap: 5px;
	transition: transform 0.3s ease;
	margin-left: 10px;
	transition: all .2s ease-in-out;

}

.menu-toggle.active {
	transform: rotate(90deg);
	background: var(--cariplo-light-blue);
    border-radius: 100px;
}
.menu-toggle.active .menu-line {
	background-color: #fff;
}
.menu-line {
	width: 18px;
	height: 2.1px;
	background-color: var(--cariplo-blue);
	transition: all 0.3s ease;
}

.menu-line:nth-child(1),
.menu-line:nth-child(3) {
	width: 12px
}

.menu-toggle.active .menu-line:nth-child(1) {
	    transform: rotate(45deg) translate(12px, -2px);
    width: 20px;
}

.menu-toggle.active .menu-line:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
	transform: rotate(-45deg) translate(13px, 1px);
    width: 20px;
}

.secondary-menu {
	max-height: 0;
	max-width: 1320px;
	width: 100%;
	overflow: hidden;
	background-color: #f8f9fa;
	transition: max-height 0.5s ease, padding 0.5s ease;
	margin-top: 0;
	position: absolute;
	border-radius: 0 0 1.5rem 1.5rem;
	box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.4);
	z-index: 1000;
	left: 50%;
	transform: translateX(-50%);
}

.secondary-menu.active {
	max-height: 1500px;
}

.secondary-nav {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.secondary-nav a {
	padding: 12px 20px;
	background-color: white;
	border: 2px solid var(--cariplo-blue);
	border-radius: 8px;
	color: var(--cariplo-blue);
	text-decoration: none;
	transition: all 0.3s ease;
}

.secondary-nav a:hover {
	background-color: var(--cariplo-blue);
	color: white;
}

.right-section {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

@media (max-width: 1200px) {
	.main-nav {
		gap: 10px;
	}

	.nav-btn {
		padding: 10px 20px;
		font-size: 14px;
	}
}

@media (max-width: 992px) {
	.nav-wrapper {
		flex-wrap: wrap;
		gap: 20px;
	}

	.main-nav {
		order: 3;
		width: 100%;
		justify-content: center;
	}
}

/* ============================================================= */
/*  MENU A COLONNE – solo 1° e 2° livello                     */
/* ============================================================= */

.secondary-menu-content {
	background: #fff;
	/* o il tuo colore di sfondo */
	overflow: hidden;
	border-bottom: 10px solid #EFF1F7;
	outline: 1px solid #052E6180;
}

/* Contenitore Flex per le colonne */
#menu-menu-istituzionale {
	display: flex;
	flex-wrap: wrap;
	gap: 3rem 0;
	justify-content: flex-start;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* 2. Ogni colonna occupa 1/3 dello spazio */
#menu-menu-istituzionale>li {
	flex: 0 1 20%;
	/* 3 per riga */
	min-width: 220px;
	box-sizing: border-box;
	white-space: nowrap;
	border-right: 1px solid #EFF1F7;
}

/* Titolo principale della colonna */
#menu-menu-istituzionale>li>a {
	display: block;
	font-weight: 400;
	font-size: 1rem;
	color: var(--cariplo-blue);
	/* blu Cariplo – cambia se vuoi */
	text-decoration: none;
	background: #DEE4EE;
	padding: 12px 30px 12px 30px;
	text-transform: uppercase;
}

#menu-menu-istituzionale>li>a:hover {
	color: #0055d4;
}

/* Sottomenu di 2° livello */
#menu-menu-istituzionale>li>ul.sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Voce di 2° livello */
#menu-menu-istituzionale>li>ul.sub-menu>li {
	text-transform: initial;
	background: transparent;
	white-space: normal;
}

#menu-menu-istituzionale>li>ul.sub-menu>li>a {
	color: var(--cariplo-blue);
	text-decoration: none;
	font-size: 1rem;
	display: block;
	padding: 12px 30px 12px 30px;
}

#menu-menu-istituzionale>li>ul.sub-menu>li>a:hover {
	background: #EFF1F7;
	color: var(--cariplo-light-blue);
}

/* NASCONDI IL TERZO LIVELLO */
#menu-menu-istituzionale ul.sub-menu ul.sub-menu {
	display: none !important;
}

.submenu {
	margin-top: 1px;
	flex: 1 0 0%;

}

#menu-sub-footer-menu {
	margin: 0;
	padding: 0;
	display: flex;
}

#menu-sub-footer-menu li {
	list-style-type: none;
	display: inline-block;
	border-right: 1px solid #052E6180;
	flex: 1 1 auto !important;
}

#menu-sub-footer-menu li a {
	display: block;
	background: var(--cariplo-medium-light-blue);
	padding: .8rem 2rem;
	font-weight: 400;
	font-size: 1rem;
	color: var(--cariplo-blue);
	text-decoration: none;
}

/* ============================================================= */
/*  RESPONSIVE – mobile e tablet                              */
/* ============================================================= */
@media (max-width: 992px) {
	#menu-menu-istituzionale {
		gap: 2rem 2rem;
	}
}

@media (max-width: 600px) {
	#menu-menu-istituzionale {
		flex-direction: column;
	}

	#menu-menu-istituzionale>li {
		flex: 1 1 auto;
	}
}

/* 3. Su tablet: 2 per riga */
@media (max-width: 992px) {
	#menu-menu-istituzionale>li {
		flex: 0 1 calc(50% - 2rem);
		/* 2 per riga */
	}
}
#subfooter__menu__container {
	border-top: 1px solid var(--cariplo-blue);
	padding: 1.625rem 0;
}
#menu-footer-menu-servizi {
	flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.subfooter-menu ul {
	margin: 0;
	padding: 0;
}
.subfooter-menu ul li {
	flex: 1 0 0%;
	list-style-type: none;
	text-align: center;
}
.subfooter-menu ul li a {
	color: var(--cariplo-blue);
	font-size: .875rem;
	text-decoration: none;
}
/****** HEADERS ******/
#header {
	background-size: cover;
	background-position: center center;
	height: 354px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	border-radius: 0 0 1.5rem 1.8rem;
}

#header h1 {
	color: var(--cariplo-blue);
	font-size: 3.5rem;
	font-weight: 300;
	padding: 2.2rem 4.8rem 2.2rem 2.5rem;
	background: #fff;
	border-radius: 0 3.75rem 0 3.75rem;
	display: inline-block;
}

@media screen and (max-width: 767px) {
	#header h1 {
		font-size: 2.5rem;
		padding: 2.2rem 4.8rem 2.2rem 2.5rem;
	}
}
/***** PAGINATION ******/
.paginazione-wrapper {
    display: flex;
	background: var(--cariplo-extralight-blue);
    justify-content: center;
	border-radius: 1.25rem;
	padding: 1.25rem 2.5rem;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
}

.pagination-numbers {
    display: flex;
    gap: .5rem;
    align-items: center;
	font-weight: 400;
	font-size: 1rem;
}
.pagination-numbers a,
.pagination-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--cariplo-blue);
    font-weight: 500;
    transition: all 0.3s ease;
}
.pagination-numbers a {
    background-color: transparent;
}

.pagination-numbers a:hover {
    background-color: #f0f0f0;
}
.pagination-numbers span.current {
    background-color: var(--cariplo-light-blue);
    color: #ffffff;
}

.pagination-numbers a.multi-digit,
.pagination-numbers span.multi-digit {
    border-radius: 20px;
}

.pagination-numbers .dots {
    padding: 0 5px;
    color: var(--cariplo-blue);
    background: transparent !important;
}

.paginazione-wrapper > a,
.paginazione-wrapper > span {
    text-decoration: none;
    color: var(--cariplo-blue);
    font-weight: 300;
	font-size: 1rem;
    transition: color 0.3s ease;
}

.paginazione-wrapper > a:hover {
    color: var(--cariplo-light-blue)
}

.paginazione-wrapper > span {
    color: #ccc;
    cursor: not-allowed;
}
.next.page-numbers {
	margin-left: auto;
}
/***** BREADCRUMBS *****/
#breadcrumbs {
	padding: 1.25rem 0;
}

.breadcrumbs {
	font-size: .938rem;
}

.breadcrumbs ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs ol li {
	display: inline-block;
	color: var(--cariplo-blue);
}

.breadcrumbs ol li a {
	color: var(--cariplo-blue);
	text-decoration: none;
}

.breadcrumbs ol li .current {
	font-weight: 700;
}

.breadcrumb-separator {
	margin: 0 .35rem;
}
/******* HOMEPAGE *********/
#section__carousel {
	padding-bottom: 9rem;
}
.slide__image img {
	max-height: 600px;
	border-radius: 0 3.75rem;
	object-fit: cover;
	object-position: center center;
	width: 100%;
}
.slide__text {
	padding: 2rem 3.5rem;
}
#section__patrimonio {
	margin-top: 6rem;
}
.card__patrimonio {
	position: relative;
	border-radius: 0 2.5rem;
	overflow: hidden;
	background-repeat: no-repeat; 
	background-position:  center/center;
	background-size: cover;
}

.card__patrimonio .cards { 
	width: 100%;
    height: 440px; 
    position: relative;
    color: white;
    cursor: pointer;
}

.card__patrimonio .cards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #00121F;
	background: linear-gradient(180deg,rgba(0, 18, 31, 0) 0%, rgba(2, 27, 57, 1) 100%);
    transition: background-color 0.5s ease;
}
.card__patrimonio .cards::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: background-color 0.5s ease;
}
.card__patrimonio .card__content {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    padding: 0 25px;
    box-sizing: border-box;
    z-index: 3;
    transition: transform 0.5s ease;
}
.card__patrimonio .card__title {
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.75rem;
	letter-spacing: 1.54px;
	vertical-align: middle;
	text-transform: uppercase;
}
.card__patrimonio .card__description {
    font-size: 1rem;
	line-height: 1.25rem;
    margin-top: 10px;
    opacity: 0; 
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease 0.2s, max-height 0.3s ease; 
}
.card__patrimonio .btn__card__patrimonio {
	position: absolute;
	bottom: 20px;
	left: 20px;
	z-index: 100;
}
.card__patrimonio .cards:hover::before {
    background-color: transparent;
    opacity: 1; 
	z-index: 2;
}
.card__patrimonio .cards:hover::after {
    background-color: #0A66D6; 
    opacity: 1; 
	z-index: 2;
}
.card__patrimonio .card:hover .card__content {
    transform: translateY(-120px); 
    padding-top: 25px; 
}

.card__patrimonio .cards:hover .card__description {
    opacity: 1;
    max-height: 100px;
}
#section_sfide {
	margin-top: 8rem;
	margin-bottom: 6rem;
}
.section__introduction {
	margin-bottom: 2.5rem;
}
.card__tema__home img {
	border-radius: 1.5rem;
	margin-bottom: .625rem;
}
.card__tema__home h3 {
	color: var(--cariplo-blue);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.5rem;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
}
#section__slider__home {
	margin-top: 8rem;
}
#section__slider__home .slider-row {
  display: flex;
  flex-wrap: wrap;
  min-height: 570px;
}
#section__slider__home .slider-slides-container {
	height: 570px;
	overflow: hidden;
}
#section__slider__home .slider-tab {
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.875rem;
	letter-spacing: -0.92px;
	text-align: center;
	vertical-align: middle;
}
#section__progetti__bandi {
	margin-top: 7rem;
}
#section__progetti__bandi .cards__progetti__bandi {
	min-height: 570px;
	padding: 4.375rem 1.875rem 2rem 1.875rem;
	background-size: cover;
	background-position: center center;
	border-radius: 0 2.5rem;
	position: relative;
}
#section__progetti__bandi .cards__progetti__bandi:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
  	background: #00121F;
    background: linear-gradient(0deg, rgba(0, 18, 31, 0) 0%, rgba(1, 33, 72, .83) 100%);
	pointer-events: none;
	border-radius: 0 2.5rem;
}
#section__progetti__bandi .title__card {
	font-weight: 400;
	font-size: 2rem;
	line-height: 2.5rem;
	letter-spacing: -0.92px;
	color: #fff;
	display: block;
	margin-bottom: 2rem;
}
.text__container p {
	font-weight: 400;
	font-size: 1.25rem;
	line-height: 1.5rem;
	letter-spacing: -0.92px;
	color: #fff;
}
#section__news__home {
	margin-top: 7rem;
}
/****** INTRO ******/
#intro {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

/***** FULL IMAGES SECTION ****/
.full-width {
	width: calc(100vw - 15px);
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	/* Nota: Se il contenitore principale ha un padding,
       potrebbe essere necessario regolarlo, ad esempio: */
	/* margin-left: calc(-50vw + 50%); */
	/* margin-right: calc(-50vw + 50%); */
}

.full-width:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #082F7360;
	/* esempio di overlay */
	z-index: 1;
}

.full-width img {
	object-fit: cover;
	height: 600px;
	width: 100%;
	object-position: center center;
}

/******** FOOTER ******/
/* NEWSLETTER*/
#newsletter .container {
	border-radius: 100px 0 100px 0;
	padding: 3.75rem 7.5rem;
	margin-top: 3rem;
}

.logo__footer img {
	margin-bottom: 1.5rem;
}

.logo__footer p {
	font-size: .938rem;
	line-height: 1.5rem;
}

@media screen and (max-width: 767px) {
	#newsletter .container {
		padding: 3.75rem 2.5rem;
	}
}

/**** MENU FOOTER ****/
#menu-footer-riga-1,
#menu-menu-footer-2-riga {
	padding: 0;
	margin: 0;
}

#menu-footer-riga-1 {
	margin-bottom: 1rem;
}

#menu-footer-riga-1 li{
	display: block;
	list-style-type: none;
	margin: .5rem 0 1rem 0;
}
#menu-menu-footer-2-riga li {
	display: block;
	list-style-type: none;
	margin: .5rem 0 .7rem 0;
}
#menu-footer-riga-1 li a {
	font-weight: 400;
	color: var(--cariplo-blue);
	text-decoration: none;
}
#menu-menu-footer-2-riga li a {
	font-weight: 500;
	color: var(--cariplo-blue);
	text-decoration: none;
}
#menu-footer-riga-1 li a {
	font-size: 1rem;
}
#menu-menu-footer-2-riga li a {
	font-size: .813rem;
	background: var(--cariplo-medium-light-blue);
	border-radius: 100px;
	display: inline-block;
    padding: .4rem 1rem;
}

.social__icons ul {
	margin: 0;
	padding: 0;
}

.social__icons li {
	list-style: none;
	display: inline-block;
}
.social__icons li a {
	width: 35px;
	height: 35px;
	margin-left: 1rem;
	background-position: center center;
	background-size: cover;
	display: block;
}
.social__icons li:first-child a {
	margin-left: 0;
}
.icon__fb {
	background: url(img/icon/icon__fb.svg);
}
.icon__fb:hover {
	background: url(img/icon/icon__fb__on.svg);
}
.icon__link {
	background: url(img/icon/icon__linkedin.svg);
}
.icon__link:hover {
	background: url(img/icon/icon__linkedin__on.svg);
}
.icon__insta {
	background: url(img/icon/icon__instagram.svg);
}
.icon__insta:hover {
	background: url(img/icon/icon__instagram__on.svg);
}
.icon__yt {
	background: url(img/icon/icon__youtube.svg);
}
.icon__yt:hover {
	background: url(img/icon/icon__youtube__on.svg);
}
.icon__x {
	background: url(img/icon/icon__x.svg);
}
.icon__x:hover {
	background: url(img/icon/icon__x__on.svg);
}
/***** SECTIONS ****/
#section__staff,
#section__temi,
#section__progetti,
#section__bandi,
#section__download,
#progetti__list,
#ricerche__list,
#section__video,
#fondazioni__list {
	margin-bottom: 5rem;
}
#section__gallery {
	margin-bottom: 4.25rem;
}
/***** SELECT CUSTOM FILTRI ********/
.custom-select-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
}

.filtro-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: none;
}

.custom-select-trigger {
	background-color: #C5DEFC;
	color: #004085;
	padding: 1rem 1.5rem;
	border-radius: 50px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-width: 100%;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: background-color 0.2s;
	font-size: 1rem;
	font-weight: 500;
}

.custom-select-trigger:hover {
	background-color: #a7d0ff;
}

.arrow-icon {
	min-width: 25px;
	height: 25px;
	margin-left: 10px;
	border-radius: 50%;
	background-color: #004085;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s ease-in-out;
}

.custom-options {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	border: 1px solid #ccc;
	border-top: none;
	background-color: white;
	z-index: 10;
	max-height: 200px;
	overflow-y: auto;
	display: none;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	font-size: 1rem;
	margin-top: 20px;
}

.custom-option {
	padding: 10px 15px;
	cursor: pointer;
}

.custom-option:hover {
	background-color: #f0f0f0;
}

.custom-select-wrapper.open .custom-options {
	display: block;
}

.custom-select-wrapper.open .arrow-icon {
	transform: rotate(-180deg) translate(-2px, 0);
}

.btn__reset__filtri {
	border-radius: 50px;
	background: var(--cariplo-light-blue);
	color: #fff;
	font-size: 1rem;
	padding: 1.2rem 1.5rem;
}
.btn__cerca__bilanci {
    padding: 1.2rem 1.5rem;
}
/******** GUTENBERG BLOCK ************/
#primary .hero-container-block {
	border-radius: 2.5rem;
	padding-left: 2.5rem !important;
	padding-right: 2.5rem !important;
	margin-bottom: 5rem;
}

#primary .hero-text-column {
	align-self: center;
}

#primary .hero-container-block h2 {
	font-size: 3rem;
	font-weight: 300;
	margin-bottom: 1.5rem;
	letter-spacing: -1px;
}

#primary .hero-container-block h3 {
	font-size: 2rem;
	font-weight: 400;
	margin-bottom: 1.5rem;
	letter-spacing: -1px;
}

#primary .hero-container-block p {
	font-size: 1.25rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.hero-container-block .hero-image-default img {
	border-radius: 0 6.25rem 0 6.25rem;
	width: 100%;
	height: auto;
	object-fit: cover;
}
.hero-container-block .wp-block-image.img-originale-top img {
	border-radius: 0!important;
	width: auto!important;
	min-height: auto!important;
	object-fit: none!important;
	display: flex;
	align-items: flex-start;
}
.hero-container-block .wp-block-image.img-originale-middle img {
	border-radius: 0!important;
	width: auto!important;
	min-height: auto!important;
	object-fit: none!important;
	display: flex;
	align-items: center;
}
.hero-container-block .wp-block-image.img-originale-bottom img {
	border-radius: 0!important;
	width: auto!important;
	min-height: auto!important;
	object-fit: none!important;
	display: flex;
	align-items: flex-end;
}
.hero-container-block .wp-block-image.img-originale-top {
	display: flex;
	align-items: flex-start;
	height: 100%;
}
.hero-container-block .wp-block-image.img-originale-middle {
	display: flex;
	align-items: center;
	height: 100%;
}
.hero-container-block .wp-block-image.img-originale-bottom {
	display: flex;
	align-items: flex-end;
	height: 100%;
}
.img-originale-top .alignright img {
	margin-left: auto;
}
.img-originale-middle .alignright img {
	margin-left: auto;
}
.img-originale-bottom .alignright img {
	margin-left: auto;
}
.img-originale-top .aligncenter img {
	display: block;
	margin: auto;
}
.img-originale-middle .aligncenter img {
	display: block;
	margin: auto;
}
.img-originale-bottom .aligncenter img {
	display: block;
	margin: auto;
}
.hero-container-block  .hero-image-column figure {
	margin: 0;
}
.hero-container-block .wp-block-columns .hero-image-column:first-child .hero-image-default,
.hero-container-block  .wp-block-columns .hero-image-column:first-child figure  {
    width: 90%; 
    margin-left: 0;
    margin-right: auto;
}

.hero-container-block .wp-block-columns .hero-image-column:last-child .hero-image-default,
 .hero-container-block  .wp-block-columns .hero-image-column:last-child figure {
    width: 90%;
    margin-left: auto;
    margin-right: 0;
}
.hero-pad-left {
	padding: 0 0 0 40px;
}
.hero-pad-right {
	padding: 0 40px 0 0;
}
.center-divider:after {
    content: '';
    width: 13px;
    height: 13px;
    background: var(--cariplo-blue);
    position: absolute;
    left: -5px;
    top: 0;
    border-radius: 50%;
}
.hero-container-block  .hero-image-column img {
	border-radius: 0 6.25rem 0 6.25rem!important;
	width: 100%;
	height: auto;
	object-fit: cover;
	min-height: 500px;
}
.hero__border__right {
	position: relative;
}
.hero__border__right:after {
	content: '';
	position: absolute;
	right: 0;
	height: 100%;
	/* border-right: 3px solid var(--cariplo-blue); */
}
.hero__border__left {
	border-left: 3px solid var(--cariplo-blue);
}
@media screen and (max-width: 767px) {
	.hero-container-block .wp-block-columns .hero-image-column:first-child .hero-image-default,
	.hero-container-block  .wp-block-columns .hero-image-column:first-child figure  {
		width: 100%; 
	}
	.hero-container-block .wp-block-columns .hero-image-column:last-child .hero-image-default,
	.hero-container-block  .wp-block-columns .hero-image-column:last-child figure {
		width: 100%;
	}
}
/**GLLERY **/
.wp-block-gallery {
	padding: 3.5rem 0;
}
.wp-block-gallery.is-layout-flex {
    gap: 1rem!important; 
}
.wp-block-gallery .wp-block-image {
	border-radius: 10px;
	overflow: hidden;
}
.wp-block-gallery.is-layout-flex.columns-3 > .wp-block-image {
    width: calc((100% - 2rem) / 3)!important; 
}
/* Gallery Grid Layout - Versione Flessibile */
.custom__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 0 auto;
}

/* Stile base per gli item */
.custom__gallery .gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    background-color: #f0f0f0;
	max-height: 320px;
}

.custom__gallery .gallery__item a {
    display: block;
    width: 100%;
    height: 100%;
}

.custom__gallery .gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover effect */
.custom__gallery .gallery__item:hover img {
    transform: scale(1.05);
}

/* Layout specifico per numero di immagini */

/* 1 immagine: occupa tutto lo spazio */
.custom__gallery:has(.gallery__item:nth-child(1):last-child) {
    grid-template-columns: 1fr;
    max-width: 600px;
}

/* 2 immagini: affiancate */
.custom__gallery:has(.gallery__item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 immagini: tutte in una riga */
.custom__gallery:has(.gallery__item:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 immagini: griglia 2x2 */
.custom__gallery:has(.gallery__item:nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* 5 immagini: layout come nell'immagine (3 sopra, 1+2 sotto) */
.custom__gallery:has(.gallery__item:nth-child(5):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

.custom__gallery:has(.gallery__item:nth-child(5):last-child) .gallery__item:nth-child(5) {
    grid-column: 2 / 4;
}

/* 6+ immagini: griglia di 3 colonne */
.custom__gallery:has(.gallery__item:nth-child(6)) {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .custom__gallery,
    .custom__gallery:has(.gallery__item:nth-child(3):last-child),
    .custom__gallery:has(.gallery__item:nth-child(5):last-child),
    .custom__gallery:has(.gallery__item:nth-child(6)) {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Reset della quinta immagine su tablet */
    .custom__gallery:has(.gallery__item:nth-child(5):last-child) .gallery__item:nth-child(5) {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    .custom__gallery,
    .custom__gallery:has(.gallery__item:nth-child(2):last-child),
    .custom__gallery:has(.gallery__item:nth-child(3):last-child),
    .custom__gallery:has(.gallery__item:nth-child(4):last-child),
    .custom__gallery:has(.gallery__item:nth-child(5):last-child),
    .custom__gallery:has(.gallery__item:nth-child(6)) {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    /* Reset di tutte le colonne multiple su mobile */
    .custom__gallery .gallery__item {
        grid-column: 1 / 2 !important;
    }
}
/***** CARDS MOD 1 *****/
.card__mod__1 {
	background: var(--cariplo-extralight-blue);
	border-radius: 2.5rem;
	padding: 2.5rem;
}

.card__mod__1 h3 {
	font-size: 2rem;
}

/**** CARD MIRCO TEMA ****/
.card__tema__micro {
	background: var(--cariplo-medium-light-blue);
	padding: 1.50rem;
	border-radius: 1.5rem;
}

.card__tema__micro img {
	border-radius: 0 1.5rem;
}

.card__tema__micro h4 {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 1.54px;
	text-transform: uppercase;
	color: var(--cariplo-blue);
	margin-top: 1rem;
	margin-bottom: 0;
}
.card__tema__micro h4 a {
	color: var(--cariplo-blue);
	text-decoration: none;
}
/**** CARD AUTORE ****/
.card__autore__rel {
	border-radius: 0.75rem;
	background: var(--cariplo-medium-light-blue);
	padding: 1.50rem;
}
.card__autore__rel span {
	letter-spacing: 1.54px;
}
.card__autore__rel .name__contact {
	text-decoration: none;
	color: var(--cariplo-blue);
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	display: block;
}

.card__autore__rel .job__title {
	font-weight: 700;
	font-size: .875rem;
	letter-spacing: 1.54px;
	text-transform: uppercase;
	color: var(--cariplo-light-blue);
	display: block;
}

.card__autore__rel .mail__contact {
	font-size: .875rem;
	letter-spacing: 1.54px;
	color: var(--cariplo-light-blue);
}
.card__autore__rel .mail__contact__address a {
	font-size: 1rem;
	color: var(--cariplo-blue);
	text-decoration: none;
}
/***** CARD PERSONA *****/
#section__staff__image {
	background-position: center center;
	background-size: cover;
	height: 650px;
	margin-bottom: 5rem;
}
.card__persona .card__img img {
	max-height: 238px;
}
.card__persona .card__title {
	color: var(--cariplo-blue);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.75rem;
	letter-spacing: 1.54px;
	text-transform: uppercase;
	margin-bottom: .4rem;
}
/***** CARD TEMA FILTER ****/
.card__tema__filter .card__container {
	background: var(--cariplo-blue-card) url(img/img_card_tema.png) no-repeat center right;
	background-size: contain;
	min-height: 375px;
	border-radius: 3.75rem 0;
	padding: 3rem 2rem;
}

.card__tema__filter .card__container h3 {
	font-size: 1.5rem;
	letter-spacing: 1.5px;
	font-weight: 700;
	text-transform: uppercase;
}

.card__tema__filter .card__container h3 a {
	color: #fff;
}

.card__tema__filter .card__container .card__description {
	color: #fff;
	font-size: 1.25rem;
}

/**** CARD PROGETTO ****/
.card__progetto .card__image {
	margin-bottom: 1.25rem;
}

.card__progetto .card__image img {
	height: 340px;
	width: 100%;
	object-fit: cover;
	object-position: center center;
	border-radius: 0 6.25rem;
}

.card__progetto h3 {
	font-size: 1.625rem;
	padding: 1rem 0 0 0;
}

.card__progetto h3 a {
	color: var(--cariplo-blue);
	text-decoration: none;
}

/**** CARD RICERCHE ****/
.card__ricerche .card__image {
	margin-bottom: .5rem;
}

.card__ricerche .card__image img {
	height: 500px;
	width: 100%;
	object-fit: cover;
	object-position: center center;
	border-radius: 0 6.25rem;
}

.card__ricerche h3 {
	font-size: 1.625rem;
	padding: 1rem 0 1.5rem 0;
}

.card__ricerche h3 a {
	color: var(--cariplo-blue);
	text-decoration: none;
}
/**** CARD COMUNITA' ****/
.card__comunita {
	background: var(--cariplo-extralight-blue);
	border-radius: 2.5rem;
	padding: 3rem 2.5rem;
}
.card__comunita .card__image {
	margin-bottom: .5rem;
	height: 250px;
	background-color: #fff;
	border-radius: 0 3.75rem;
	padding: 0 1rem;
	margin-bottom: 2rem;
}

.card__comunita .card__image img {
	width: 100%;
	height: auto;
	max-height: 200px;
}

.card__comunita h3 {
	font-size: 1.75rem;
	line-height: 2.375rem;
}

.card__comunita h3 a {
	color: var(--cariplo-blue);
	text-decoration: none;
}
/***** CARD BANDI *****/
.card__bando {
	border: 1px solid var(--cariplo-light-blue);
	border-radius: 3.75rem 0;
	padding: 3rem;
}

.card__bando .status {
	font-weight: 700;
	color: var(--cariplo-light-blue);
	text-transform: uppercase;
}

.card__bando h3 {
	padding: 1rem 0 0 0;
}

.card__bando h3 a {
	font-size: 1.625rem;
	color: var(--cariplo-blue);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 4.825rem;
	overflow: hidden;
	text-decoration: none;
}
/***** CARD LANCI ****/
.card__lancio__container {
	font-size: 2rem;
	line-height: 2.813rem;
	background: var(--cariplo-extralight-blue);
	border-radius: 2.5rem;
	padding: 2.375rem 3.125rem;
}
/***** CARD DOCUMENTI ****/
.card__documento {
	background: var(--cariplo-medium-light-blue);
	border-radius: 1.5rem;
	padding: 1.4rem 1.50rem;
	min-height: 150px;
}

.card__documento h3 {
	font-size: 1.25rem;
	letter-spacing: 1.5px;
	font-weight: 700;
}

.card__documento h3 a {
	text-decoration: none;
	color: var(--cariplo-blue);
	text-transform: uppercase;
}

.card__documento .card__link__file,
.card__documento .card__link__site {
	font-size: 1.125rem;
	color: var(--cariplo-blue);
	font-weight: 500;
	text-decoration: none;
}

.card__documento .card__link__file:after {
	content: url(img/icon/icon__download.svg);
	display: inline-block;
	margin-left: 1rem;
	vertical-align: middle;
}

.card__documento .card__link__site:after {
	content: url(img/icon/icon__linkext.svg);
	display: inline-block;
	margin-left: 1rem;
	vertical-align: middle;
}
/**** CARD NEWS ****/
.card__news .card__image {
	margin-bottom: 1.25rem;
}
.card__news .card__date {
	margin: 1.25rem 0;
}
.card__news .card__image img {
	height: 340px;
	width: 100%;
	object-fit: cover;
	object-position: center center;
	border-radius: 0 3.75rem;
}

.card__news h3 {
	font-size: 1.625rem;
	letter-spacing: -1px;
}
.card__news .card__content p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card__news h3 a {
	color: var(--cariplo-blue);
	text-decoration: none;
}
/***** CARDS MOD 2 *****/
.card__mod__2 {
	background: var(--cariplo-extralight-blue);
	border-radius: 1.5rem;
	padding: .75rem;
}

.card__mod__2 h3 {
	font-size: 1.25rem;
	color: var(--cariplo-blue);
	font-weight: 700;
}

.card__mod__2 img {
	border-radius: .625rem;
	height: 200px;
	object-fit: cover;
	object-position: center center;
}

/**** CARD GROUP ****/
.card__pillow {
	font-size: .875rem;
	color: #fff;
	border-radius: 100px;
	background: var(--cariplo-light-blue);
	padding: .5rem 2rem;
	display: inline-block;
	margin-right: .625rem;
}
.card__pillow a {
	color: #fff;
	text-decoration: none;
}
.veditutti a {
	text-align: center;
	width: 100%;
	color: var(--cariplo-light-blue);
	font-size: 1.125rem;
	border: 1px solid var(--cariplo-light-blue);
	background: #fff;
}

.wp-block-button.veditutti {
	content: '';
	background: var(--cariplo-extralight-blue);
	width: 100%;
	border-radius: 1.25rem;
	padding: 1rem;
	margin-bottom: 5rem;
}

/**** SECTION IMAGE ****/
.overlay__image {
	background: var(--cariplo-blue);
	height: 100%;
	opacity: 60%;
}

/***** SINGLE GROUP *****/
/**** SECTION FILTERS ****/
#filters__header {
	background: var(--cariplo-medium-light-blue);
	border-radius: 40px;
	padding: 2.5rem;
	margin-bottom: 6rem;
}

/**** VIDEO BLOCK ****/
#section__video {
	padding: 3rem 0;
	background: var(--cariplo-extralight-blue);
}
.embed__container {
	position: relative;
	padding-bottom: 56.25%;
	overflow: hidden;
	max-width: 100%;
	height: auto;
}

.embed__container iframe,
.embed__container object,
.embed__container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
#section__video.full-width:before {
	background: transparent;
	position: static;
}
/***** DOWNLOAD ****/
.related-cards-block {
	margin-top: 4rem;
}