/* ==========================================================================
   Ettore Conte – grafica ripresa dal sito istituzionale (personal/stile/stile.css)
   ========================================================================== */

@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
	--ec-orange-top: #ff9c00;
	--ec-orange-bottom: #ff6100;
	--ec-menu-top: #f6f6f6;
	--ec-menu-bottom: #d5d5d5;
	--ec-blue: #23538f;
	--ec-link-blue: #007bff;
	--ec-footer: #454545;
}

body { width: 100%; margin: auto; color: #333; background-color: #fff; font-family: Roboto, arial, helvetica, sans-serif; font-size: .925rem; }
td, p { font-family: Roboto, arial, helvetica, sans-serif; font-size: .925rem; }
img { border: 0; }
a { color: #333; }
a:hover, a:active { color: #f00; }

.primopiano { transition: .2s ease-out; opacity: 1; }
.primopiano:hover { opacity: .8; }
.colore_container, .colore_colonna1, .colore_colonna2, .colore_colonna3, .colore_colonna_unica { background-color: #fff; }

.testo_grande { font-size: 1rem !important; }
.testo_standard { font-size: .925rem !important; }
.testo_medio { font-size: .85rem !important; }
.testo_piccolo { font-size: .775rem !important; }
.testo_molto_piccolo { font-size: .7rem !important; }
.testo_grigio { color: #a9a9a9; }
.testo_grigio_piccolo { color: #696969; font-size: .775rem; }
.vecchio_padding { padding: 12px 15px 0; }
.nuovo_padding { padding: 12px 0 0; }
.separazione { height: 40px; }
.width4 { width: 4%; }

/* Pulsanti */
.btn-search-color { background-color: #28a745; border-color: #28a745; color: #fff !important; }
.btn-search-color:hover { background-color: #218838; border-color: #1e7e34; }
.btn-custom-color { background-color: #808080; border-color: #808080; color: #fff !important; }
.btn-custom-color:hover { background-color: #5a6268; border-color: #545b62; }
.btn-login-color { background-color: #007bff; border-color: #007bff; color: #fff !important; }
.btn-login-color:hover { background-color: #0069d9; border-color: #0062cc; }

/* --------------------------------------------------------------------------
   Intestazione
   -------------------------------------------------------------------------- */
.sfondo_header {
	background-color: #1f3f86;
	background-image: linear-gradient(90deg, #152173 0%, #22508b 22%, #2b5d9a 48%, #5186bc 68%, #9cb1cc 82%, #2f3f8c 100%);
	background-position: center top;
	background-repeat: repeat-x;
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}
.sfondo_header a:hover { color: inherit; }
.display_table { display: none; }
.intestazione1 { font-weight: normal; font-size: 1rem; line-height: 2rem; color: #000; background: transparent; }
.intestazione2 { font-weight: normal; font-size: 1.25rem; line-height: 1.75rem; color: #000; background: transparent; }
.intestazione3 { font-size: .85rem; line-height: 1rem; color: #000; }
.pos-testo-x { text-align: center; }
.ec-logo { margin-left: 12px; margin-right: 12px; max-height: 120px; width: auto; }
.ec-header-mobile .intestazione1, .ec-header-mobile .intestazione2 { color: #fff; }

@media (min-width: 576px) {
	.display_table { display: table; }
	.intestazione1 { font-size: 1.5rem; line-height: 1.75rem; color: #fff; background: rgba(0,0,0,.2); }
	.intestazione2 { font-size: 2.25rem; line-height: 2.5rem; color: #fff; background: rgba(0,0,0,.2); }
	.pos-testo-x { text-align: left; }
}
@media (min-width: 768px) {
	.intestazione1, .intestazione2 { background: transparent; }
	.intestazione3 { color: #fff; background: rgba(0,0,0,.2); }
}
@media (min-width: 992px) {
	.intestazione3 { font-size: .925rem; line-height: 1.25rem; }
	.pos-testo-x { text-align: center; }
}

/* --------------------------------------------------------------------------
   Menù principale
   -------------------------------------------------------------------------- */
.navbar { padding: 2px 15px !important; }
.navbar-custom { background-color: var(--ec-blue) !important; }
.navbar-custom .navbar-nav .nav-link { color: #fff !important; }
@media (min-width: 768px) {
	.navbar-custom { background: linear-gradient(to bottom, var(--ec-menu-top) 0, var(--ec-menu-bottom) 46px) var(--ec-menu-bottom) !important; }
	.navbar-custom .navbar-nav .nav-link { color: #000 !important; }
}
.navbar-custom .nav-item.active > .nav-link,
.navbar-custom .nav-item.current-menu-item > .nav-link,
.navbar-custom .nav-item:hover > .nav-link { color: #333 !important; background-color: #fff !important; }
.custom-toggler.navbar-toggler { border-color: rgba(255,255,255,.7); }
.custom-toggler .navbar-toggler-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E"); }
.btco-hover-menu a { padding: 10px 15px; font-size: .925rem !important; }
.btco-hover-menu { background: none; margin: 0; padding: 0; min-height: 20px; }
.dropdown-menu { padding: 0; margin: 0; border-radius: 0; border: 1px solid rgba(0,0,0,.15) !important; background-color: #f5f5f5 !important; box-shadow: none !important; }
.dropdown-item { white-space: normal; }
.navbar .dropdown-menu > li > a:hover, .navbar .dropdown-menu > li > a:focus { background: #fff; }
@media only screen and (min-width: 768px) {
	.btco-hover-menu .collapse ul li { position: relative; }
	.btco-hover-menu .collapse ul li:hover > ul { display: block; }
	.btco-hover-menu .collapse ul ul { position: absolute; top: 100%; left: 0; min-width: 250px; display: none; }
	.btco-hover-menu .collapse ul ul ul { top: 0; left: 100%; }
}

/* --------------------------------------------------------------------------
   Colonne e intestazioni dei box
   -------------------------------------------------------------------------- */
.padding_esterno_colonna1, .padding_esterno_colonna2, .padding_esterno_colonna3 { padding: 0 15px !important; }
@media (min-width: 768px) {
	.padding_esterno_colonna1, .padding_esterno_colonna2 { padding: 0 0 0 15px !important; }
	.padding_esterno_colonna3 { padding: 0 15px 0 3% !important; }
}
@media (min-width: 992px) {
	.padding_esterno_colonna1 { padding: 0 3% 0 15px !important; }
	.padding_esterno_colonna2 { padding: 0 !important; }
	.padding_esterno_colonna3 { padding: 0 15px 0 3% !important; }
}
@media (min-width: 1200px) {
	.padding_esterno_colonna1 { padding: 0 3% 0 0 !important; }
	.padding_esterno_colonna3 { padding: 0 0 0 3% !important; }
}

.header_table1, .header_table2, .header_table3, .header_table_unica {
	padding: 3px 15px;
	color: #fff;
	background: linear-gradient(to bottom, var(--ec-orange-top) 0, var(--ec-orange-bottom) 40px) var(--ec-orange-bottom);
	font-size: .925rem;
	font-weight: normal;
	margin: 0;
}
.header_table_unica { text-align: center; }
.header_table1 a, .header_table2 a, .header_table3 a, .header_table_unica a { color: #fff; text-decoration: none; }
.header_table1 a:hover, .header_table2 a:hover, .header_table3 a:hover, .header_table_unica a:hover { color: #dcdcdc; }

/* Menù laterali */
.list-group-item.menu2 { margin-bottom: 0; border-width: 0 0 1px; border-style: solid; border-color: #ccc; border-radius: 0 !important; }
.p_level1, .p_level1_img { padding: .5rem .75rem !important; }
.p_level2 { padding: .5rem .75rem .5rem 2rem !important; }
.p_level3 { padding: .5rem .75rem .5rem 3rem !important; }
.icona1 { color: #c0c0c0; font-size: .85rem; padding-right: .5rem !important; }
.icona2 { color: #808080; font-size: .85rem; padding-right: .5rem !important; }
.list-group-item.menu2.active, .list-group-item.menu2.current { color: #333; background: #f5f5f5; }

/* --------------------------------------------------------------------------
   Card delle notizie
   -------------------------------------------------------------------------- */
.card_immagine, .card_immagine_circolare { overflow: visible; height: auto !important; object-fit: cover; }
.card_titolo, .card_testo, .card_testo_piccolo { height: auto; overflow: visible; }
.ec-card-placeholder { display: flex; align-items: center; justify-content: center; background: #f0f0f0; color: #c0c0c0; font-size: 3rem; }
@media (min-width: 576px) {
	.card_immagine, .card_immagine_circolare { overflow: hidden; min-height: 180px !important; max-height: 180px !important; }
}
@media (min-width: 768px) {
	.card_immagine { min-height: 160px !important; max-height: 160px !important; }
	.card_immagine_circolare { min-height: 160px !important; max-height: 160px !important; }
	.card_titolo { margin-top: -10px; height: 65px; overflow: hidden; }
	.card_testo { height: 110px; overflow: hidden; }
	.card_testo_piccolo { height: 72px; overflow: hidden; }
}
@media (min-width: 992px) {
	.card_immagine { min-height: 115px !important; max-height: 115px !important; }
}
@media (min-width: 1441px) {
	.card_immagine { min-height: 150px !important; max-height: 150px !important; }
	.card_immagine_circolare { min-height: 240px !important; max-height: 240px !important; }
}
.card-img-top { width: 100%; }
.colore1_titolo_top_news { font-size: 1.25rem; color: #ff9900; text-decoration: none; }
.colore1_titolo_top_news:hover { color: #0060c8; text-decoration: none; }
.colore2_titolo_top_news { font-size: 1.25rem; color: #007bff; text-decoration: none; }
.colore2_titolo_top_news:hover { color: #ff9900; text-decoration: none; }
.box_fixed_custom { position: absolute; top: 10px; right: 10px; padding: 3px 7px; color: #fff; background-color: #000; }
.box_fixed_custom2 { position: absolute; top: 10px; right: 10px; padding: 3px 7px; color: #000; background-color: #dcdcdc; }

/* Elenchi articoli */
a.articoli_titolo { color: #007bff; text-decoration: none; }
a.articoli_titolo:hover { color: #0060c8; text-decoration: underline; }
a.articoli_titolo_new { color: #007bff; font-size: 1.25rem; line-height: 2.5rem; text-decoration: none; }
a.articoli_titolo_new:hover { color: #0060c8; text-decoration: underline; }
a.piccolo { color: #333; font-size: .775rem; }
a.piccolo:hover { color: #f00; }
.ec-list-icon { font-size: 1.75rem; color: #808080; }
.ec-list-icon.blu { color: #007bff; }
.ec-list-sep { border-top: 1px solid #c0c0c0; }

/* Contenuto */
.ec-content { padding: 12px 15px; }
.ec-content img { max-width: 100%; height: auto; }
.ec-content table { max-width: 100%; }
.ec-content .wp-block-table table, .ec-content table.ec-table { width: 100%; border-collapse: collapse; }
.ec-content table.ec-table td, .ec-content table.ec-table th { border: 1px solid #dee2e6; padding: 4px 6px; }
.ec-content h2 { font-size: 1.25rem; margin-top: 1rem; }
.ec-content h3 { font-size: 1.1rem; }
blockquote { font-style: italic; padding: 1px 8px 1px 20px; border-left: 5px solid #ccc; }
.alignleft { float: left; margin: 0 15px 10px 0; }
.alignright { float: right; margin: 0 0 10px 15px; }
.aligncenter { display: block; margin: 0 auto 10px; }
.wp-caption-text { font-size: .775rem; color: #696969; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Percorso di navigazione */
.container_breadcrumb { min-height: 42px; background-color: #fff; }
.breadcrumb { padding: 8px 15px; margin-bottom: 1px; color: #333; background-color: #fff; font-size: 1rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: #333; }
.breadcrumb li a { color: #666; text-decoration: none; }
.breadcrumb > .active { color: #999; }
@media (min-width: 1200px) { .breadcrumb { padding-left: 0; } }

/* Area riservata */
.ec-login-wrap { padding: 30px 0 40px; }
.ec-login-card { max-width: 550px; margin: 0 auto; padding: 25px; border: 1px solid #ccc; border-radius: 3px; background: #fff; }
.ec-login-card label { font-size: 1rem; }
.ec-login-card .form-control-lg { font-size: 1.1rem; }
.ec-login-card a { color: #333; text-decoration: none; }
.ec-login-card a:hover { color: #f00; }
.ec-login-card .btn { color: #fff !important; }

/* Paginazione */
.page-item.active .page-link { color: #fff; background-color: #808080; border-color: #808080; }
.page-link, .page-link:hover { color: #333; }
.table-hover tbody tr:hover { background: #dff4ff; }

/* Calendario riunioni */
table.calendar { background-color: #fff; border: 1px solid #696969; }
td.calendarpiccola { padding: 4px; border: 1px solid #c0c0c0; font-size: 7.5pt; font-family: verdana, arial, helvetica, sans-serif; text-align: center; }
td.calendarpiccola.oggi { background: #ffe8c2; font-weight: bold; }
td.calendarpiccola.evento a { display: block; color: #fff; background: #ff7800; text-decoration: none; border-radius: 2px; }
a.calendario2 { color: #fff; font-size: .7rem; text-decoration: none; }
a.calendario2:hover { color: #dcdcdc; }

/* Widget */
.widget { margin-bottom: 1.25rem; }
.widget ul { padding-left: 1.25rem; margin-bottom: 0; }
.widget .vecchio_padding > :last-child { margin-bottom: 0; }

/* Footer */
.footer-custom { padding: 20px 5px; background-color: var(--ec-footer); color: #f5f5f5; line-height: 1.75rem; }
.footer-custom a, a.footer-custom-link { color: #fff; }
.footer-custom p { font-size: inherit; margin: 0; }
.ec-credits { background: #333; color: #bbb; font-size: .7rem; padding: 6px 15px; }
.ec-credits a { color: #ddd; }

/* Torna su */
#tornasu { display: none; position: fixed; width: 40px; height: 40px; bottom: 31px; right: 15px; cursor: pointer; background-color: rgba(0,0,0,.3); border-radius: 2px; font-size: 18px; line-height: 40px; text-align: center; color: #fff; z-index: 2000 !important; border: 0; }
#tornasu:hover { background-color: rgba(0,0,0,.8); }

/* Banner cookie */
#cookieChoiceInfo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000; padding: 8px 15px; font-size: .775rem; line-height: 1.5rem; color: #fff; background-color: #2d2d2d; text-align: center; }
#cookieChoiceInfo a, #cookieChoiceInfo button { display: inline-block; margin: 2px 4px; padding: 3px 12px; border: 0; border-radius: 5px; color: #fff; text-decoration: none; white-space: nowrap; font-size: .775rem; }
#cookieChoiceLink { background-color: #007bff; }
#cookieChoiceDismiss { background-color: #28a745; }
#cookieChoiceRifiuto { background-color: #808080; }

/* Accesso rapido (salta ai contenuti) */
.ec-skip a { position: absolute; left: -9999px; }
.ec-skip a:focus { left: 10px; top: 10px; z-index: 5000; background: #fff; padding: 6px 10px; }

@media print {
	.noprint, header nav, .padding_esterno_colonna1, .padding_esterno_colonna3, footer, #cookieChoiceInfo, #tornasu { display: none !important; }
}
