/* STUDIO AVOLA / SECTION 03 - solo regole della sezione */
.avola-method {
    --avola-teal: #73e4df;
    --avola-muted: #a0b9bb;

    display: grid;
    grid-template-columns: 44% 56%;
    min-height: 920px;
    overflow: hidden;
    color: #eaf4f3;

    background-color: #041f26;
    background-image: url('../images/sfondo-metodo.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.avola-method, .avola-method * { box-sizing: border-box; }
.avola-method-copy { position: relative; z-index: 2; padding: 100px 3vw 70px 8vw; }
.avola-method-label { color: var(--avola-teal); font-size: 14px; letter-spacing: .18em; font-weight: 700; }
.avola-method h2 { font-size: clamp(48px, 5.5vw, 100px); line-height: 1.08; font-weight: 300; letter-spacing: -.06em; margin: 45px 0 30px; }
.avola-method h2 em { font-style: normal; color: var(--avola-teal); }
.avola-method-copy p { max-width: 420px; color: var(--avola-muted); font-size: 15px; line-height: 1.9; }
.avola-method-copy .btn-default { margin-top: 20px; }
.avola-tooth-panel { position: relative; height: 920px; min-height: 580px; overflow: hidden; isolation: isolate; }
.avola-tooth-canvas { position: absolute; inset: 0; touch-action: none; }
.avola-tooth-canvas canvas { display: block; width: 100%; height: 100%; }
.avola-tooth-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.avola-tooth-lines line { stroke: var(--avola-teal); stroke-width: 1.6; stroke-dasharray: 5 4; display: none; }
/* Punto centrale e alone pulsante, visibili soltanto dopo la selezione. */
.avola-tooth-lines circle { fill: var(--avola-teal); display: none; }
.avola-tooth-lines .avola-anatomy-halo {
    fill: rgba(115, 228, 223, .09);
    stroke: var(--avola-teal);
    stroke-width: 1.8;
    transform-box: fill-box;
    transform-origin: center;
    animation: avola-anatomy-pulse 2s ease-out infinite;
}
@keyframes avola-anatomy-pulse {
    0% { opacity: .95; transform: scale(.65); }
    65% { opacity: .4; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(1.85); }
}
@media (prefers-reduced-motion: reduce) {
    .avola-tooth-lines .avola-anatomy-halo { animation: none; }
}
.avola-tooth-ui { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 9px; z-index: 4; }
.avola-anatomy-btn { color: #c8e5e4; border: 1px solid rgba(115,228,223,.25); background: rgba(6,50,58,.88); text-align: left; padding: 11px 14px; cursor: pointer; font: inherit; font-size: 13px; }
.avola-anatomy-btn[aria-pressed="true"], .avola-anatomy-btn:hover { border-color: var(--avola-teal); color: var(--avola-teal); }
.avola-anatomy-btn:disabled { opacity: .5; cursor: wait; }
.avola-anatomy-info { position: absolute; bottom: 50px; left: 24px; max-width: 380px; padding: 15px 20px; background: rgba(4,39,46,.94); border-left: 2px solid var(--avola-teal); z-index: 4; }
.avola-anatomy-info[hidden] { display: none; }
.avola-anatomy-info strong { color: var(--avola-teal); }
.avola-anatomy-info p { font-size: 13px; line-height: 1.6; margin: 6px 0 0; }
.avola-tooth-hint { position: absolute; bottom: 16px; left: 24px; color: #b1d2d2; font-size: 12px; z-index: 3; }
.avola-tooth-hint[hidden] { display: none; }
.avola-tooth-loader { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 8; width: min(280px, 72%); text-align: center; padding: 22px 24px; color: #eaf4f3; background: rgba(4,31,38,.88); border: 1px solid rgba(115,228,223,.18); border-radius: 8px; }
.avola-tooth-loader[hidden] { display: none; }
.avola-loader-title { display: block; font-size: 13px; letter-spacing: .04em; margin-bottom: 14px; }
.avola-loader-track { height: 4px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.15); }
.avola-loader-track > div { width: 0%; height: 100%; background: var(--avola-teal); transition: width .2s ease; }
.avola-loader-percent { display: block; font-size: 12px; margin-top: 10px; color: var(--avola-teal); }
@media (max-width: 900px) {
    .avola-method { grid-template-columns: 1fr; }
    .avola-method-copy { padding: 55px 7vw 0; }
    .avola-method h2 { font-size: clamp(45px, 10vw, 80px); margin: 24px 0; }
    .avola-tooth-panel { height: 680px; min-height: 680px; }
    .avola-tooth-ui { right: 10px; }
    .avola-anatomy-btn { font-size: 15px; padding: 10px; }
    .avola-anatomy-info { left: 12px; right: 12px; bottom: 40px; }
	
}
/* SECTION 03 — Titolo bianco e verde acqua */
.avola-method h2,
.avola-method h2 span {
    color: #F1F8F8;
}

.avola-method h2 em {
    color: #73E4DF;
}

/* Testi introduttivi più leggibili */
.avola-method p {
    font-size: 17px;
    line-height: 1.75;
}

/* Didascalie anatomiche */
.avola-method .anatomy-label,
.avola-method .anatomy-label button {
    font-size: 15px;
}

/* Descrizione della parte anatomica selezionata */
.avola-method .anatomy-info {
    font-size: 15px;
    line-height: 1.6;
}

/* Dispositivi mobili */
@media (max-width: 767px) {
    .avola-method p {
        font-size: 16px;
    }

    .avola-method .anatomy-label,
    .avola-method .anatomy-label button,
    .avola-method .anatomy-info {
        font-size: 14px;
    }
}
