.side-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.tab-button {
    background: linear-gradient(135deg, #ec342c 0%, #a8170f 100%);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 18px 13px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.08),
        5px 6px 18px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22);
    transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.tab-button:hover {
    background: linear-gradient(135deg, #f5453d 0%, #c51d14 100%);
    padding-right: 17px;
    filter: brightness(1.05);
    box-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.1),
        7px 8px 26px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.tab-button:active {
    transform: rotate(180deg) translateY(1px);
    box-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.08),
        3px 3px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.phone-panel {
    position: fixed !important;
    left: -420px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 380px !important;
    max-height: 90vh !important;
    background: #fff !important;
    border-radius: 0 14px 14px 0 !important;
    box-shadow:
        6px 8px 32px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9998 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.phone-panel.open {
    left: 60px !important;
}

/* Header scuro con accento rosso */
.phone-panel__header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
    padding: 22px 24px 20px;
    position: relative;
}

.phone-panel__header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, #e2241c 0%, #f5453d 100%);
    border-radius: 2px;
}

.phone-panel__title {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.phone-panel__title i {
    color: #f5453d;
    font-size: 22px;
}

.phone-panel__subtitle {
    margin: 8px 0 0;
    font-size: 13px;
    opacity: 0.82;
    line-height: 1.45;
    color: #cfd5dc;
}

/* Lista */
.phone-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
    overflow-y: auto;
}

.phone-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.2s ease, padding 0.2s ease;
    margin: 0;
}

.phone-list li:last-child {
    border-bottom: none;
}

.phone-list li:hover {
    background: linear-gradient(90deg, #fff5f4 0%, #fff 100%);
    padding-left: 24px;
}

.phone-list__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(226, 36, 28, 0.10) 0%, rgba(226, 36, 28, 0.20) 100%);
    color: #e2241c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phone-list li:hover .phone-list__icon {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(226, 36, 28, 0.25);
}

.phone-list__body {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.phone-title {
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
    color: #2c3e50;
    font-size: 13px;
}

.phone-number {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e2241c;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.3px;
}

.phone-number::before {
    content: "\f095"; /* fa-phone */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
    font-size: 11px;
    opacity: 0.85;
}

.phone-number:hover {
    color: #a8170f;
}

.phone-list li:hover .phone-number {
    transform: translateX(2px);
}

/* ═══════════════════════════════════════════
   TAB PRESENTAZIONE AI4CALL — solo desktop
   ═══════════════════════════════════════════ */
.tab-button--presentation {
    background: linear-gradient(135deg, #3d556e 0%, #1a252f 100%);
}

.tab-button--presentation:hover {
    background: linear-gradient(135deg, #4f6d8c 0%, #243440 100%);
}

/* Overlay fullscreen con backdrop scuro */
.presentation-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    cursor: pointer; /* indica "clicca per chiudere" sul backdrop */
}

.presentation-overlay.open {
    display: flex;
}

.presentation-panel {
    /* 16:9 — uguale al rapporto della presentazione, niente letterbox */
    width: min(95vw, calc(92vh * 16 / 9));
    aspect-ratio: 16 / 9;
    max-height: 92vh;
    background: #faf9f5;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(226, 36, 28, 0.18);
    overflow: hidden;
    cursor: default;
}

.presentation-panel iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Nascondi solo il bottone Presentazione + relativo overlay su mobile/tablet
   (lascia visibile "Demo AI Telefoniche") */
@media (max-width: 1024px) {
    .tab-button--presentation,
    .presentation-overlay {
        display: none !important;
    }
}

