/* Component: Image Hotspots */
.image-hotspots-container {
    position: relative;
    width: 100%;
    margin: 0 auto
}

/* Header Titles */
.hotspots-header {
    margin-bottom: 10px;
    text-align: left;
    margin-top: 30px;
}

.hotspots-supertitle {
    color: #003262;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    opacity: 0.6;
}

.hotspots-title {
    color: #003262;
    font-size: 28px !important;
    font-weight: 700;
    margin: 0;
    line-height: 1.2 !important;
    text-transform: uppercase;
    display: inline;
}

.hotspots-subtitle {
    color: #003262;
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    display: inline;
    text-transform: uppercase;
}

.hotspots-layout {
    display: flex;
    gap: 0;
    align-items: stretch
}

.hotspots-image-section {
	margin: 15px 0;
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 1;
    min-width: 0
}

.image-hotspots-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1
}

.image-hotspots-wrapper img {
    margin-bottom: 0 !important;
    border-radius: 15px;
}

.hotspots-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block
}

.hotspot-point {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer !important;
    z-index: 100 !important;
    width: 90px;
    height: 90px;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    pointer-events: all !important;
    user-select: none
}

/* Cerchio esterno - #D6E1EA 40% opacità - sempre visibile */
.hotspot-circle-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 92px;
    background: #D6E1EA;
    opacity: 0.4;
    border-radius: 50%;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    z-index: 1;
    pointer-events: none
}

/* Cerchio medio - #D6E1EA - sempre visibile */
.hotspot-circle-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    background: #D6E1EA;
    opacity: 1;
    border-radius: 50%;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    z-index: 2;
    pointer-events: none
}

/* Cerchio interno - stato inattivo #003262 */
.hotspot-circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    background: #A5BCCE;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003262;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    z-index: 3;
    pointer-events: none;
    cursor: pointer
}

.hotspot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(165, 188, 206, .4);
    animation: pulse 2.5s cubic-bezier(.4, 0, .6, 1) infinite;
    z-index: 1;
    pointer-events: none
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .5
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: .2
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .5
    }
}

/* Hover State */
.hotspot-point:hover .hotspot-circle-inner {
    background: rgba(0, 61, 107, .9);
    border-color: #fff;
    color: #fff;
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 61, 107, .6)
}

/* Active State - cambia colore del cerchio interno e del testo */
.hotspot-point.active .hotspot-circle-inner {
    background: #003262;
    color: #ffffff;
    font-weight: 700
}

.hotspot-point.active .hotspot-pulse {
    animation: pulse-active 2s cubic-bezier(.4, 0, .6, 1) infinite
}

@keyframes pulse-active {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .5;
        background: rgba(214, 225, 234, .4)
    }

    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .5
    }
}

.hotspots-details-panel {
    background: #fff;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 30%;
    flex-shrink: 0;
    min-height: 100%
}

.hotspot-detail {
    margin-left: 20px;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0s 0.4s;
    padding: 15px 20px;
    text-align: center;
    background-color: #F0F4F7;
    border-radius: 10px;
    border: 1px solid rgba(0, 50, 90, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hotspot-detail.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0s 0s;
    position: relative;
}

/* Contenitore per il contenuto superiore */
.hotspot-detail > *:not(.hotspot-detail-button) {
    flex-shrink: 0;
}

.hotspot-detail-number {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cerchio esterno - #D6E1EA 40% opacità */
.hotspot-detail-circle-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #D6E1EA;
    opacity: 0.4;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none
}

/* Cerchio medio - #D6E1EA opaco */
.hotspot-detail-circle-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 66px;
    background: #D6E1EA;
    opacity: 1;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none
}

/* Cerchio interno - #003262 */
.hotspot-detail-circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: #003262;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    z-index: 3;
    pointer-events: none
}

.hotspot-detail-label {
    font-size: 16px;
    font-style: italic;
    color: #003262;
    opacity: 0.5;
}

.hotspot-detail-title {
    font-size: 20px !important;
    font-weight: 700;
	line-height: 1.2 !important;
    color: #003262;
    text-transform: uppercase;
}

.hotspot-detail-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain
}

.hotspot-detail-image img {
    margin-bottom: 0 !important;
}
.hotspot-detail-description {
    font-size: 16px;
    color: #003262;
    max-width: 400px;
    text-align: center;
    padding-bottom: 15px;
}

.hotspot-detail-button {
    display: inline-block;
    background: #003262;
    color: #ffffff !important;
    padding: 10px 50px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
	margin-top: auto;
    box-shadow: 0 4px 12px rgba(0, 50, 98, 0.2);
    flex-shrink: 0;
}

.hotspot-detail-button:hover {
    background: #002847;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 50, 98, 0.3)
}

.hotspot-detail-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 50, 98, 0.2)
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Frecce di navigazione per mobile */
.hotspots-navigation {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    margin-top: 20px
}

.hotspot-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #003262;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 50, 98, 0.2)
}

.hotspot-nav-btn:hover {
    background: #002847;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 50, 98, 0.3)
}

.hotspot-nav-btn:active {
    transform: scale(0.95)
}

.hotspot-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none
}

.hotspot-nav-btn svg {
    display: block
}

@media (max-width:1200px) {
    .hotspots-layout {
        flex-direction: column
    }
    
    .hotspots-details-panel {
        width: 100%
    }

    .hotspot-point {
        font-size: 1.15rem
    }

    .hotspot-detail {
        margin-left: 0
    }
}

@media (max-width:768px) {
	.hotspot-detail-button {
		padding: 10px !important;
	}
    .hotspots-header {
        margin-bottom: 20px
    }

    .hotspots-supertitle {
        font-size: 14px;
        margin-bottom: 6px
    }

    .hotspots-title {
        font-size: 24px;
        display: inline
    }

    .hotspots-subtitle {
        font-size: 16px;
        display: inline;
        margin-left: 8px
    }

    .hotspots-layout {
        grid-template-rows: auto auto
    }

    .hotspot-point {
        width: 50px;
        height: 50px
    }

    .hotspot-circle-outer {
        width: 50px;
        height: 50px
    }

    .hotspot-circle-middle {
        width: 42px;
        height: 42px
    }

    .hotspot-circle-inner {
        width: 34px;
        height: 34px;
        font-size: 12px
    }

    .hotspot-pulse {
        width: 40px;
        height: 40px
    }

    .hotspots-navigation {
        display: flex
    }

    .hotspot-detail {
        padding: 40px 30px
    }

    .hotspot-detail-number {
        width: 60px;
        height: 60px
    }

    .hotspot-detail-circle-outer {
        width: 60px;
        height: 60px
    }

    .hotspot-detail-circle-middle {
        width: 50px;
        height: 50px
    }

    .hotspot-detail-circle-inner {
        width: 40px;
        height: 40px;
        font-size: 16px
    }

    .hotspot-detail-title {
        font-size: 22px
    }

    .hotspot-detail-image {
        max-width: 100%
    }

    .hotspot-detail-description {
        font-size: 14px
    }
}

@media (max-width:480px) {
    .hotspots-image-section {
        margin-bottom: 25px;
    }

    .hotspot-point {
        width: 45px;
        height: 45px
    }

    .hotspot-circle-outer {
        width: 45px;
        height: 45px
    }

    .hotspot-circle-middle {
        width: 38px;
        height: 38px
    }

    .hotspot-circle-inner {
        width: 30px;
        height: 30px;
        font-size: 11px
    }

    .hotspot-pulse {
        width: 36px;
        height: 36px
    }

    .hotspot-detail {
        padding: 30px 20px
    }

    .hotspot-detail-number {
        width: 70px;
        height: 70px
    }

    .hotspot-detail-circle-outer {
        width: 72px;
        height: 72px
    }

    .hotspot-detail-circle-middle {
        width: 65px;
        height: 65px
    }

    .hotspot-detail-circle-inner {
        width: 50px;
        height: 50px;
        font-size: 16px
    }

    .hotspot-detail-title {
        font-size: 18px !important;
		line-height: 1.2 !important;
    }

    .hotspot-detail-label {
        font-size: 16px
    }

    .hotspot-detail-button {
        padding: 14px 30px;
        font-size: 14px
    }
}