.pwsl {
--pwsl-titolo: #c2185b; --pwsl-bottone: #c2185b;
position: relative; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
overflow: hidden; background: #f3efe9; font-family: inherit;
}
.pwsl-binario { position: relative; aspect-ratio: 8 / 3; min-height: 380px; max-height: 720px; }
.pwsl-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.pwsl-slide.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.pwsl-foto { position: absolute; inset: 0; display: block; overflow: hidden; }
.pwsl-foto img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; display: block; }
.pwsl-foto img { object-fit: cover; object-position: 70% 50%; transform: scale(1.06); transition: transform 7s ease-out; }
.pwsl-dx .pwsl-foto img { object-position: 30% 50%; }
.pwsl-slide.is-on .pwsl-foto img { transform: scale(1); }
.pwsl-tutta { position: absolute; inset: 0; z-index: 1; }
.pwsl-riquadro {
position: absolute; z-index: 2; top: 50%; left: clamp(16px, 6vw, 110px); transform: translateY(-50%);
width: min(440px, 40%); background: #fff; border-radius: 20px; padding: 34px 34px 32px; text-align: center;
box-shadow: 0 10px 40px rgba(0, 0, 0, .16);
}
.pwsl-dx .pwsl-riquadro { left: auto; right: clamp(16px, 6vw, 110px); }
.pwsl-slide.is-on .pwsl-riquadro { animation: pwsl-entra .8s .25s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pwsl-entra { from { opacity: 0; transform: translateY(calc(-50% + 18px)); } to { opacity: 1; transform: translateY(-50%); } }
.pwsl .pwsl-titolo { margin: 0 0 12px; color: var(--pwsl-titolo) !important; font-size: clamp(26px, 2.9vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; }
.pwsl .pwsl-testo { margin: 0 0 18px; font-size: 16px; line-height: 1.45; color: #4a443c; }
.pwsl .pwsl-bottone {
display: inline-block; margin-top: 8px; padding: 14px 30px; border-radius: 999px; background: var(--pwsl-bottone); color: #fff !important;
font-weight: 700; font-size: 16px; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease;
}
.pwsl .pwsl-bottone:hover, .pwsl .pwsl-bottone:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.pwsl-punti { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.pwsl-punto { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); cursor: pointer; transition: width .3s ease, background .3s ease; }
.pwsl-punto.is-on { width: 26px; border-radius: 6px; background: #fff; } @media (max-width: 700px) {
.pwsl-binario { aspect-ratio: auto; min-height: 0; max-height: none; height: calc(100vw * 1.25 + 190px); }
.pwsl-foto { bottom: 190px; }
.pwsl-foto img { object-position: 70% 50%; }
.pwsl-riquadro, .pwsl-dx .pwsl-riquadro {
top: auto; bottom: 26px; left: 16px; right: 16px; width: auto; transform: none; padding: 22px 20px 20px; border-radius: 18px;
}
.pwsl-slide.is-on .pwsl-riquadro { animation-name: pwsl-entra-tel; }
@keyframes pwsl-entra-tel { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pwsl .pwsl-titolo { font-size: 25px; margin-bottom: 8px; }
.pwsl .pwsl-testo { font-size: 14px; margin-bottom: 8px; }
.pwsl .pwsl-bottone { padding: 12px 26px; }
.pwsl { background: #fff; }
.pwsl-punti { bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
.pwsl-slide, .pwsl-foto img, .pwsl-riquadro { transition: none !important; animation: none !important; transform: none; }
.pwsl-riquadro { transform: translateY(-50%); }
}
@media (max-width: 700px) {
.pwsl-corto .pwsl-binario { height: calc(100vw * .8 + 190px); }
.pwsl-corto .pwsl-foto { bottom: 190px; }
}
@media (max-width: 700px) {
.pwsl-punto { background: #d9d2c8; box-shadow: none; }
.pwsl-punto.is-on { background: var(--pwsl-bottone); }
}