:root {
    --brand: #3ebabc;
    --brand-dark: #2a8f91;
    --ink: #0f172a;
    --muted: #475569;
    --paper: #f8fafc;
}

.max-w-7xl { max-width: 1650px !important; }

body {
    font-family: 'myriad-pro', 'Inter', sans-serif !important;
    color: var(--ink);
}

h1, h2, h3, h4, h5, h6, p, span, div {
    font-family: 'myriad-pro', 'Inter', sans-serif;
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes softScaleIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.opacity-0 { opacity: 0; }
.fade-in-up { animation: riseIn 0.65s ease-out forwards; }
.fade-in-scale { animation: softScaleIn 0.85s ease-out forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.gentle-float { animation: gentleFloat 4s ease-in-out infinite; }

.welcome-panel { position: relative; overflow: hidden; }

.welcome-chip {
    border: 1px solid rgba(62, 186, 188, 0.35);
    background: rgba(255, 255, 255, 0.7);
    color: var(--brand-dark);
    letter-spacing: 0.04em;
}

.feature-card {
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.preview-card {
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.lightbox-frame {
    position: relative;
    width: min(1120px, 95vw);
    max-height: 88vh;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox-overlay.is-open .lightbox-frame { transform: translateY(0) scale(1); opacity: 1; }

.lightbox-image {
    width: 100%;
    max-height: 88vh;
    border-radius: 14px;
    background: #0b1220;
    object-fit: contain;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.lightbox-image.is-sliding-next { opacity: 0; transform: translateX(24px); }
.lightbox-image.is-sliding-prev { opacity: 0; transform: translateX(-24px); }

.lightbox-btn {
    position: absolute;
    top: 50%;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    transform: translateY(-50%);
}

.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

.lightbox-close {
    position: absolute;
    top: -0.9rem;
    right: -0.9rem;
    width: 2.3rem;
    height: 2.3rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
}

.feature-icon {
    border: 1px solid rgba(62, 186, 188, 0.35);
    background: linear-gradient(145deg, rgba(62, 186, 188, 0.18), rgba(62, 186, 188, 0.04));
    color: var(--brand-dark);
}

.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 12px 30px -16px rgba(42, 143, 145, 0.8);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px -16px rgba(42, 143, 145, 0.95);
}

/* Il pulsante nell'header usa un contorno focus esterno, così non viene tagliato dal bordo del bottone. */
.welcome-header-sign-in { overflow: visible; }
.welcome-header-sign-in:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.btn-secondary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 12px 30px -16px rgba(21, 128, 61, 0.8);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px -16px rgba(21, 128, 61, 0.95);
}

.outline-link { border: 1px solid rgba(15, 23, 42, 0.12); transition: all 0.2s ease; }
.outline-link:hover { border-color: rgba(62, 186, 188, 0.6); color: var(--brand-dark); }
