/* assets/css/style.css */

/* --- Reset / base --- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    background-color: #ffffff;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
/*a:hover { text-decoration: underline; }*/

h1, h2, h3, h4 {
    font-weight: 800;
    margin: 0 0 0.45em;
    line-height: 1.2;
}

p { margin: 0 0 1em; }

:root {
    --accent: #e95627;          /* requested primary color */
    --accent-dark: #c94922;
    --peach: #f7d2c5;           /* background tint close to mockup */
    --text-muted: #666;
    --border: var(--accent);    /* requested outline color */
    --shadow: rgba(0, 0, 0, 0.18);
}

/* --- Layout helpers --- */
.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.section { padding: 4.2rem 0; }

.section-title {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.section-title-link:hover { text-decoration: underline; }

.section-intro { max-width: 820px; color: var(--text-muted); }

/* --- Header --- */
.site-header-top {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 0.65rem 0;
    padding-bottom: 5px !important;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.logo-link { display: inline-flex; align-items: center; gap: 0.5rem; }

.logo-main { height: 70px; object-fit: contain; }

.logo-small { height: 40px; object-fit: contain; }

.logo-group-left,
.logo-group-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-group-center { display: flex; justify-content: center; flex: 1; }

.dante-text-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}

/* Navigation bar */
.site-header-nav {
    background-color: var(--accent);
    color: #fff;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.92rem;
}

.nav-link { position: relative; padding: 0.25rem 0; }

.nav-link.is-active::after,
.nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.18rem;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.lang-switcher {
    font-size: 0.82rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
}

.lang-link { opacity: 0.85; }
.lang-link.is-active { opacity: 1; }
.lang-link:hover { opacity: 1; }
.lang-sep { opacity: 0.6; }

/* --- Hero (Section #2) --- */
.hero {
    position: relative;
    color: #fff;
    padding: 5.7rem 0 4.5rem;
    text-align: center;
    background-image:
        linear-gradient(120deg, rgba(0,0,0,0.68), rgba(0,0,0,0.18)),
        url("../img/Background_foto.jpg");
    background-size: cover;
    background-position: center center;
}

.hero-inner { max-width: 980px; }

.hero-title-main {
    font-size: clamp(2.2rem, 4.2vw, 3.9rem);
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.hero-title-sub {
    font-size: clamp(1.1rem, 2.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: clamp(1.05rem, 1.9vw, 1.7rem);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1.65rem;
}

.hero-logo-strip {
    background-color: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    padding: 0.1rem 1.25rem;
    margin: 0 auto 1.75rem;
    border: 1px solid #fff;
    width: min(980px, 100%);
}

.hero-logo-link img {
    height: 44px;
    object-fit: contain;
}

.hero-cta { margin-bottom: 1.6rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 2.1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.btn-primary { background-color: var(--accent); color: #fff; }
.btn-primary:hover { background-color: var(--accent-dark); }

.btn-hero {
    background-color: var(--accent);
    color: #fff;
    border: 2px solid #fff;   /* white outline like mockup */
    padding: 0.95rem 3.2rem;
    min-width: 260px;
}

.btn-hero:hover { background-color: var(--accent-dark); }

.hero-ribbon {
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    margin-inline: auto;
    background-color: rgba(0,0,0,0.45);
    font-size: 0.98rem;
}

.hero-dante-link {
    display: inline-block;
    margin-top: 1.05rem;
    font-weight: 700;
    text-decoration: underline;
}

/* --- Section #3: Banner + Cards --- */
.section-banner-cards { background-color: #fff; padding-top: 3.6rem; }

.festival-banner {
    border: 1px solid var(--border);
    display: flex;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.7rem;
    margin-bottom: 2.5rem;
}

.festival-logo {
    background-color: #fffaf5;
    padding: 0.85rem;
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.festival-text { display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; }*/
.festival-text{
    display: none;
}

.festival-subtitle { font-weight: 700; font-size: 1rem; margin: 0; }

.festival-title { font-size: 1.6rem; text-transform: uppercase; margin: 0; }

.festival-dates { font-weight: 800; font-size: 1.2rem; margin: 0; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    height: 210px;
    overflow: hidden;
    border-radius: 2px;
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.78);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card-overlay {
    position: relative;
    height: 100%;
    padding: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.card-title {
    background-color: rgba(255,255,255,0.9); /* requested: white title box */
    color: #000;                              /* requested: black text */
    padding: 0.55rem 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 800;
}

.card-link:hover .card-bg {
    transform: scale(1.05);
    filter: brightness(0.92);
}

/* --- Section #4: Programma --- */
.section-programma { background-color: var(--peach); }

.program-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem;
    margin-top: 2rem;
    align-items: start;
}

.tabs {
    margin-bottom: 1.2rem;
    display: inline-flex;
    border: 1px solid var(--border);
    background: #fff;
}

.tab-button {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    cursor: pointer;
}

.tab-button.is-active {
    background-color: var(--accent);
    color: #fff;
}

.tab-panels {
    background-color: #fff;
    border: 1px solid var(--border);
    padding: 1.7rem 1.8rem;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.program-day-heading { margin-bottom: 0.7rem; text-transform: uppercase; }
.program-list,
.program-itinerary { margin-top: 0.25rem; margin-bottom: 0.85rem; padding-left: 1.25rem; }

.program-itinerary { list-style: decimal; }

.program-note { font-size: 0.92rem; color: var(--text-muted); margin-top: 0.75rem; }

.program-map iframe {
    width: 100%;
    height: 585px;
    border: 1px solid var(--border);
    background: #fff;
}

/* --- Itinerario --- */
.section-itinerario { background-color: #fff; }

.author-tabs {
    margin-top: 2rem;
    display: inline-flex;
    border: 1px solid var(--border);
    background: #fff;
}

.author-tab {
    border: none;
    padding: 0.7rem 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    background-color: #fff;
    font-size: 0.9rem;
}

.author-tab.is-active { background-color: var(--accent); color: #fff; }

.author-panel {
    display: none;
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    padding: 1.5rem;
    background-color: #fff;
}

.author-panel.is-active { display: block; }

.author-panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
    gap: 1.5rem;
}

.author-photo img { 
    border-radius: 2px;
    margin-top: 10px !important;
}

/* Accordion */
.accordion-header {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    background-color: var(--accent);
    color: #fff;
    padding: 0.75rem 0.95rem;
    margin-top: 0.55rem;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.accordion-header::after {
    content: "+";
    position: absolute;
    right: 0.95rem;
}

.accordion-header.is-open::after { content: "–"; }

.accordion-body {
    display: none;
    padding: 0.85rem 0.95rem 1rem;
    border: 1px solid var(--border);
    border-top: none;
    background-color: #fff;
}

.accordion-body.is-open { display: block; }

/* --- Section #5: Instagram-style Photo Gallery --- */
.section-photo-gallery { background-color: var(--peach); }

.insta-bar {
    margin-top: 2rem;
    background-color: var(--accent);
    padding: 1.6rem;
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 1.3rem;
    align-items: center;
}

.insta-left { color: #fff; }

.insta-hashtag {
    display: inline-block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}

.insta-follow {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
}

.insta-right {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 0.9rem;
    align-items: center;
}

.insta-arrow {
    width: 44px;
    height: 44px;
    border: none;
    background-color: #fff;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.insta-arrow:hover { opacity: 0.9; }

.insta-track {
    display: flex;
    gap: 1.2rem;
    /*overflow-x: auto;*/
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-bottom: 0.25rem;
}

.insta-card {
    flex: 0 0 auto;
    width: 210px;
    margin: 0;
    cursor: pointer;
    position: relative;
    background: #fff;
}

.insta-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.insta-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.25rem 0.45rem;
}

/* --- Info page --- */
.section-info { background-color: #fff; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.info-block {
    border: 1px solid var(--border);
    padding: 1.45rem 1.55rem;
    background-color: #fffaf5;
}

.info-list { padding-left: 1.15rem; margin: 0 0 0.75rem; }

/* --- Contact page --- */
.section-contact { background-color: #f7f2ef; }

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
}

.contact-form-wrapper {
    border: 1px solid var(--border);
    padding: 1.5rem;
    background-color: #fff;
}

.contact-form .form-row {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-form label { font-size: 0.95rem; font-weight: 700; }

.contact-form input,
.contact-form textarea {
    border-radius: 2px;
    border: 1px solid #ccc;
    padding: 0.65rem 0.6rem;
    font: inherit;
}

.form-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.75rem; }
.form-note-error { color: #b00020; }

.alert {
    display: inline-block;
    padding: 0.55rem 0.75rem;
    border-radius: 2px;
    font-weight: 700;
}
.alert.success { background: #eaf7ea; border: 1px solid #2e7d32; color: #1b5e20; }
.alert.error { background: #fdeaea; border: 1px solid #b00020; color: #7a0016; }

/* --- Gallery page --- */
.section-gallery { background-color: #fff; }

.gallery-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    border: 1px solid var(--border);
    overflow: hidden;
    background-color: #000;
    color: #fff;
}

.gallery-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    cursor: pointer;
}

.gallery-item figcaption {
    padding: 0.5rem 0.7rem;
    font-size: 0.88rem;
    background-color: rgba(0,0,0,0.85);
}

/* --- Section #6: Partner strip --- */
.partner-strip {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1.8rem 0;
}

.partner-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.partner-heading {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.partner-logos {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.partner-logos img { height: 40px; object-fit: contain; }

/* --- Footer with background image --- */
.site-footer {
    background-image:
        linear-gradient(120deg, rgba(0,0,0,0.78), rgba(0,0,0,0.55)),
        url("../img/Background_foto.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 3rem 0 2.2rem;
}

.footer-overlay { }

.footer-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.footer-title {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
    margin-top: 0;
}

.footer-text { margin-bottom: 1.4rem; }

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.footer-social-icons img { height: 30px; width: 30px; }

.footer-disclaimer { margin-top: 0.8rem; }

.footer-small { font-size: 0.92rem; margin-bottom: 0.5rem; }

.footer-dante-link {
    display: inline-block;
    font-weight: 800;
    text-decoration: underline;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.lightbox.is-open { display: block; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.lightbox-content {
    position: relative;
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    margin: 7vh auto 0;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 60px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}

.lightbox-image {
    width: 100%;
    height: 76vh;
    object-fit: contain;
    grid-column: 2 / 3;
    background: rgba(0,0,0,0.25);
}

.lightbox-nav {
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.18); }

.lightbox-prev { grid-column: 1 / 2; }
.lightbox-next { grid-column: 3 / 4; }

.lightbox-caption {
    grid-column: 1 / 4;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    opacity: 0.9;
}

.lightbox-close {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.lightbox-close:hover { background: rgba(255,255,255,0.18); }

/* --- Responsive tweaks --- */
@media (max-width: 980px) {
    .festival-banner { grid-template-columns: minmax(0, 1fr); }
    .program-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 880px) {
    .header-top-inner { flex-direction: column; }
    .nav-inner { flex-direction: column; align-items: flex-start; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .author-panel-inner { grid-template-columns: minmax(0, 1fr); }
    .contact-inner { grid-template-columns: minmax(0, 1fr); }
    .info-grid { grid-template-columns: minmax(0, 1fr); }
    .partner-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-logo-strip { gap: 1.2rem; flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .container { width: min(1120px, 100% - 1.4rem); }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .insta-bar { grid-template-columns: minmax(0, 1fr); }
    .insta-right { grid-template-columns: 44px minmax(0, 1fr) 44px; }
    .hero { padding-top: 4.2rem; padding-bottom: 4rem; }
    .hero-logo-link img { height: 36px; }
    .lightbox-content { grid-template-columns: 44px minmax(0, 1fr) 44px; }
    .lightbox-nav { width: 44px; height: 44px; font-size: 1.9rem; }
}

/* Extra CSS */
@media only screen and (min-width: 1200px) {
  aside.program-map {
    padding-top: 67px;
  }
  .dante-text-link {
      padding-left: 12px;
  }
}

.logo-group-left img{
    height: 100px;
}
.logo-group-left, .logo-group-left .logo-link{
    display: block;
}
.tpd-logo{
    height: 62px;
}



/* --- News / Blog --- */
.section-news {
    background-color: #fff;
}

.news-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.news-grid-compact .news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card {
    border: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    text-decoration: none;
}

.news-card:hover {
    text-decoration: none;
}

.news-cover img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.news-body {
    padding: 1rem 1rem 1.15rem;
}

.news-date {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-title {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    text-transform: none;
    letter-spacing: 0;
}

.news-excerpt {
    margin: 0 0 0.85rem;
    color: #222;
    font-size: 0.95rem;
}

.news-read {
    display: inline-block;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    color: var(--accent);
}

.news-actions {
    margin-top: 1.6rem;
    text-align: center;
}

.section-news-page {
    background-color: #fff;
}

.section-article {
    background-color: #fff;
}

.article-back a {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: var(--accent);
}

.article-date {
    font-weight: 700;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1.2rem;
}

.article-cover img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.article-content {
    margin-top: 1.4rem;
    max-width: 900px;
}

.article-content h2,
.article-content h3 {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.article-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.25rem 0;
}

/* Responsive */
@media (max-width: 980px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .news-grid { grid-template-columns: minmax(0, 1fr); }
    .news-cover img { height: 190px; }
}


/* --- Sticky + Mobile nav (added at end, minimal override) --- */

/* Sticky menu bar */
.site-header-nav{
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle{
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

.nav-toggle-bar{
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
}

/* Mobile behavior */
@media (max-width: 880px) {
    /* hide nav until opened */
    .main-nav{
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 0.5rem;
    }

    .main-nav.is-open{
        display: flex;
    }

    .nav-toggle{
        display: inline-block;
    }

    /* make links easier to tap on mobile */
    .main-nav .nav-link{
        padding: 0.5rem 0;
    }
}

img.commune-trieste, img.tpd-logo{
    height: 70px;
}

img.dante-logo{
    height: 60px;
}

img.commune-trieste{
    padding-top:5px;
}

/* --- Map hint overlay (for Google My Maps sidebar icon) --- */
.map-embed{
    position: relative;
}

/* The hint sits above the iframe but doesn't block clicks */
.map-hint{
    position: absolute;
    top: -35px;      /* tweak if needed */
    left: 35px;     /* tweak if needed to point to the icon */
    z-index: 5;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.map-hint-text{
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 6px 10px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
    white-space: nowrap;
}

.map-hint-arrow{
    color: #000;
    font-size: 1.25rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Optional: slightly adjust on small screens */
@media (max-width: 640px){
    .map-hint{
        top: 8px;
        left: 52px;
    }
    .map-hint-text{
        font-size: 0.8rem;
    }
}


/* --- Force sticky menu bar --- */
.site-header-nav{
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Sticky breaks if a parent has overflow != visible */
.site-header,
.site-header-top,
.site-header-nav,
.nav-inner{
    overflow: visible;
}

/* JS fallback: fixed when scrolled */
.site-header-nav.is-stuck{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.site-header-nav-spacer{
    display: none;
}

.site-header-nav-spacer.is-on{
    display: block;
}



/* --- FIX: Programme translation HTML should NOT become a 2-col grid --- */
/* The translation strings include <div class="program-layout"> inside the tab panel.
   But .program-layout is used for the outer "programme + map" layout and is a grid.
   This override only affects the inner one inside the tab content. */
.tab-panels .program-layout{
    display: block;
    grid-template-columns: none;
    gap: 0;
    margin-top: 0;
    align-items: initial;
}

/* Optional spacing/clarity inside the programme content */
.tab-panels .program-day-title h3{
    margin-bottom: 0.8rem;
}

.tab-panels .program-session{
    margin-top: 1.2rem;
}

.tab-panels .session-header h3{
    margin-bottom: 0.35rem;
}

.session-time, .session-location, .session-duration, .itinerary-title{
    margin-bottom: 0px;
}
.itinerary-title{
    margin-top: 10px;
}
ol.itinerary-list {
    margin-top: 2px;
}
.session-header h4{
    font-size: 17px;
}
.star-space {
    margin-top: 16px;
}


.festival-banner{
	display: none !important;
}

/* To hide Tappe D'Autore */
#itinerario .accordion .accordion-header:nth-child(5) {
    display: none;
}

.ea-logo-header{
    height: 30px;
    margin-top: -32px;
}
.tpd-header-logo{
    margin-top: -20px;
}
.logo-group-right .tpd-logo{
    height: 50px;
}
.hero-logo-strip .hero-logo-link .dante-logo{
height: 90px;
}
.hero-logo-strip .tpd-logo{
	height: 48px;
}
.hero-logo-strip .commune-trieste{
	height: 44px;
}
.hero-logo-strip .lets-logo{
	height: 24px;
}

.partner-strip .partner-inner .interreg-footer-logo{
	height: 77px;
}


.partner-strip .partner-inner .comune-footer-logo{
	height: 35px;
	margin-top: -12px;
}


.partner-strip .partner-inner .lets-footer-logo{
	height: 24px;
	margin-top: -16px;
}


.partner-strip .partner-inner .tpd-footer-logo{
	height: 35px;
	margin-top: -16px;
}

.hero-logo-strip { display:flex; align-items:flex-start; }
.hero-logo-link { display:flex; align-items:flex-start; line-height:0; }
.hero-logo-strip img { display:block; }
/* adjust only the ones with top whitespace */
.hero-logo-strip .tpd-logo { margin-top:10px; }
.hero-logo-strip .commune-trieste { margin-top:9px; }
.hero-logo-strip .lets-logo { margin-top:18px; }

.ea-logo-footer{
    /*margin-top: -20px;*/
    height: 28px !important;
}


/* align the two headings the same way */
.partner-inner .partner-block:nth-child(1) .partner-heading{
  margin-top: -28px !important;
}


/* Article CSS article updates */
.article-authors p {
    margin-bottom: 0.01em !important;
}

.article-authors-paolo{
    margin-top: 1.6em;
}


/* Caption below author photo (Stuaparich panel) */
.author-photo figure {
    margin: 0;
}

.author-photo figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.25;
    opacity: 0.9;
    font-style: italic;
}

.author-photo figcaption em {
    font-style: italic;
}
