/* ============================================================
   Anteprima schermate app City Adventure
   Replica visiva (HTML/CSS) basata sul tema reale dell'app Flutter:
   - primary   #3F8493
   - secondary #6ECCCE
   - tealDark  #2E6572
   Nessun plugin nativo: solo resa grafica a scopo di anteprima.
   ============================================================ */

.cap-layout {
    --cap-primary: #3F8493;
    --cap-secondary: #6ECCCE;
    --cap-teal-dark: #2E6572;
}

/* ---------- Cornice telefono ---------- */
.cap-phone {
    width: 390px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 46px;
    padding: 12px;
    background: #10191c;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
}

.cap-phone-screen {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    background: var(--cap-primary);
    height: 760px;
    display: flex;
    flex-direction: column;
}

.cap-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 2px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    opacity: 0.9;
}

.cap-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.cap-scroll::-webkit-scrollbar {
    width: 6px;
}

.cap-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

/* ---------- Sfondi ---------- */
.cap-bg-gradient {
    background: linear-gradient(180deg, var(--cap-secondary) 0%, var(--cap-primary) 100%);
    min-height: 100%;
}

.cap-bg-solid {
    background: var(--cap-primary);
    min-height: 100%;
}

.cap-pad {
    padding: 14px 16px 22px;
}

/* ---------- App bar ---------- */
.cap-appbar {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 6px 16px 10px;
    font-weight: 700;
    font-size: 16px;
}

.cap-appbar i {
    font-size: 18px;
}

/* ---------- Card percorso (lista) ---------- */
.cap-route-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 16px 84px 14px 18px;
    box-shadow: 3px 8px 12px rgba(0, 0, 0, 0.18);
    margin-bottom: 34px;
}

.cap-route-card.has-no-icon {
    padding-right: 62px;
}

.cap-route-title {
    color: #1A7286;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

.cap-route-location {
    color: #4A8D98;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    margin: 6px 0 0;
}

.cap-route-language {
    color: #4E8994;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    margin: 12px 0 0;
}

.cap-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cap-progress {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: #F5DADB;
    overflow: hidden;
}

.cap-progress-fill {
    height: 100%;
    background: #FF6E60;
    border-radius: 999px;
}

.cap-progress-label {
    color: #3C6570;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.cap-corner-icon {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cap-corner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cap-locale-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #EAF3F5;
    color: #1A7286;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 800;
}

.cap-info-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A7286;
    font-size: 22px;
}

.cap-info-btn.pos-with-icon {
    top: 10px;
    right: 114px;
}

.cap-info-btn.pos-without-icon {
    top: 19px;
    right: 64px;
}

.cap-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.cap-outline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

/* ---------- Card bianca generica (dettaglio percorso) ---------- */
.cap-screen-title {
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 12px;
}

.cap-white-card {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.12);
    margin-bottom: 14px;
}

.cap-image {
    width: 100%;
    height: 170px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.cap-image-placeholder {
    width: 100%;
    height: 170px;
    border-radius: 12px;
    background: #E5EEF1;
    color: #73939A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
}

.cap-desc {
    color: #2C5964;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 10px 0 0;
}

.cap-info-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    margin-bottom: 8px;
}

.cap-info-line .label {
    font-weight: 700;
    opacity: 0.9;
}

.cap-info-line .value {
    font-weight: 900;
    text-align: right;
}

/* ---------- Schermata domanda ---------- */
.cap-question {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 16px;
}

.cap-answer {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 14px 16px;
    background: #AEDDDD;
    color: #1B8D98;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cap-answer.correct {
    background: #A0D8D5;
    border-color: #1B8D98;
}

.cap-answer.wrong {
    background: #F2745E;
    border-color: #F2745E;
    color: #fff;
}

.cap-answer-index {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    color: #1B8D98;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.cap-answer.wrong .cap-answer-index {
    background: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.cap-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: #F2745E;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.cap-hint-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 16px;
    text-align: center;
}

.cap-hint-card img,
.cap-hint-card video {
    width: 100%;
    max-height: 190px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* ---------- Schermata evento ---------- */
.cap-event-header {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    padding: 14px;
    margin-bottom: 14px;
    text-align: center;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.14);
}

.cap-event-name {
    color: #1A7286;
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 6px;
}

.cap-event-dates {
    color: #4A8D98;
    font-size: 12px;
    font-weight: 800;
}

.cap-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.cap-logo-row img {
    max-height: 54px;
    max-width: 130px;
    object-fit: contain;
}

.cap-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    margin: 0 6px 8px 0;
}

.cap-empty {
    color: #fff;
    opacity: 0.85;
    font-size: 13px;
    text-align: center;
    padding: 26px 12px;
}

/* ---------- Segnalazione "nascosto in app" ---------- */
.cap-hidden-wrap {
    position: relative;
}

.cap-hidden-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(220, 53, 69, 0.75);
    border-radius: 20px;
    pointer-events: none;
}

.cap-hidden-tag {
    position: absolute;
    top: -10px;
    left: 12px;
    background: #dc3545;
    color: #fff;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
}

.cap-hidden-tag.on-white {
    background: #F2745E;
}

/* ---------- Pannello controlli ---------- */
.cap-controls .form-label {
    font-weight: 600;
    font-size: 13px;
}

.cap-screen-tabs .btn {
    font-size: 13px;
    font-weight: 700;
}

.cap-note {
    font-size: 12px;
}

.cap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cap-legend .badge {
    font-weight: 700;
}
