/*
Theme Name:     Panizzi 19 (Ita WP)
Theme URI:
Description:    Italiawp child theme.
Template:       italiawp
Version:        0.1.0
*/


a {
  color: #b61714;
}

h1 > a, h2 > a, h3 > a, h4 > a,
h1 > a:visited, h2 > a:visited, h3 > a:visited, h4 > a:visited {
  color: inherit;
}

.Header-titleLink {
  color: #fff;
}


/* testata (e menù) */
header.Headroom--fixed {
  z-index: 99999!important;
}


.Header-banner .Header-languages {
  display: flex;
  align-items: center;
  text-align: right;
  min-height: auto!important;
  margin-left: 1em;
}
.Header-banner .top-aux > li {
  display: inline-block;
  font-size: .75em;
}
.top-aux > li + li {
  margin-left: .75em;
}
.top-aux a {
  color: #fff;
  text-decoration: none;
}
.Header-owner.Headroom-hideme {
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}


/* menù Hero */

.Hero.site-header {
    position: relative;
}
.nav-hero {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15%;
    text-align: center;
}
.home-hero ul {
    list-style: none;
    margin: auto;
    margin-top: 250px;
    padding: .5em .75em;
    background: rgba(255,255,255,.5);
    display: inline-block;
    font-weight: 600;
    letter-spacing: .05em;
    font-size: 2.1rem;
}
.home-hero ul li {
    display: inline-block;
    margin: .1em 0;
}
.home-hero ul li a {
    display: inline-block;
    padding: 1em;
    background: #fff;
    text-transform: uppercase;
}



/* sottotitolo logo visibile */
.Headroom--pinned.Headroom--not-top .Header-titleLink small,
.Headroom--fixed.Headroom--not-top .Header-titleLink small {
    display: inline-block!important;
}

.menu-item > a > .box-servizi {
    height: 100%;
    font-size: 1.1em!important;
    line-height: 1.15;
    padding: 1em;
}
.menu-item > a > .box-servizi > img {
    font-size: inherit!important;
    width: calc(100% + 2em)!important;
    margin: -1em -1em .7em !important;
    display: block;
    max-width: none;
}
.fascia-servizi > li {
    margin-bottom: 1em;
}

/* eventi HP */
.event-categories a {
    color: rgb(90,103,114);
    text-decoration: none;
}



/* widget calendari */
.eo-widget-cal-wrap table {
  border-collapse: collapse;
  max-width: 100%;
  width: 100%;
  font-size: 1.8rem;
}
.eo-widget-cal-wrap caption {
  padding: .5em 0 10px;
}
#wp-calendar thead th {
  color: #666;
  font-size: .9em;
  font-weight: 700;
  line-height: 1;
}
.eo-widget-cal-wrap tfoot a {
  display: block;
  width: 100%;
  line-height: 1;
  padding: 5px;
}


/* override */
/* colori testo mal gestiti dal tema */ /* ?! */
.Prose,
.Prose>ol>li,
.Prose>p,
.Prose>ul>li {
  color: inherit;
}
.Prose>a,
.Prose p>a,
.Prose>p>a:visited {
  color: #b61714;
}
.Prose > p > a:hover {
  color: #8a110f;
}

/* larghezza max testi troppo restrittiva */
.u-layout-prose {
  max-width: 72ch!important;
}

/* Gallery */
.photogallery-picture {
  background-color: #eee;
}

/*immagine in evidenza */
.u-sizeFull img {
  /* display: none; */
}

/* Mappa in header su venue */
#eo_venue_map-1 {
  display: none;
}

/* Scrolling (fixed header) */
html, body {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
.Accordion-header {
  scroll-margin-top: 100px;
}


.fr-accordion__panel > p {
  margin: 1em 0;
}

/* Sez. "Links" in home */
.menu--home-links > li {

}
.menu--home-links > li > a {
  text-decoration: none;
  border-top: 1px solid #ddd;
  display: block;
  flex: auto;
}


/* Slider news "in evidenza" in home */
.news-highlight .owl-dots {
  text-align: center;
  margin: 15px 0 30px!important;
}
.news-highlight .owl-dot {
  margin: 0 8px;
}
.news-highlight .owl-dot > span {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #fff;
  content: '';
  border: 1px solid rgba(0,0,0,.7);
  border-radius: 24px;
  opacity: .7;
}
.news-highlight .owl-dot.active > span {
  opacity: 1;
}


/* Niente icona link esterno */
a.external-link.external-link:after {
	content: none;
}

h2.u-text-r-l > span {
	font-size: inherit;
}


/* Footer */
.Footer-logo {
	max-height: 80px;
}

.loghi-footer {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 1em;
}
.loghi-footer a {
	text-decoration: none;
}


/* Nav. pag. archivi */
.Grid > nav {
	flex-basis: 100%;
	margin: 1.5em 1em;
}

/* Corr. Gutemberg */

.wp-block-cover.alignwide,
.wp-block-cover.alignfull {
	width: auto;
}

.u-layout-r-withGutter {
	--u-gutter-padding: 1.2rem;
}
.u-layout-wide .alignwide > .wp-block-cover__inner-container,
.u-layout-wide .alignfull > .wp-block-cover__inner-container {
	max-width: 144rem;
	padding-left: calc(var(--u-gutter-padding, 0) + 1em);
	padding-right: calc(var(--u-gutter-padding, 0) + 1em);
	/* --total-side-padding:
	calc( 2 * calc( 1em + var(--u-gutter-padding, 0) ) ); */
	/* max-width: calc( 144rem - var(--total-side-padding) ); */
}
@media screen and ( min-width: 1366px ) {
	.u-layout-r-withGutter {
		--u-gutter-padding: 10.4rem;
	}
}
@media screen and ( min-width: 992px ) and ( max-width: 1365px ) {
	.u-layout-r-withGutter {
		--u-gutter-padding: 2rem;
	}
}
.wp-block-cover.alignwide + p,
.wp-block-cover.alignfull + p {
	padding-left: 1em;
	padding-right: 1em;
}


/* Avviso HP */
.section.hp-alert {
	background: #ffff11;
	padding-top: 1em;
	padding-bottom: 1em;
	font-size: .95em;
	text-align: center;
}
.hp-alert__title {
	font-size: 1.2em;
	margin: 0 0 .2em;
}
.hp-alert__text {
	font-weight: 600;
}


/* Apri/chiudi su tag "More" */
button.toggle-more-content__trigger {
	cursor: pointer;
	color: #b61714;
	text-decoration: underline;
	font-weight: 600;
	margin-bottom: .3em;
}

.toggle-more-content__trigger::after {
	content: "\23f6";
	display: inline-block;
	font-family: ita;
	margin-left: .4em;
	vertical-align: middle;
}
.toggle-more-content__trigger[aria-expanded="true"]::after {
	content: "\23f7";
}

/* Flag evento "Annullato" */
.card-news {
	position: relative;
}
.card-news p.event-canceled {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 99999;
	background: #d82313;
	color: white;
	padding: .25em;
	transform: translate(0, 4em) rotate(-45deg);
	transform-origin: top left;
	pointer-events: none;
	font-size: 2rem;
	text-transform: uppercase;
}
.card-news p.event-canceled::after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	width: 300%;
	transform: translate(-50%, 0);
	z-index: -1;
	background: #d82313;
}

li.event-flag-annullato {
	background: #f5c1bc;
	font-size: 1.25em;
	padding: .2em .5em;
	margin: .3em -.5em;
}


/* Ripristino punto elenco in testi */
:where(.Prose) :is(ul, ol) {
	list-style: initial;
	padding-left: revert;
}
