:root {
    --primary-color: #006064;
    --bg-color: #ffffff;
    --font-family: 'Jost', 'Futura', sans-serif;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden; /* Stop horizontal scroll */
    background-color: var(--bg-color);
    font-family: var(--font-family);
}

/* BACKGROUND CANVAS */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* CONTENT STRUCTURE */
.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* HERO AND GENERAL ELEMENTS */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    pointer-events: auto;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    padding: 0 20px;
}

/* BUTTONS */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 96, 100, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #00838f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 96, 100, 0.4);
}

/* ========================== */
/* PROGRAM PAGE */
/* ========================== */

.program-body {
    overflow-y: auto;
    min-height: 100vh;
}

/* HEADER */
.program-header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.program-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.program-subtitle {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
}

/* GRID */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* CARD */
.conference-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    position: relative; /* Important fix */
}

.conference-card:hover {
    transform: translateY(-5px);
}

/* CARD HEADER */
.card-header {
    padding: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theater-name {
    font-weight: 700;
    font-size: 1.2rem;
}

.conference-date {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
}

/* LABEL ON THE LEFT */
.conference-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: #000;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CARD BODY */
.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    background-color: #f9f9f9;
}

/* SCHEDULE ITEM */
.schedule-item {
    display: flex;
    align-items: flex-start; /* ← FIX PERFETTO PER EVENTI SU DUE RIGHE */
    margin-bottom: 0.8rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid transparent;
    gap: 1rem;
}

.time {
    font-weight: 700;
    min-width: 60px;
    font-size: 0.9rem;
    color: #333;
    padding-top: 2px; /* bilanciamento */
}

/* EVENT TEXT (2 RIGHE) */
.event {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.25;
    display: block; /* FIX */
}

/* BREAK ITEM */
.break-item {
    justify-content: center;
    font-style: italic;
    color: #888;
    background: transparent;
    border: 1px dashed #ccc;
}

/* THEMES */
.theme-green .card-header {
    background-color: #4CAF50;
}
.theme-green .schedule-item {
    border-left-color: #4CAF50;
}

.theme-blue .card-header {
    background-color: #2196F3;
}
.theme-blue .schedule-item {
    border-left-color: #2196F3;
}

.theme-red .card-header {
    background-color: #F44336;
}
.theme-red .schedule-item {
    border-left-color: #F44336;
}

/* ========================== */
/* TICKET PAGE */
/* ========================== */

.ticket-wrapper {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.ticket-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 100%;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ticket-text-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-description {
    font-size: 1.5rem;
    color: #333;
}

.ticket-warning {
    font-size: 1.3rem;
    color: #d32f2f;
    background: #ffebee;
    padding: 1rem;
    border-radius: 10px;
}

.ticket-info {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* BUTTONS */
.ticket-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.big-button {
    padding: 1.5rem 3rem;
    font-size: 1.4rem;
    min-width: 280px;
    line-height: 1.2;
    text-align: center;
}

.big-button span {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

.big-button strong {
    font-size: 1.6rem;
    text-transform: uppercase;
}

/* EVENTBRITE BUTTON */
.eventbrite {
    background-color: #F05537 !important;
}
.eventbrite:hover {
    background-color: #d64022 !important;
    box-shadow: 0 6px 20px rgba(240, 85, 55, 0.4) !important;
}

/* GDG / BEVY BUTTON */
.bevy {
    background-color: #4285F4 !important;
}
.bevy:hover {
    background-color: #3367d6 !important;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4) !important;
}

.conference-card {
    position: relative;
    padding-left: 45px; /* puoi variare 35–55 px a gusto */
}

.conference-label {
    width: 45px;
    left: 0;
}

main.program-grid {
    padding-left: 20px;
}

