/* Connessioni Contemporanee — grafica allineata a notizie.bassanonet.it, palette rosa */

:root {
    --body-fonts: 'Inter', sans-serif;
    --body-fonts-2: 'Playfair Display', serif;
    --white-color: #ffffff;
    --blue-color: #122d64;
    --blue-color-3: #101d3f;
    --blue-color-4: #7783a1;
    --yellow-color: #ebcd46;
    --cultura-color: #df5377;
    --cultura-bgcolor: #fcedf2;

    --cc-display: var(--body-fonts-2);
    --cc-sans: var(--body-fonts);
    --cc-brand: var(--cultura-color);
    --cc-brand-dark: #c44565;
    --cc-page: #c44565;
    --cc-surface: #c44565;
    --cc-line: rgba(255, 255, 255, 0.2);
    --cc-radius: 15px;
    --cc-radius-sm: 10px;
    --cc-ink: #ffffff;
    --cc-muted: rgba(255, 255, 255, 0.78);
    --cc-yellow: var(--yellow-color);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cc-yellow); }
.phone_show { display: none; }

body.cc-body {
    background: var(--cc-page);
    min-height: 100%;
    overflow-x: clip;
    font-family: var(--cc-sans);
    color: var(--cc-ink);
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body.cc-body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url('../images/background.svg') center center / cover no-repeat;
    opacity: 0.16;
}

body.cc-body #main h1,
body.cc-body #main h2,
body.cc-body #main h3,
body.cc-body #main h4 {
    font-family: var(--cc-display);
}

body.cc-body > header,
body.cc-body > #main,
body.cc-body > .cc-footer {
    position: relative;
    z-index: 1;
}

/* Header */
body.cc-body header#header {
    position: relative;
    z-index: 1;
    width: 100%;
    background: var(--cc-page);
    color: var(--cc-ink);
    overflow: visible;
    margin-bottom: 64px;
}

.header-top-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.cc-bassanonet-logo {
    flex-shrink: 0;
    margin-top: 100px;
    text-decoration: none;
    opacity: 0.92;
    transition: opacity 0.15s ease;
}

.cc-bassanonet-logo:hover {
    opacity: 1;
    text-decoration: none;
}

.cc-bassanonet-logo img {
    display: block;
    height: 16px;
    width: auto;
}

body.cc-body header#header .logo {
    margin: 80px 0 0;
    padding: 0;
    text-align: left;
}

body.cc-body header#header .logo a {
    color: var(--cc-ink);
    text-decoration: none;
}

body.cc-body header#header .logo img {
    display: block;
    height: 72px;
    width: auto;
    max-width: min(520px, 70vw);
}

body.cc-body header#header .logo-text,
body.cc-body footer#footer .logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.cc-body header#header .logo-text strong,
body.cc-body footer#footer .logo-text strong {
    font-family: var(--cc-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.02;
    color: #fff;
}

body.cc-body header#header .logo-text span,
body.cc-body footer#footer .logo-text span {
    font-family: var(--cc-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.02;
    color: rgba(255, 255, 255, 0.5);
}

body.cc-body footer#footer .logo {
    margin: 0;
}

body.cc-body footer#footer .logo a {
    color: inherit;
    text-decoration: none;
}

.cc-footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

body.cc-body footer#footer .cc-bassanonet-logo {
    margin-top: 0;
}

/* Nav (inside header) */
body.cc-body header .cc-nav {
    position: relative;
    background: var(--cc-page);
}

.cc-nav.is-open {
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.22);
}

.cc-masthead-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    min-height: 64px;
    position: relative;
}

.cc-masthead-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cc-masthead-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px 10px;
    color: var(--cc-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: inset 0 -3px 0 transparent;
    transition: color 0.15s ease, box-shadow 0.15s ease;
}

.cc-masthead-links a:hover {
    color: #fff;
    text-decoration: none;
}

.cc-masthead-links a.is-active {
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--cc-yellow);
}

.cc-mobile-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: var(--cc-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 999px;
}

.cc-mobile-toggle:hover,
.cc-nav.is-open .cc-mobile-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.cc-mobile-toggle-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cc-yellow);
    flex-shrink: 0;
}

.cc-mobile-toggle-icon::before,
.cc-mobile-toggle-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.cc-mobile-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.cc-nav.is-open .cc-mobile-toggle-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.cc-nav.is-open .cc-mobile-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.cc-nav-panel {
    display: none;
    background: var(--cc-page);
    border-top: 1px solid var(--cc-line);
    padding: 8px 0 16px;
}

.cc-nav.is-open .cc-nav-panel {
    display: block;
}

.cc-nav-panel a {
    display: block;
    padding: 12px 24px;
    color: var(--cc-muted);
    text-decoration: none;
    font-weight: 600;
    border-left: 3px solid transparent;
}

.cc-nav-panel a.is-active,
.cc-nav-panel a:hover {
    color: #fff;
    background: transparent;
    border-left-color: var(--cc-yellow);
    text-decoration: none;
}

/* Main */
body.cc-body #main {
    margin-top: 0;
    padding: 0 0 64px;
    min-height: calc(100vh - 280px);
}

.cc-front {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 56px;
}

/* Hero */
.cc-hero {
    padding: 48px 0 40px;
    max-width: 820px;
}

body.cc-body #main .cc-hero-body h1 {
    margin: 0 0 16px;
    font-family: var(--cc-sans);
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    color: #fff;
}

.cc-hero-body p {
    margin: 20px 0 100px;
}

.cc-hero-body h1 em {
    font-style: normal;
    color: var(--cc-yellow);
}

.cc-hero-lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--cc-muted);
}

/* Sections */
.cc-section {
    margin-bottom: 48px;
}

.cc-section-head {
    margin: 0 0 24px;
    padding-top: 8px;
}

.cc-section-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.cc-section-head h2 {
    margin: 0;
    font-family: var(--cc-display);
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 700;
    color: #fff;
}

.cc-section-head p {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--cc-muted);
    max-width: 52em;
}

.cc-intro-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.cc-intro-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: var(--cc-muted);
}

.cc-intro-card p + p {
    margin-top: 16px;
}

/* Events */
#eventi {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 max(24px, calc((100vw - 1400px) / 2 + 24px));
    box-sizing: border-box;
}

.cc-events {
    display: grid;
    gap: 0;
}

.cc-event {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-areas:
        "title title"
        "date body";
    gap: 24px 32px;
    align-items: start;
    padding: 56px 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--cc-line);
    border-radius: 0;
    box-shadow: none;
}

.cc-events .cc-event:first-child {
    border-top: 0;
    padding-top: 0;
}

.cc-event:hover {
    transform: none;
    box-shadow: none;
}

.cc-event-title {
    grid-area: title;
    margin: 0;
    font-family: var(--cc-display);
    font-size: clamp(52px, 10vw, 132px);
    font-weight: 700;
    line-height: 0.98;
    color: var(--cc-yellow);
    letter-spacing: -0.02em;
}

.cc-event-date {
    grid-area: date;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.cc-event-day {
    font-family: var(--cc-sans);
    font-size: clamp(72px, 8vw, 96px);
    font-weight: 400;
    line-height: 0.9;
    color: #fff;
}

.cc-event-month,
.cc-event-year {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.cc-event-media {
    border-radius: var(--cc-radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, var(--cc-surface-strong), var(--cc-page));
}

.cc-event-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-event-body {
    grid-area: body;
}

.cc-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cc-muted);
}

.cc-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cc-event-meta i {
    color: var(--cc-yellow);
}

.cc-event-text {
    margin: 0;
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.65;
    color: var(--cc-muted);
}

.cc-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 0;
}

.cc-event-detail {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--cc-muted);
}

.cc-speakers {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cc-line);
}

.cc-speakers h4 {
    margin: 0 0 16px;
    font-family: var(--cc-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cc-brand);
}

.cc-speakers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.cc-speaker {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: start;
}

.cc-speaker img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cc-brand-soft);
}

.cc-speaker strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    color: var(--cc-ink);
}

.cc-speaker p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cc-muted);
}

/* Contact */
.cc-contact-card {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-width: 720px;
}

.cc-contact-card h3 {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--cc-brand);
}

.cc-contact-role {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cc-muted);
}

.cc-contact-links {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.cc-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
}

.cc-contact-links a:hover {
    text-decoration: underline;
}

.cc-contact-bio {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--cc-muted);
}

/* Partners grid */
.cc-partners-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cc-partners-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    padding: 20px;
    border-radius: var(--cc-radius-sm);
    background: transparent;
    border: 1px solid var(--cc-line);
    text-decoration: none;
    color: var(--cc-muted);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cc-partners-grid a:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--cc-brand);
    text-decoration: none;
}

.cc-partners-grid img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.cc-partners-grid span {
    font-size: 13px;
    text-align: center;
    line-height: 1.3;
}

.cc-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.cc-where {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.cc-map {
    border-radius: var(--cc-radius);
    overflow: hidden;
    border: 1px solid var(--cc-line);
    min-height: 420px;
    background: var(--cc-page);
}

.cc-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    filter: grayscale(1);
}

.cc-where-copy h3 {
    margin: 0 0 16px;
    font-family: var(--cc-display);
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--cc-ink);
}

.cc-where-copy p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--cc-muted);
}

body.cc-body .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--cc-yellow);
    color: var(--blue-color);
    font-weight: 700;
    text-decoration: none;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

body.cc-body .btn:hover {
    background: #f3d95a;
    text-decoration: none;
    color: var(--blue-color);
}

body.cc-body .btn-white {
    background: #fff;
    color: var(--blue-color);
}

body.cc-body .btn-white:hover {
    background: #f3f3f3;
    color: var(--blue-color);
}

body.cc-body .btn i {
    float: none;
    margin: 0;
}

/* Footer */
.cc-footer {
    margin-top: 0;
    background: var(--cc-page);
    padding: 48px 0 120px;
    color: var(--cc-ink);
}

.cc-footer-simple p {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--cc-muted);
}

.cc-footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.cc-footer-link:hover {
    color: var(--cc-yellow);
    text-decoration: none;
}

.cc-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.85fr));
    gap: 32px 28px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--cc-line);
}

.cc-footer-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}

.cc-footer-brand strong {
    display: block;
    font-family: var(--cc-display);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.cc-footer-brand p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--cc-muted);
    max-width: 28em;
}

.cc-footer-col h3 {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.cc-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cc-footer-col li + li {
    margin-top: 8px;
}

.cc-footer-col a {
    color: var(--cc-muted);
    text-decoration: none;
    font-size: 14px;
}

.cc-footer-col a:hover {
    color: var(--cc-yellow);
    text-decoration: none;
}

.cc-partners {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.cc-partners a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 16px;
    border-radius: var(--cc-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-partners img {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.cc-footer-bottom {
    padding: 20px 0 32px;
}

.cc-footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--cc-muted);
}

.cc-footer-legal {
    background: var(--cc-page);
    padding: 18px 0 22px;
    text-align: center;
    color: var(--cc-muted);
    border-top: 1px solid var(--cc-line);
}

.cc-footer-legal p {
    margin: 0 0 3px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--cc-muted);
}

.cc-footer-legal a {
    color: var(--cc-yellow);
}

@media (max-width: 1100px) {
    .cc-where {
        grid-template-columns: 1fr;
    }

    .cc-event {
        grid-template-columns: 100px minmax(0, 1fr);
    }
}

html.dark body.cc-body { background: var(--blue-color-3); color: var(--text-dark-color); }
html.dark body.cc-body::before { background: rgba(223, 83, 119, 0.12); }
html.dark body.cc-body .cc-intro-card,
html.dark body.cc-body .cc-event,
html.dark body.cc-body .cc-contact-card,
html.dark body.cc-body .cc-partners-grid a { background: rgba(16, 29, 63, 0.72); border-color: rgba(255, 255, 255, 0.08); }
html.dark body.cc-body .cc-section-head h2,
html.dark body.cc-body .cc-where-copy h3,
html.dark body.cc-body .cc-hero-body h1 em,
html.dark body.cc-body .cc-speaker strong,
html.dark body.cc-body .cc-contact-card h3 { color: #fff; }
html.dark body.cc-body .cc-hero-lead,
html.dark body.cc-body .cc-intro-card p,
html.dark body.cc-body .cc-event-text,
html.dark body.cc-body .cc-event-detail,
html.dark body.cc-body .cc-section-head p,
html.dark body.cc-body .cc-where-copy p,
html.dark body.cc-body .cc-event-meta,
html.dark body.cc-body .cc-contact-bio,
html.dark body.cc-body .cc-speaker p { color: var(--blue-color-4); }

@media (max-width: 1100px) {
    .cc-partners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .cc-masthead-links {
        display: none;
    }

    .cc-mobile-toggle {
        display: inline-flex;
    }

    .cc-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cc-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .cc-front,
    .cc-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cc-event {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "date"
            "body";
        padding: 40px 0;
        gap: 16px;
    }

    .cc-event-title {
        font-size: clamp(40px, 12vw, 72px);
    }

    .cc-event-day {
        font-size: 72px;
    }

    .cc-partners {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cc-footer-grid {
        grid-template-columns: 1fr;
    }

    .cc-partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.cc-body header#header .logo img {
        height: 56px;
    }

    body.cc-body header#header .logo-text strong,
    body.cc-body footer#footer .logo-text strong {
        font-size: clamp(22px, 6vw, 32px);
    }

    body.cc-body header#header .logo-text span,
    body.cc-body footer#footer .logo-text span {
        font-size: clamp(22px, 6vw, 32px);
    }

    body.cc-body header#header .logo {
        margin-top: 48px;
    }

    body.cc-body header#header {
        margin-bottom: 40px;
    }

    .cc-bassanonet-logo {
        margin-top: 88px;
    }

    .cc-bassanonet-logo img {
        height: 14px;
    }

    .phone_hide { display: none; }
    .phone_show { display: block; }
}
