/* Restyling dedicato a Home e Area Open. */

.video-overlay {
    background:
        linear-gradient(115deg, rgba(3, 8, 22, 0.96) 0%, rgba(5, 17, 35, 0.88) 48%, rgba(7, 10, 29, 0.93) 100%),
        radial-gradient(circle at 78% 42%, rgba(0, 229, 255, 0.2), transparent 32%);
}

/* Navigazione laterale cyber */
body .sidebar {
    border-right: 1px solid rgba(76, 227, 247, 0.22);
    color: #dffcff;
    background:
        linear-gradient(180deg, rgba(8, 24, 42, 0.98), rgba(3, 11, 24, 0.99)) !important;
    box-shadow: 8px 0 35px rgba(0, 8, 20, 0.28), inset -1px 0 rgba(111, 240, 255, 0.05);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body .sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background:
        linear-gradient(90deg, transparent 0 94%, rgba(78, 230, 248, 0.08) 94%),
        repeating-linear-gradient(0deg, transparent 0 4px, rgba(111, 238, 255, 0.025) 5px);
}

body .sidebar .sidebar-header {
    position: relative;
    padding: 24px 22px 22px;
    border-bottom: 1px solid rgba(91, 225, 244, 0.17);
    color: #e8fdff;
    background: rgba(9, 31, 50, 0.62);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-shadow: 0 0 20px rgba(78, 227, 248, 0.2);
}

body .sidebar .sidebar-header::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 11px;
    border: 1px solid #65efff;
    background: rgba(101, 239, 255, 0.18);
    box-shadow: 0 0 10px rgba(101, 239, 255, 0.65);
    transform: rotate(45deg);
}

body .sidebar .components {
    position: relative;
    z-index: 1;
}

body .sidebar .components li {
    color: #b8d1db;
}

body .sidebar .components li a {
    position: relative;
    border: 1px solid transparent;
    border-left: 2px solid transparent;
    border-radius: 2px;
    color: #b8d1db;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

body .sidebar .components li a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #5cecff;
    box-shadow: 0 0 8px rgba(92, 236, 255, 0.72);
    opacity: 0.42;
    transform: translateY(-50%);
}

body .sidebar .components li a:hover,
body .sidebar .components li a:focus-visible {
    border-color: rgba(91, 229, 247, 0.17);
    border-left-color: #5cecff;
    color: #effeff;
    background: linear-gradient(90deg, rgba(46, 185, 209, 0.18), rgba(46, 185, 209, 0.035));
    box-shadow: inset 14px 0 22px rgba(55, 210, 232, 0.04);
    transform: translateX(3px);
}

body .sidebar .components li a:hover::before,
body .sidebar .components li a:focus-visible::before {
    opacity: 1;
}

body .sidebar .text-muted {
    color: #5e8797 !important;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

body .sidebar .btn-outline-dark {
    border-color: rgba(93, 231, 249, 0.38);
    color: #a8f7ff;
    background: rgba(9, 27, 45, 0.72);
}

body .sidebar .btn-outline-dark:hover {
    border-color: #6af2ff;
    color: #03101d;
    background: #6af2ff;
}

body .sidebar .sidebar-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(91, 225, 244, 0.14);
    color: #688794;
    background: rgba(2, 9, 20, 0.4);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
}

body #sidebarCollapse {
    border-color: rgba(57, 177, 197, 0.48);
    color: #287d8b;
    background: rgba(230, 251, 253, 0.7);
}

body #sidebarCollapse:hover,
body #sidebarCollapse:focus-visible {
    border-color: #4bd7e8;
    color: #03131c;
    background: #63e9f7;
    box-shadow: 0 0 18px rgba(62, 213, 234, 0.24);
}

/* Home cyber */
.home-page {
    margin-bottom: 0;
    background: #030816;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.home-page .content-wrapper {
    background: transparent !important;
}

.home-page .pastel-navbar {
    position: relative;
    z-index: 5;
    min-height: 66px;
    background: rgba(3, 8, 22, 0.72) !important;
    border-bottom: 1px solid rgba(77, 231, 255, 0.18) !important;
    backdrop-filter: blur(14px);
}

.home-page #sidebarCollapse {
    color: #aaf7ff;
    border-color: rgba(77, 231, 255, 0.45);
    background: rgba(5, 19, 39, 0.8);
    box-shadow: 0 0 20px rgba(21, 211, 255, 0.08);
}

.home-page #sidebarCollapse:hover,
.home-page #sidebarCollapse:focus-visible {
    color: #03101d;
    border-color: #70f5ff;
    background: #70f5ff;
}

.home-page main {
    display: flex;
    min-height: calc(100vh - 66px);
    padding: 0 !important;
}

.cyber-home {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 66px);
    padding: clamp(48px, 8vw, 110px);
    overflow: hidden;
    isolation: isolate;
    color: #eafcff;
}

.cyber-home::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.22;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 3px,
        rgba(113, 242, 255, 0.08) 4px
    );
}

.cyber-home__grid {
    position: absolute;
    right: -10%;
    bottom: -42%;
    z-index: -1;
    width: 80%;
    height: 85%;
    background-image:
        linear-gradient(rgba(41, 225, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 225, 255, 0.18) 1px, transparent 1px);
    background-size: 42px 42px;
    transform: perspective(480px) rotateX(62deg);
    transform-origin: center top;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 75%, transparent);
}

.cyber-home__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(3px);
    pointer-events: none;
}

.cyber-home__glow--one {
    top: 6%;
    right: 8%;
    width: 340px;
    height: 340px;
    background: rgba(0, 220, 255, 0.08);
    box-shadow: 0 0 120px rgba(0, 220, 255, 0.12);
}

.cyber-home__glow--two {
    bottom: -10%;
    left: 15%;
    width: 260px;
    height: 260px;
    background: rgba(117, 67, 255, 0.1);
    box-shadow: 0 0 100px rgba(117, 67, 255, 0.12);
}

.cyber-panel {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: clamp(28px, 4vw, 54px);
    border: 1px solid rgba(103, 236, 255, 0.2);
    background: linear-gradient(145deg, rgba(8, 20, 39, 0.88), rgba(5, 12, 28, 0.62));
    box-shadow:
        0 28px 75px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
}

.cyber-panel::before,
.cyber-panel::after {
    content: "";
    position: absolute;
    background: #5cecff;
    box-shadow: 0 0 14px rgba(92, 236, 255, 0.65);
}

.cyber-panel::before {
    top: 0;
    left: 42px;
    width: 110px;
    height: 2px;
}

.cyber-panel::after {
    right: 0;
    bottom: 58px;
    width: 2px;
    height: 68px;
}

.cyber-panel__eyebrow {
    margin-bottom: 20px;
    color: #7cecf8;
    font-size: clamp(0.73rem, 1vw, 0.88rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cyber-panel h1 {
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(137, 240, 255, 0.9);
    font-size: clamp(1.85rem, 2.45vw, 2.7rem);
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.05;
    white-space: nowrap;
    text-shadow: 0 0 30px rgba(96, 235, 255, 0.16);
}

.cyber-panel__intro {
    max-width: 610px;
    margin: 30px 0 0;
    color: #b7c9d8;
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    line-height: 1.8;
}

.cyber-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    color: #eaffff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cyber-btn:hover {
    color: #fff;
    transform: translateY(-3px);
}

.cyber-btn--primary {
    color: #03111e;
    background: linear-gradient(100deg, #6ef2ff, #5db7ff);
    box-shadow: 0 10px 28px rgba(55, 212, 255, 0.22);
}

.cyber-btn--primary:hover {
    color: #03111e;
    box-shadow: 0 14px 34px rgba(55, 212, 255, 0.34);
}

.cyber-btn--secondary {
    border-color: rgba(118, 232, 255, 0.38);
    background: rgba(10, 29, 48, 0.55);
}

.cyber-btn--secondary:hover {
    border-color: #7cf2ff;
    background: rgba(35, 103, 128, 0.35);
}

.cyber-panel__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(126, 223, 242, 0.13);
    color: #829bab;
    font-size: 0.9rem;
}

.cyber-panel__footer a {
    color: #82eff9;
    font-weight: 700;
    text-decoration: none;
}

.cyber-panel__footer a:hover {
    color: #fff;
}

.cyber-orbit {
    position: relative;
    justify-self: center;
    width: min(32vw, 430px);
    aspect-ratio: 1;
    filter: drop-shadow(0 0 32px rgba(44, 220, 255, 0.14));
}

.cyber-orbit__ring,
.cyber-orbit__core,
.cyber-orbit__node {
    position: absolute;
    border-radius: 50%;
}

.cyber-orbit__ring {
    inset: 50%;
    border: 1px solid rgba(104, 233, 255, 0.38);
    transform: translate(-50%, -50%);
}

.cyber-orbit__ring::before,
.cyber-orbit__ring::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #64edff;
    box-shadow: 0 0 14px #43e8ff;
}

.cyber-orbit__ring--outer {
    width: 100%;
    height: 100%;
    border-style: dashed;
    animation: orbitSpin 28s linear infinite;
}

.cyber-orbit__ring--outer::before {
    top: 8%;
    left: 18%;
    width: 6px;
    height: 6px;
}

.cyber-orbit__ring--outer::after {
    right: 6%;
    bottom: 30%;
    width: 4px;
    height: 4px;
}

.cyber-orbit__ring--middle {
    width: 74%;
    height: 74%;
    border-width: 2px;
    border-color: rgba(95, 181, 255, 0.28);
    animation: orbitSpinReverse 19s linear infinite;
}

.cyber-orbit__ring--middle::before {
    top: 49%;
    left: -5px;
    width: 8px;
    height: 8px;
}

.cyber-orbit__ring--inner {
    width: 49%;
    height: 49%;
    border-color: rgba(143, 99, 255, 0.45);
    box-shadow: inset 0 0 40px rgba(38, 211, 255, 0.05);
}

.cyber-orbit__ring--inner::before {
    inset: 11%;
    border: 1px solid rgba(92, 236, 255, 0.2);
    background: transparent;
    box-shadow: none;
}

.cyber-orbit__core {
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(105, 242, 255, 0.72);
    background: radial-gradient(circle, rgba(20, 72, 102, 0.92), rgba(3, 15, 32, 0.96) 70%);
    box-shadow: 0 0 40px rgba(31, 216, 255, 0.22), inset 0 0 28px rgba(39, 220, 255, 0.15);
}

.cyber-globe {
    width: 84%;
    height: 84%;
    overflow: visible;
    filter: drop-shadow(0 0 9px rgba(91, 235, 250, 0.32));
    animation: globeDrift 8s ease-in-out infinite alternate;
}

.cyber-globe__outline,
.cyber-globe__gridline {
    fill: none;
    stroke: rgba(126, 241, 252, 0.68);
    stroke-width: 2;
}

.cyber-globe__gridline {
    stroke: rgba(91, 214, 232, 0.38);
    stroke-width: 1.25;
}

.cyber-globe__lands {
    fill: rgba(111, 235, 246, 0.36);
    stroke: rgba(184, 252, 255, 0.72);
    stroke-width: 1.3;
    stroke-linejoin: round;
}

.cyber-orbit__node {
    width: 12px;
    height: 12px;
    border: 2px solid #81f3ff;
    background: #061329;
    box-shadow: 0 0 16px rgba(78, 231, 255, 0.75);
}

.cyber-orbit__node--one {
    top: 12%;
    right: 18%;
}

.cyber-orbit__node--two {
    bottom: 18%;
    left: 6%;
}

@keyframes globeDrift {
    from { transform: rotate(-3deg) scale(0.98); }
    to { transform: rotate(3deg) scale(1.02); }
}

@keyframes orbitSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitSpinReverse {
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Area Open */
.open-area {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(20px, 3vw, 42px);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.open-area__heading {
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid #dce3ea;
}

.open-area__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #216c7a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.open-area__heading h1 {
    margin: 0;
    color: #172735;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 750;
    letter-spacing: -0.04em;
}

.open-area__heading p {
    max-width: 720px;
    margin: 10px 0 0;
    color: #687783;
    font-size: 1.02rem;
}

.open-area__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    gap: 30px;
    perspective: 1100px;
}

.portal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(76, 108, 127, 0.32);
    border-radius: 6px;
    color: #eefaff;
    background:
        linear-gradient(145deg, rgba(26, 52, 68, 0.98), rgba(8, 24, 36, 0.99)),
        #0d2534;
    box-shadow:
        0 22px 30px -18px rgba(12, 33, 47, 0.65),
        12px 14px 0 -6px #d6e1e6,
        12px 14px 0 -5px #9aabb4;
    text-decoration: none;
    transform: rotateX(1deg) rotateY(-1.5deg) translateZ(0);
    transform-style: preserve-3d;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.portal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(110deg, transparent 38%, rgba(120, 237, 255, 0.1) 50%, transparent 62%),
        repeating-linear-gradient(0deg, transparent 0, transparent 5px, rgba(160, 230, 241, 0.025) 6px);
    transform: translateX(-75%);
    transition: transform 650ms ease;
}

.portal-card::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -54px;
    width: 175px;
    height: 175px;
    border: 1px solid rgba(102, 224, 239, 0.13);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(102, 224, 239, 0.035), 0 0 0 56px rgba(102, 224, 239, 0.025);
}

.portal-card:hover,
.portal-card:focus-visible {
    color: #fff;
    border-color: rgba(113, 232, 246, 0.68);
    box-shadow:
        0 30px 40px -18px rgba(9, 34, 49, 0.72),
        16px 19px 0 -6px #d6e1e6,
        16px 19px 0 -5px #73909e,
        0 0 30px rgba(52, 208, 229, 0.12);
    transform: rotateX(0) rotateY(0) translate3d(-3px, -6px, 18px);
}

.portal-card:hover::before,
.portal-card:focus-visible::before {
    transform: translateX(75%);
}

.portal-card:focus-visible {
    outline: 3px solid #48d7e9;
    outline-offset: 5px;
}

.portal-card__topline {
    position: absolute;
    top: 0;
    left: 30px;
    width: 78px;
    height: 4px;
    background: #58d9e9;
    box-shadow: 0 0 16px rgba(88, 217, 233, 0.48);
}

.portal-card__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 42px;
    border: 1px solid rgba(116, 224, 238, 0.38);
    border-radius: 4px;
    color: #84eff8;
    background: rgba(67, 162, 180, 0.09);
    font-size: 1.75rem;
    box-shadow: inset 0 0 20px rgba(62, 205, 225, 0.07);
    transform: translateZ(24px);
}

.portal-card__icon span {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

.portal-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.portal-card__category {
    margin-bottom: 7px;
    color: #83a6b5;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.portal-card__content strong {
    font-size: 1.55rem;
    letter-spacing: 0.04em;
}

.portal-card__description {
    margin-top: 12px;
    color: #b9cbd3;
    font-size: 0.92rem;
    line-height: 1.55;
}

.portal-card__action {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 25px;
    color: #81eaf4;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-card__action > span {
    font-size: 1.1rem;
    transition: transform 180ms ease;
}

.portal-card:hover .portal-card__action > span {
    transform: translate(3px, -3px);
}

@media (max-width: 768px) {
    .cyber-home {
        grid-template-columns: 1fr;
        padding: 34px 18px 54px;
    }

    .cyber-panel {
        padding: 30px 24px;
    }

    .cyber-panel h1 {
        font-size: clamp(1.55rem, 7.45vw, 2rem);
        letter-spacing: 0.025em;
    }

    .cyber-orbit {
        display: none;
    }

    .open-area {
        padding: 12px 2px 32px;
    }

    .open-area__grid {
        grid-template-columns: 1fr;
    }

    .portal-card {
        min-height: 315px;
        box-shadow:
            0 22px 30px -18px rgba(12, 33, 47, 0.65),
            7px 9px 0 -5px #d6e1e6,
            7px 9px 0 -4px #9aabb4;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .cyber-home {
        grid-template-columns: minmax(0, 1fr) 260px;
        padding: 60px 42px;
    }

    .cyber-orbit {
        width: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cyber-orbit__ring--outer,
    .cyber-orbit__ring--middle,
    .cyber-globe {
        animation: none;
    }

    .cyber-btn,
    .portal-card,
    .portal-card::before,
    .portal-card__action > span {
        transition: none;
    }
}

/* Intestazioni delle sezioni nelle aree standard */
.standard-area-section-title {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(25, 91, 108, 0.17);
    color: #163241;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.standard-area-section-title::after {
    content: "";
    width: min(150px, 20vw);
    height: 1px;
    margin-left: auto;
    background: linear-gradient(90deg, transparent, rgba(43, 195, 216, 0.6));
}

.standard-area-section-icon {
    position: relative;
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(33, 161, 181, 0.38);
    color: #176e7d;
    background: linear-gradient(145deg, rgba(219, 248, 251, 0.88), rgba(190, 231, 238, 0.48));
    box-shadow: inset 0 0 18px rgba(23, 155, 176, 0.08), 0 7px 16px rgba(10, 53, 67, 0.09);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.standard-area-section-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8px;
    width: 15px;
    height: 2px;
    background: #23bdd2;
    box-shadow: 0 0 8px rgba(35, 189, 210, 0.65);
}

.standard-area-section-icon svg {
    width: 25px;
    height: 25px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(39, 190, 210, 0.2));
}

.standard-area-section-icon .cyber-icon-accent {
    stroke: #20aabf;
}

.standard-area-section-icon .cyber-icon-play {
    fill: rgba(32, 170, 191, 0.22);
    stroke: #16899c;
}

@media (max-width: 576px) {
    .standard-area-section-title {
        gap: 10px;
        font-size: 0.82rem;
        letter-spacing: 0.09em;
    }

    .standard-area-section-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }
}

/* Scelta del tipo area */
.area-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.area-type-option {
    display: block;
    cursor: pointer;
}

.area-type-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.area-type-option__surface {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 2px 14px;
    align-items: center;
    padding: 15px 17px;
    border: 1px solid #d6e2e7;
    border-radius: 5px;
    color: #1b3542;
    background: #f9fcfd;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.area-type-option__icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(29, 163, 182, 0.4);
    color: #16798a;
    background: rgba(52, 202, 222, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.area-type-option__surface strong {
    font-size: 0.95rem;
}

.area-type-option__surface small {
    color: #6b7d86;
    line-height: 1.4;
}

.area-type-option:hover .area-type-option__surface {
    border-color: rgba(28, 167, 188, 0.55);
    transform: translateY(-1px);
}

.area-type-option > input:checked + .area-type-option__surface {
    border-color: #20aec2;
    background: linear-gradient(100deg, rgba(217, 249, 252, 0.9), #fff);
    box-shadow: 0 0 0 2px rgba(32, 174, 194, 0.12), 0 10px 24px rgba(12, 73, 88, 0.09);
}

.area-type-option > input:focus-visible + .area-type-option__surface {
    outline: 3px solid rgba(37, 140, 251, 0.28);
    outline-offset: 2px;
}

/* Anteprima eliminazione area */
.area-delete-modal {
    overflow: hidden;
    border: 1px solid rgba(58, 104, 118, 0.35);
    border-radius: 7px;
}

.area-delete-modal .modal-header {
    border-bottom-color: rgba(41, 97, 112, 0.2);
    background: linear-gradient(110deg, #102a38, #071923);
    color: #effdff;
}

.area-delete-modal .modal-header .btn-close {
    filter: invert(1) grayscale(1);
}

.area-delete-modal__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #ff9b9b;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.area-delete-modal__loading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 90px;
    color: #53717d;
}

.area-delete-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin: 18px 0;
}

.area-delete-summary > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid #d7e3e7;
    background: #f7fafb;
}

.area-delete-summary span {
    color: #71838b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.area-delete-summary strong {
    color: #193744;
    font-size: 0.92rem;
}

.area-delete-list {
    margin-top: 18px;
}

.area-delete-list h6 {
    color: #173744;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.area-delete-list ul {
    max-height: 145px;
    margin: 0;
    padding: 10px 12px 10px 30px;
    overflow: auto;
    border: 1px solid #dae4e8;
    border-radius: 4px;
    background: #f8fafb;
}

.area-delete-list li + li {
    margin-top: 4px;
}

.area-delete-list code {
    color: #405b66;
    overflow-wrap: anywhere;
}

.area-delete-list--preserved ul {
    border-color: #cbe4db;
    background: #f4fbf8;
}

/* Area personalizzata Calcio */
.full-bleed-page {
    margin-bottom: 0;
    overflow-x: hidden;
    background: #031219;
}

.full-bleed-page .wrapper,
.full-bleed-page .content-wrapper,
.full-bleed-page main {
    min-width: 0;
}

.full-bleed-page .content-wrapper {
    background: #031219;
}

.football-hub {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: calc(100vh - 57px);
    margin: 0;
    padding: clamp(30px, 5vw, 68px);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    color: #eafff9;
    background:
        radial-gradient(circle at 78% 15%, rgba(21, 229, 169, 0.14), transparent 29%),
        radial-gradient(circle at 12% 92%, rgba(15, 171, 211, 0.12), transparent 31%),
        linear-gradient(137deg, #062a29 0%, #041a20 48%, #031219 100%);
    box-shadow: inset 0 0 90px rgba(74, 229, 189, 0.04);
    font-family: "Inter", "Segoe UI", sans-serif;
}

.football-hub::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(136, 255, 228, 0.08) 5px);
}

.football-hub::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -190px;
    right: -170px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(108, 255, 218, 0.16);
    border-radius: 50%;
    pointer-events: none;
    box-shadow:
        0 0 0 52px rgba(76, 227, 191, 0.025),
        0 0 0 104px rgba(76, 227, 191, 0.018);
}

.football-hub__pitch {
    position: absolute;
    z-index: -1;
    inset: 7%;
    border: 1px solid rgba(104, 240, 205, 0.075);
    pointer-events: none;
}

.football-hub__midline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(104, 240, 205, 0.075);
}

.football-hub__circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(104, 240, 205, 0.075);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.football-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.football-hero > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.football-hero__eyebrow,
.football-panel__eyebrow {
    color: #68f0c9;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.football-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(1.15rem, 3.1vw, 3.65rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.94;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 0 0 32px rgba(72, 239, 194, 0.15);
}

.football-hero p {
    max-width: 630px;
    margin: 0;
    color: #a8ccc6;
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    line-height: 1.7;
}

.football-hero__emblem {
    display: grid;
    flex: 0 0 auto;
    width: clamp(104px, 13vw, 156px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(103, 241, 205, 0.28);
    border-radius: 34%;
    color: #72f4d0;
    background: linear-gradient(145deg, rgba(32, 105, 89, 0.38), rgba(4, 27, 33, 0.78));
    box-shadow:
        0 24px 48px rgba(0, 10, 13, 0.36),
        inset 0 1px rgba(255, 255, 255, 0.1),
        0 0 28px rgba(75, 235, 193, 0.08);
    transform: rotate(4deg);
}

.football-hero__emblem svg {
    width: 72%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 7px rgba(84, 245, 202, 0.38));
}

.football-dock-shell {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: clamp(30px, 4vw, 52px) auto 0;
    padding: 5px;
    border: 1px solid rgba(133, 247, 219, 0.2);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(34, 83, 76, 0.28), rgba(2, 18, 24, 0.69));
    box-shadow: 0 22px 42px rgba(0, 11, 15, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.football-dock-shell::before {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -1px;
    left: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6ff6d1, transparent);
    box-shadow: 0 0 14px rgba(84, 245, 202, 0.45);
}

.football-dock {
    display: flex;
    gap: clamp(8px, 2vw, 22px);
    max-width: 100%;
    padding: 14px 18px 17px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.football-dock::-webkit-scrollbar {
    display: none;
}

.football-dock__item {
    display: flex;
    flex: 0 0 86px;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    color: #a8c9c4;
    background: transparent;
    cursor: pointer;
    scroll-snap-align: center;
    transform-origin: center bottom;
    transition: color 180ms ease, transform 260ms cubic-bezier(0.2, 0.85, 0.25, 1.35);
}

.football-dock__icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(145, 235, 214, 0.18);
    border-radius: 19px;
    background:
        linear-gradient(145deg, rgba(26, 83, 76, 0.7), rgba(4, 26, 33, 0.94)),
        #072a2b;
    box-shadow:
        0 13px 20px rgba(0, 8, 12, 0.34),
        inset 0 1px rgba(255, 255, 255, 0.1),
        inset 0 -12px 22px rgba(0, 0, 0, 0.18);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.football-dock__icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: filter 180ms ease;
}

.football-dock__accent {
    fill: rgba(104, 240, 201, 0.15);
}

.football-dock__label {
    font-size: 0.73rem;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.football-dock__item:hover,
.football-dock__item:focus-visible {
    z-index: 2;
    color: #e9fff9;
    outline: none;
    transform: translateY(-10px) scale(1.15);
}

.football-dock__item:has(+ .football-dock__item:hover),
.football-dock__item:hover + .football-dock__item,
.football-dock__item:has(+ .football-dock__item:focus-visible),
.football-dock__item:focus-visible + .football-dock__item {
    transform: translateY(-4px) scale(1.06);
}

.football-dock__item:hover .football-dock__icon,
.football-dock__item:focus-visible .football-dock__icon,
.football-dock__item.is-active .football-dock__icon {
    border-color: rgba(104, 246, 207, 0.72);
    background: linear-gradient(145deg, rgba(36, 145, 116, 0.82), rgba(5, 47, 49, 0.97));
    box-shadow:
        0 18px 28px rgba(0, 9, 12, 0.42),
        inset 0 1px rgba(255, 255, 255, 0.18),
        0 0 24px rgba(75, 235, 193, 0.17);
}

.football-dock__item.is-active {
    color: #76f6d3;
}

.football-dock__item.is-active .football-dock__icon svg {
    filter: drop-shadow(0 0 5px rgba(92, 255, 211, 0.42));
}

.football-panels {
    margin-top: clamp(34px, 5vw, 56px);
}

.football-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(86px, 0.22fr) minmax(0, 1fr);
    align-items: center;
    min-height: 210px;
    padding: clamp(26px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(97, 238, 202, 0.18);
    color: #eafffa;
    background:
        linear-gradient(120deg, rgba(14, 75, 68, 0.54), rgba(3, 24, 31, 0.74)),
        rgba(4, 30, 34, 0.78);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.055), 0 22px 44px rgba(0, 12, 16, 0.2);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
    animation: football-panel-in 360ms ease both;
}

.football-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #70f6d1);
    box-shadow: 0 0 16px rgba(84, 245, 202, 0.45);
}

.football-panel[hidden] {
    display: none !important;
}

.football-panel__number {
    color: transparent;
    font-size: clamp(4.8rem, 10vw, 8.5rem);
    font-weight: 900;
    letter-spacing: -0.09em;
    line-height: 0.8;
    -webkit-text-stroke: 1px rgba(111, 246, 210, 0.3);
}

.football-panel h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 780;
    letter-spacing: -0.04em;
}

.football-panel p {
    max-width: 650px;
    margin: 0;
    color: #a7cac5;
    line-height: 1.7;
}

@keyframes football-panel-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .area-delete-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .football-hub {
        min-height: calc(100vh - 57px);
        padding: 30px 18px 36px;
        border-radius: 0;
    }

    .football-hero {
        align-items: flex-start;
    }

    .football-hero__emblem {
        width: 78px;
        border-radius: 24px;
    }

    .football-dock-shell {
        width: 100%;
        margin-top: 30px;
    }

    .football-dock {
        justify-content: flex-start;
        padding-inline: calc(50% - 43px);
    }

    .football-panel {
        grid-template-columns: 1fr;
        min-height: 230px;
    }

    .football-panel__number {
        position: absolute;
        right: 26px;
        bottom: 18px;
        opacity: 0.4;
    }

    .football-panel > div {
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 430px) {
    .football-hero__emblem {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .football-dock {
        scroll-behavior: auto;
    }

    .football-dock__item,
    .football-dock__icon {
        transition: none;
    }

    .football-panel {
        animation: none;
    }
}
