/* ================================================================
   RICHMOND 2026 — Synesthesia-inspired Design System
   ================================================================ */

:root {
    --primary: #3474B3;
    --primary-dark: #2a5d8f;
    --primary-light: #e8f1f8;
    --secondary: #CF385B;
    --secondary-light: #fde8ed;
    --accent: #F4C700;
    --accent-light: #fff8d6;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --light: #f5f7fa;
    --white: #ffffff;
    --text: #2d3436;
    --text-secondary: #636e72;
    --text-light: #b2bec3;
    --border: #e0e6ed;
    --shadow: 0 2px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
    --shadow-hover: 0 4px 20px rgba(52,116,179,0.15);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-pill: 50px;
    --transition: 0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 124px;
}

h1, h2, h3, h4 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.mt-1 { margin-top: 1rem; }

/* ---- Accent Line ---- */
.accent-line {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    z-index: 1001;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 4px; left: 0; right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 60px;
}

.nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--dark);
    text-decoration: none;
}

.brand-syn {
    color: var(--primary);
    letter-spacing: 2px;
}

.brand-sep {
    color: var(--accent);
    font-weight: 300;
}

.brand-event {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 6px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.nav-link.active {
    background: var(--primary);
    color: var(--white);
}

/* ---- Search Bar ---- */
.search-bar {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    padding: 10px 0;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--primary); }

.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 10px;
}

/* ---- Day Selector ---- */
.day-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.day-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    background: var(--white);
    border: 2px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    min-width: fit-content;
    flex: 1;
    flex-shrink: 0;
}
.day-pill:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}
.day-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(52,116,179,0.3);
}
.day-pill.today:not(.active)::after {
    content: 'OGGI';
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 1px;
    margin-top: 2px;
}

.day-name {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}

.day-date {
    font-size: 0.82rem;
    opacity: 0.7;
}

/* ---- Day Header ---- */
.day-header {
    margin-bottom: 16px;
}
.day-header h1 {
    font-size: 1.6rem;
    color: var(--dark);
}
.event-location {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-top: 2px;
}

/* ---- Next Event Banner ---- */
.next-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 1rem;
}
.next-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: #b8960a;
    background: rgba(244,199,0,0.2);
    padding: 3px 10px;
    border-radius: var(--radius-xs);
}
.next-time {
    font-weight: 500;
    font-family: 'Lato', sans-serif;
}
.next-title {
    color: var(--text-secondary);
}

/* ---- Timeline ---- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 40px;
}

/* ---- Event Card ---- */
.event-card {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    min-height: 72px;
}

/* Meeting cards are full <a> tags — style as block */
a.event-card {
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}
a.event-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
a.event-card:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.event-card.session {
    background: var(--light);
    border-style: dashed;
    border-width: 1px;
}

.event-card.is-current {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(52,116,179,0.15), var(--shadow-hover);
}

/* Current indicator */
.current-indicator {
    position: absolute;
    top: 10px; right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}
.pulse-dot {
    width: 10px; height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.current-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--secondary);
}

/* Event time column */
.event-time {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    background: var(--primary-light);
    min-width: 108px;
    border-right: 1px solid var(--border);
}
.event-card.session .event-time {
    background: transparent;
    min-width: 100px;
}
.event-card.is-current .event-time {
    background: var(--primary);
}
.time-text {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-dark);
    white-space: nowrap;
}
.event-card.is-current .time-text {
    color: var(--white);
}

/* Event body */
.event-body {
    flex: 1;
    padding: 14px 16px;
    min-width: 0;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.event-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--dark);
}

.event-speaker {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 400;
}

.event-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.event-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.contact-chip {
    display: inline-flex;
    flex-direction: column;
    padding: 6px 12px;
    background: var(--primary-light);
    border-radius: var(--radius-xs);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.3;
}
.contact-chip strong {
    font-weight: 500;
}
.contact-chip small {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Chevron on right side of meeting cards */
.event-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: var(--primary);
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity var(--transition), transform var(--transition);
}
a.event-card:hover .event-chevron {
    opacity: 1;
    transform: translateX(3px);
}

/* ---- Badges ---- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-xs);
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-meeting {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-session {
    background: var(--accent-light);
    color: #b8960a;
}

.badge-formato {
    background: var(--light);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.badge-location {
    background: transparent;
    color: var(--text-secondary);
    font-weight: 400;
    text-transform: none;
}

.badge-hot {
    background: var(--secondary);
    color: var(--white);
}
.badge-hot.large {
    padding: 5px 16px;
    font-size: 0.88rem;
}

.badge-decisore {
    background: var(--accent-light);
    color: #b8960a;
    border: 1px solid var(--accent);
}
.badge-decisore.large {
    padding: 5px 16px;
    font-size: 0.88rem;
}

/* ---- Page Header ---- */
.page-header {
    margin-bottom: 20px;
}
.page-header h1 {
    font-size: 1.6rem;
    color: var(--dark);
}
.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ---- Sort Bar ---- */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.sort-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.sort-pill {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    background: var(--white);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    white-space: nowrap;
    transition: all var(--transition);
    text-decoration: none;
}
.sort-pill:hover { border-color: var(--primary); color: var(--primary); }
.sort-pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ---- Aziende Grid ---- */
.aziende-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .aziende-grid { grid-template-columns: 1fr 1fr; }
}

.azienda-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
}
.azienda-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.azienda-card:active {
    transform: translateY(0);
}
.azienda-card.hot-lead {
    border-left: 5px solid var(--secondary);
}

.azienda-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.azienda-name {
    font-size: 1.08rem;
    color: var(--dark);
}

.azienda-sector {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.azienda-contact {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.contact-name {
    font-weight: 500;
    font-size: 0.95rem;
}
.contact-role {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.azienda-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}
.stat-value {
    font-size: 0.9rem;
    font-weight: 500;
}

.azienda-meetings-count {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* ---- Back Link ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
}
.back-link:hover { color: var(--primary); }

/* ---- Meeting Header ---- */
.meeting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 22px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.time-display {
    font-family: 'Lato', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.date-display {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.meeting-badges {
    display: flex;
    gap: 8px;
}

/* ---- Section Card ---- */
.section-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 18px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Team section */
.team-section { background: var(--accent-light); border-color: var(--accent); }
.team-list { display: flex; flex-wrap: wrap; gap: 8px; }

.team-chip {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--dark);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
}
.team-chip.large {
    padding: 8px 18px;
    font-size: 0.95rem;
}

/* ---- Participant Card ---- */
.participant-card {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.participant-card:last-child { border-bottom: none; }

.participant-company {
    font-size: 1.12rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.participant-company a { color: var(--primary); }

.participant-name {
    font-weight: 500;
    font-size: 1.02rem;
    margin-top: 4px;
}

.participant-role {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.participant-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.info-tag {
    padding: 4px 12px;
    background: var(--light);
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.info-tag.budget {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

/* ---- Company Detail Mini (in meeting page) ---- */
.company-detail-mini {
    border-left: 4px solid var(--primary);
}
.company-mini-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.company-mini-header h3 { font-size: 1.1rem; }
.company-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.mini-field {
    font-size: 0.95rem;
    padding: 5px 0;
}
.mini-field.highlight {
    color: #b8960a;
    font-weight: 500;
}
.mini-field.nota {
    background: var(--accent-light);
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    margin-top: 8px;
}
.mini-field.hot-reason {
    background: var(--secondary-light);
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    margin-top: 8px;
}

.services-summary {
    margin-top: 12px;
    font-size: 0.95rem;
}
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.service-cat {
    padding: 3px 10px;
    background: var(--light);
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ---- Company Detail Page ---- */
.company-header {
    margin-bottom: 20px;
}
.company-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.company-header h1 {
    font-size: 1.7rem;
    color: var(--dark);
}
.site-link {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--primary);
    margin-top: 4px;
}
.company-description {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Metrics grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.metric-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.metric-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
}

/* Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    padding: 5px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
}
.brand-tag {
    background: var(--accent-light);
    color: #b8960a;
}

/* Contact section */
.contact-detail {
    padding: 8px 0;
}
.contact-detail h4 {
    font-size: 1.1rem;
    color: var(--dark);
}
.contact-detail .role {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 8px;
}
.contact-detail p {
    font-size: 0.95rem;
    margin-bottom: 3px;
}
.contact-detail.secondary {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
}
.nota-specifica {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--accent-light);
    border-radius: var(--radius-xs);
    font-size: 0.95rem;
}

/* Profile grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 480px) {
    .profile-grid { grid-template-columns: 1fr; }
}
.profile-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}
.profile-label {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}
.profile-value {
    font-size: 1rem;
}
.profile-value.highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}
.hot-text { color: var(--secondary); font-weight: 500; }

/* Objectives */
.objective-item {
    padding: 6px 0;
    font-size: 1rem;
}

/* Hot section */
.hot-section {
    border-left: 4px solid var(--secondary);
    background: var(--secondary-light);
}
.hot-section p { font-size: 1rem; }

/* Services */
.service-category {
    margin-bottom: 14px;
}
.service-category:last-child { margin-bottom: 0; }
.service-cat-name {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.service-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.service-item {
    padding: 4px 12px;
    background: var(--light);
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    color: var(--text);
}

/* ---- Meeting Link Card ---- */
.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.meeting-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
}
.meeting-link-card:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}
.meeting-link-time {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}
.mlc-day {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
}
.mlc-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.meeting-link-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mlc-people {
    font-size: 0.95rem;
}
.meeting-link-card .event-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.4;
}

/* ---- Notes ---- */
.notes-section {
    border-top: 3px solid var(--primary);
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.note-item {
    padding: 12px 14px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-light);
}

.note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.note-author {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--primary);
}
.note-time {
    font-size: 0.82rem;
    color: var(--text-light);
}
.note-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--primary-light);
    border-radius: var(--radius-xs);
    color: var(--primary);
}
.note-delete-form {
    margin-left: auto;
}
.note-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.3rem;
    padding: 2px 6px;
    transition: color var(--transition);
    line-height: 1;
}
.note-delete-btn:hover { color: var(--secondary); }

.note-text {
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.empty-notes {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    padding: 10px 0;
}

/* ---- Forms ---- */
.note-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group {
    margin-bottom: 12px;
    flex: 1;
}

.form-group label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    background: var(--white);
    -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52,116,179,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52,116,179,0.3);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}
.empty-state p { margin-bottom: 12px; }

/* ---- Footer ---- */
.footer {
    margin-top: 40px;
    padding: 20px 0;
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    font-size: 0.88rem;
}
.footer-sub {
    font-size: 0.8rem;
    margin-top: 2px;
    opacity: 0.5;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    html { font-size: 16px; }
    body { padding-top: 118px; }

    .nav-brand .brand-event { display: none; }
    .navbar { height: 56px; }
    .search-bar { top: 60px; }

    .day-pill { padding: 10px 16px; }
    .day-name { font-size: 1.05rem; }

    .event-time {
        min-width: 90px;
        padding: 12px;
    }

    .meeting-header { flex-direction: column; align-items: flex-start; }
    .time-display { font-size: 1.6rem; }

    .metrics-grid { grid-template-columns: repeat(2, 1fr); }

    .company-header h1 { font-size: 1.4rem; }

    .aziende-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .profile-grid { grid-template-columns: 1fr; }
    .event-chevron { padding: 0 8px; }
}

/* ---- Touch improvements ---- */
@media (hover: none) {
    a.event-card:hover {
        transform: none;
        box-shadow: none;
    }
    a.event-card:active {
        background: var(--primary-light);
        border-color: var(--primary);
    }
    .azienda-card:hover {
        transform: none;
        box-shadow: none;
    }
    .azienda-card:active {
        background: var(--primary-light);
        border-color: var(--primary);
    }
}
