/* Decorative layers are clipped independently, so the controls remain accessible. */
.hero{height:clamp(360px,49.7vw,740px);isolation:isolate;overflow:visible;background:#f6eee5}
.hero-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.hero-fabric{position:absolute;inset:-8%;background:#f6eee5 url('hero-tessuto.webp') center/cover;animation:fabric-breathe 10s ease-in-out -4s infinite alternate}
.hero-shape{position:absolute;background:radial-gradient(ellipse at 65% 25%,#b0161a 0%,#89090d 53%,#560509 100%);animation:shape-breathe 25s ease-in-out infinite alternate}
.shape-left{width:65%;height:150%;left:-33%;top:-90%;border-radius:50%;transform:rotate(-15deg)}
.shape-right{width:57%;height:100%;right:-30%;bottom:-73%;border-radius:50%;transform:rotate(-35deg);animation-delay:-11s}
.leaf-position{position:absolute;perspective:1100px}
.leaf-position img{display:block;width:100%;height:auto;animation:leaf-axis 32s linear -2s infinite;transform-origin:50% 50%;backface-visibility:visible}
.leaf-left{width:30%;left:-3%;top:9%;rotate:-10deg}
.leaf-right{width:29%;right:-8%;bottom:9%;rotate:-85deg}
.leaf-right img{animation-name:leaf-axis;animation-duration:40s;animation-delay:-9s}
.leaf-back{width:7%;opacity:.22;filter:blur(5px)}
.back-one{left:28%;top:21%;rotate:-15deg}.back-two{right:13%;top:29%;rotate:20deg;width:10%}
.leaf-back img{animation-name:leaf-axis;animation-duration:46s;animation-delay:-12s}
.hero-brand{position:absolute;top:33%;left:50%;width:39%;transform:translateX(-50%);text-align:center}
.hero-brand h1{margin:0;font-size:inherit}.hero-brand a{display:block}.hero-brand svg{display:block;width:100%;height:auto}
.brand-rule{display:block;width:20%;height:1px;background:var(--red);margin:5% auto 3%}
.hero-brand p{margin:0;color:var(--navy);font:normal clamp(23px,3.5vw,52px)/1.2 Georgia,serif;white-space:nowrap}
.hero .icon-btn{top:5%;transform:none;min-width:48px;min-height:48px}
.hero .menu-btn{left:4%}.hero .search-btn{right:4%}
.hero .menu-btn span{background:#fff5e9;width:30px;height:2px}
.hero .menu,.hero .search-panel{top:calc(5% + 60px)}
.motion-btn{position:absolute;bottom:12px;right:4%;border:1px solid #fff7;border-radius:24px;min-width:44px;height:44px;padding:0 14px;background:#fff1e5e6;color:#76090e;cursor:pointer;font:14px Georgia}
.category-card{background:linear-gradient(120deg,#f1eae0,#eae0d3);box-shadow:inset 0 0 30px #fff5,0 2px 7px #69513a0b}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #071737;outline-offset:4px}
.hero .menu-btn:focus-visible{outline-color:white}
.search-status{margin:10px 0 0;font:15px/1.4 Georgia;color:var(--navy)}
.hero.is-paused .hero-scene *,.hero.is-offscreen .hero-scene *{animation-play-state:paused!important}
@media(min-width:761px) and (max-width:1000px){.category-card{padding-left:22px}.category-card h3{font-size:28px}.category-card-lotto h3{font-size:25px}}
@keyframes fabric-breathe{from{transform:translate3d(-1.8%,-.9%,0) scale(1.025)}to{transform:translate3d(1.8%,1.1%,0) scale(1.055)}}
@keyframes leaf-axis{from{transform:rotate3d(1,.65,0,0deg)}to{transform:rotate3d(1,.65,0,360deg)}}
@keyframes shape-breathe{from{translate:0 0}to{translate:1px 1px}}
@media(max-width:760px){
 .hero{height:clamp(320px,64vw,450px)}
 .hero-brand{width:61%;top:38%}.hero-brand p{font-size:clamp(23px,4vw,32px)}
 .leaf-left{width:34%;left:-6%;top:12%}.leaf-right{width:33%;right:-10%;bottom:0}
 .shape-left{width:75%;left:-44%;top:-94%}.shape-right{width:65%;right:-38%;bottom:-79%}
 .hero .icon-btn{top:12px}.hero .menu,.hero .search-panel{top:70px}
 .hero-fabric,.hero-shape{animation:none}.leaf-back{display:none}.leaf-position{transform:none!important}
 .leaf-position img{animation-duration:44s;animation-name:leaf-axis}.motion-btn{bottom:8px;right:12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero:not(.motion-enabled) .hero-scene *{animation:none!important;transform:none!important}.hero:not(.motion-enabled) .leaf-back{display:none}}

/* The original image remains a static fallback; rotation belongs to geometry. */
.leaf-position img{animation:none!important}
.leaf-volume{display:block;width:100%;height:auto;aspect-ratio:1.5;pointer-events:none}
.has-volume>img{display:none}

