/* Segreti d'Autore - stili del tema figlio (autore: Valerio de Rensis) */

:root {
	--sda-blu: #428bca;
	--sda-rosso: #e0242a;
	--sda-rosso-scuro: #bd221f;
	--sda-testo: #808080;
	--sda-titoli: #333333;
	--sda-grigio: #f2f2f2;
	--sda-verde: #94c24a;
}

body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.sda-main > * + * { margin-block-start: 1.2rem; }
p:empty { display: none; }
img { height: auto; }

/* ---------- Header ---------- */
.sda-menubar { position: relative; z-index: 50; }
.sda-menu { display: flex; justify-content: center; align-items: center; min-height: 70px; padding: 0 20px; }
.sda-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.sda-menu-list > li { position: relative; }
.sda-menu-list a { display: block; padding: 5px 10px; font-family: Lato, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.45; text-transform: uppercase; color: var(--sda-blu); text-decoration: none; }
.sda-menu-list a:hover,
.sda-menu-list .current-menu-item > a,
.sda-menu-list .current-menu-ancestor > a { color: var(--sda-rosso-scuro); text-decoration: none; }
.sda-menu-list .menu-item-25365 > a { color: var(--sda-rosso); }
.sda-menu-list .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sda-menu-list .sub-menu { list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); display: none; z-index: 60; }
.sda-menu-list .sub-menu a { font-size: 14px; padding: 8px 14px; }
.sda-menu-list li:hover > .sub-menu,
.sda-menu-list li:focus-within > .sub-menu { display: block; }
.sda-menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 12px; }
.sda-burger, .sda-burger::before, .sda-burger::after { display: block; width: 26px; height: 3px; background: var(--sda-blu); border-radius: 2px; position: relative; }
.sda-burger::before, .sda-burger::after { content: ""; position: absolute; left: 0; }
.sda-burger::before { top: -8px; }
.sda-burger::after { top: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.sda-logo-row .sda-logo { margin: 0 auto; }
.sda-logo-row .wp-block-image { margin-block: 0; }

@media (max-width: 991px) {
	.sda-menu { justify-content: flex-end; min-height: 56px; flex-wrap: wrap; }
	.sda-menu-toggle { display: block; }
	.sda-menu-list { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
	.sda-menu.is-open .sda-menu-list { display: flex; }
	.sda-menu-list .sub-menu { position: static; display: block; box-shadow: none; background: transparent; padding-left: 16px; }
	.sda-logo-row .sda-logo img { width: 260px !important; }
}

/* ---------- Breadcrumbs ---------- */
.sda-breadcrumb { font-size: 14px; color: var(--sda-testo); }
.sda-breadcrumbs .sda-breadcrumb a { color: var(--sda-blu); }

/* ---------- Titoli pagina / articolo ---------- */
.sda-page-title { font-size: 30px; margin-top: 0; }
.sda-post-date { font-size: 13px; margin-top: 0; }
.sda-sep { border: 0; border-top: 1px solid #e6e6e6; margin-block: 30px 15px; }
.sda-post-nav { font-size: 14px; }
.sda-post-nav .post-navigation-link-next { margin-left: auto; text-align: right; }

/* ---------- Scheda evento: testata ---------- */
.sda-hero { min-height: 0 !important; background-position: center top; }
.sda-hero::after { content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); border-left: 42px solid transparent; border-right: 42px solid transparent; border-bottom: 42px solid #fff; z-index: 2; }
.sda-hero .wp-block-cover__inner-container { color: #fff; }
.sda-hero-box { border: 3px solid #fff; padding: 10px 30px 20px; max-width: 900px; margin-inline: auto; }
.sda-hero-box > * { margin-block: 0 !important; }
.sda-hero-meta { font-family: Oswald, sans-serif; font-weight: 600; font-size: 30px; line-height: 1.4; color: #fff !important; text-align: center; }
.sda-hero-title { font-family: Oswald, sans-serif !important; font-weight: 500 !important; font-size: 70px !important; line-height: 1.1 !important; color: #fff !important; }
.sda-hero-sub { font-family: Oswald, sans-serif; font-weight: 500; font-size: 40px; color: #fff !important; text-align: center; }
.sda-hero-breadcrumb { text-align: center; color: #fff; margin-top: 20px; font-size: 14px; }
.sda-hero-breadcrumb a { color: #fff; }
@media (max-width: 767px) {
	.sda-hero { padding-top: 60px !important; padding-bottom: 70px !important; }
	.sda-hero-title { font-size: 38px !important; }
	.sda-hero-meta { font-size: 20px; }
	.sda-hero-sub { font-size: 24px; }
	.sda-hero-box { padding: 10px 14px 16px; }
}

/* ---------- Scheda evento: corpo ---------- */
.sda-evento-cols { gap: 60px; }
.sda-evento-meta { font-size: 30px; margin: 0 0 8px; }
.sda-evento-sottotitolo { margin: 0 0 10px; }
.sda-sinossi { font-size: 1.2em; line-height: 1.1em; margin-bottom: 20px; }
.sda-sinossi p { margin: 0 0 .6em; }
.sda-orario { color: var(--sda-verde); line-height: 1; margin: 24px 0 6px; }
.sda-evento-nome { line-height: 1; margin: 0 0 10px; }
.sda-evento-sep { border: 0; border-top: 3px solid #ccc; margin: 30px 0; }
.sda-credito { font-size: 14px; font-style: italic; }
.sda-evento-contenuto { margin-top: 20px; }

.sda-infobox { display: flex; gap: 22px; align-items: center; margin-bottom: 24px; }
.sda-infobox .sda-icon { flex: 0 0 auto; color: var(--sda-blu); }
.sda-infobox-testo { flex: 1; font-size: 14px; line-height: 1.45; }
.sda-infobox-testo p { margin: 0 0 .5em; }
.sda-avviso { background: linear-gradient(to right, #c5f200, #53d800); padding: 18px 22px; color: #fff; }
.sda-avviso .sda-icon { color: #fff; }
.sda-avviso .sda-infobox-testo { font-size: 16px; color: #fff; }

.sda-mappa { margin-top: 30px; }
.sda-mappa iframe { display: block; width: 100%; }

.sda-altri { margin-top: 40px; }
.sda-altri-titolo { color: #255dea !important; font-size: 30px; padding: 0 16px 10px; margin: 20px 0 30px; }

/* ---------- Caroselli ---------- */
.sda-carousel { position: relative; margin: 10px 0 24px; }
.sda-track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.sda-track::-webkit-scrollbar { display: none; }
.sda-slide { flex: 0 0 100%; scroll-snap-align: start; }
.sda-slide img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; background: #fff; }
.sda-prev, .sda-next { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--sda-blu); font-size: 26px; line-height: 30px; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); z-index: 3; }
.sda-prev { left: 8px; }
.sda-next { right: 8px; }
.sda-carousel-multi .sda-track { gap: 28px; }
.sda-card { flex: 0 0 225px; scroll-snap-align: start; list-style: none; }
.sda-card a { display: block; position: relative; overflow: hidden; color: #fff; text-decoration: none !important; }
.sda-card img { display: block; width: 100%; height: auto; transition: transform .3s; }
.sda-card-noimg { display: block; aspect-ratio: 3 / 4; background: #e6e6e6; }
.sda-card-titolo { position: absolute; inset: auto 0 0 0; padding: 10px 12px; background: rgba(0, 0, 0, .65); font-size: 14px; line-height: 1.3; opacity: 0; transition: opacity .25s; }
.sda-card a:hover .sda-card-titolo, .sda-card a:focus .sda-card-titolo { opacity: 1; }
.sda-card a:hover img { transform: scale(1.03); }

.sda-griglia { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.sda-griglia .sda-card-titolo { opacity: 1; }

/* ---------- Finestra video e ingrandimento foto ---------- */
.sda-modale-wrap { margin: 10px 0 20px; }
.sda-modale-apri { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(#5aa0dc, #428bca); border: 0; color: #fff; padding: 12px 24px; border-radius: 4px; cursor: pointer; font-weight: 700; }
.sda-modale-apri:hover { background: #444; }
.sda-modale, .sda-lb { position: fixed; inset: 0; background: rgba(0, 0, 0, .8); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sda-modale[hidden] { display: none; }
.sda-modale-box { position: relative; background: #fff; padding: 10px; width: min(900px, 100%); }
.sda-modale-video { position: relative; aspect-ratio: 16 / 9; }
.sda-modale-video iframe, .sda-modale-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sda-modale-chiudi, .sda-lb-chiudi { position: absolute; top: -16px; right: -16px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: #222; color: #fff; font-size: 22px; line-height: 28px; cursor: pointer; }
.sda-lb img { max-width: 92vw; max-height: 88vh; box-shadow: 0 6px 30px rgba(0, 0, 0, .4); }
.sda-lb-chiudi { top: 20px; right: 20px; }

/* ---------- Footer ---------- */
.sda-footer-loghi .wp-block-image { margin: 0; }
.sda-footer-prenota { font-size: 14px; }
.sda-footer-prenota p { margin: 0; }
.sda-footer-bottom { position: relative; color: #000; font-size: 14px; isolation: isolate; }
.sda-footer-bottom::before { content: ""; position: absolute; inset: 0; background: rgba(145, 145, 145, .4); clip-path: polygon(0 50px, 50% 10px, 100% 60px, 100% 100%, 0 100%); z-index: -1; }
.sda-footer-bottom a { color: #000; }
.sda-footer-bottom p { margin: 0 0 12px; }
.sda-footer-barchetta { margin-top: -70px; }
.sda-footer-centro { padding-top: 10px; }
.sda-footer-palazzo { margin-top: -60px; }
@media (max-width: 781px) {
	.sda-footer-barchetta, .sda-footer-palazzo { margin-top: 0; }
	.sda-footer-barchetta img { max-width: 70%; margin: 0 auto; }
}

/* ---------- Comunicati stampa ---------- */
.sda-filtri { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 24px; }
.sda-filtri button { background: #9d9d9d; color: #fff; border: 0; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.sda-filtri button.is-active, .sda-filtri button:hover { background: #555; }
.sda-com-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.sda-com { background: #f7f7f7; padding: 10px; }
.sda-com[hidden] { display: none; }
.sda-com-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sda-com-img .sda-card-noimg { aspect-ratio: 16 / 10; }
.sda-com-corpo { position: relative; padding: 16px 12px 10px 52px; }
.sda-com-data { position: absolute; left: 6px; top: 18px; width: 34px; text-align: center; font-size: 12px; line-height: 1.2; }
.sda-com-data span:last-child { display: block; background: #333; color: #fff; margin-top: 4px; padding: 2px 0; }
.sda-com-titolo { font-size: 24px; line-height: 1.3; text-transform: uppercase; margin: 0 0 14px; }
.sda-com-titolo a { color: var(--sda-titoli); }
.sda-com-estratto { font-size: 13px; }

/* ---------- Rassegna stampa (vecchio formato) ---------- */
.sda-rassegna-hero { background-size: cover; background-position: center; padding: 100px 20px; text-align: center; position: relative; }
.sda-rassegna-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.sda-rassegna-hero h2 { position: relative; color: #fff; margin: 0; }
.sda-pdf { margin: 10px 0 20px; }

/* ---------- Contenuti convertiti da Beaver Builder ---------- */
.sda-bb-box { max-width: 900px; margin: 24px auto; }
.sda-video-16-9 { position: relative; aspect-ratio: 16 / 9; }
.sda-video-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.sda-infobox-bb { background: #fff; }

/* Righe a tutta larghezza delle pagine convertite */
.sda-main > .sda-riga-piena { margin-top: 0; }
.sda-riga-piena > * + * { margin-block-start: 1.2rem; }
@media (max-width: 767px) { .sda-hide-mobile { display: none !important; } }

/* Schede Video / Social */
.sda-tabs { border: 1px solid #e6e6e6; }
.sda-tabs-nav { display: flex; border-bottom: 1px solid #e6e6e6; }
.sda-tabs-nav button { background: #fff; border: 0; border-right: 1px solid #e6e6e6; padding: 12px 18px; font-size: 15px; color: #333; cursor: pointer; text-transform: uppercase; }
.sda-tabs-nav button.is-active { background: #f7f7f7; box-shadow: inset 0 -2px 0 var(--sda-blu); }
.sda-tab { padding: 20px; }

/* Schede della pagina Video */
.sda-videocards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.sda-videocard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; padding: 30px 20px; text-align: center; color: #fff !important; background: linear-gradient(to right, #00a7f4, #0049db); text-decoration: none !important; }
.sda-videocard strong { font-family: Oswald, sans-serif; font-weight: 400; font-size: 22px; }
.sda-videocard span { font-size: 13px; }
.sda-videocard:hover { filter: brightness(1.1); }
@media (max-width: 991px) { .sda-videocards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 560px) { .sda-videocards { grid-template-columns: 1fr; } }

/* Staff */
.sda-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
.sda-team { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.sda-team img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 8px; }
.sda-team strong { font-family: Oswald, sans-serif; font-weight: 400; font-size: 20px; color: var(--sda-titoli); }

/* Linea del tempo della rassegna stampa */
.sda-timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.sda-timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed #000; }
.sda-tl-item { position: relative; width: 50%; padding: 0 44px 50px 0; box-sizing: border-box; text-align: left; }
.sda-tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 50px 44px; }
.sda-tl-icona { position: absolute; right: -11px; top: 0; width: 22px; height: 22px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23777' d='M4 5h13v14H5a1 1 0 0 1-1-1zm15 3h2v10a1 1 0 0 1-2 0zM6 7v4h5V7zm7 0v1h2V7zm0 2v1h2V9zm-7 3v1h9v-1zm0 2v1h9v-1z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.sda-tl-item:nth-child(even) .sda-tl-icona { right: auto; left: -11px; }
.sda-tl-titolo { font-size: 22px; margin: 0 0 4px; }
.sda-tl-titolo a { color: var(--sda-titoli); }
.sda-tl-data { font-size: 13px; }
.sda-tl-img img { display: block; max-width: 100%; height: auto; margin-bottom: 8px; }
@media (max-width: 700px) {
	.sda-timeline::before { left: 10px; }
	.sda-tl-item, .sda-tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 36px 40px; }
	.sda-tl-icona, .sda-tl-item:nth-child(even) .sda-tl-icona { left: 0; right: auto; }
}
