/* Tema Antera — stili aggiuntivi a theme.json */
:root{--antera-card:28px 28px 28px 6px}
body{-webkit-font-smoothing:antialiased}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--wp--preset--color--accento);outline-offset:3px;border-radius:4px}
.skip-link:focus{background:var(--wp--preset--color--inchiostro);color:#fff;padding:.75rem 1rem;z-index:100000}

/* Intestazione */
.antera-header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--wp--preset--color--crema) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid rgba(46,42,39,.08)}
.antera-header .wp-block-site-title a{text-decoration:none;color:var(--wp--preset--color--primario)}
.antera-header .wp-block-navigation a{text-decoration:none}
.antera-header .wp-block-navigation a:hover{text-decoration:underline;text-underline-offset:4px}

/* Card a petalo */
.is-style-card{background:var(--wp--preset--color--bianco);border-radius:var(--antera-card);padding:clamp(1.25rem,3vw,2rem);box-shadow:0 1px 0 rgba(0,0,0,.04);transition:transform .25s ease,box-shadow .25s ease;height:100%}
.is-style-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(46,42,39,.10)}
.is-style-card > :first-child{margin-top:0}
.is-style-card .antera-icona{width:56px;height:56px;border-radius:50%;background:var(--wp--preset--color--tenue);display:grid;place-items:center;margin-bottom:.75rem}
.is-style-card .antera-icona svg{width:28px;height:28px;stroke:var(--wp--preset--color--primario);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.is-style-card a.antera-scopri{font-weight:700}

/* Immagine a petalo */
.is-style-petalo img{border-radius:48% 48% 48% 8% / 48% 48% 48% 8%;aspect-ratio:1;object-fit:cover}

/* Sfondo con petali decorativi */
.is-style-petali{position:relative;overflow:hidden;isolation:isolate}
.is-style-petali::before,.is-style-petali::after{content:"";position:absolute;z-index:-1;width:clamp(180px,30vw,380px);aspect-ratio:1;border-radius:50% 0 50% 0;opacity:.14;pointer-events:none}
.is-style-petali::before{background:var(--wp--preset--color--primario);top:-60px;right:-60px;transform:rotate(15deg)}
.is-style-petali::after{background:var(--wp--preset--color--secondario);bottom:-80px;left:-70px;transform:rotate(-20deg)}

/* Fiore dell'hero */
.antera-fiore svg{width:100%;max-width:400px;height:auto;margin-inline:auto;display:block}
.antera-fiore .petali{transform-origin:200px 200px;animation:antera-ruota 80s linear infinite}
@keyframes antera-ruota{to{transform:rotate(360deg)}}

/* Citazione a tutta larghezza */
.antera-citazione p{font-family:var(--wp--preset--font-family--titoli);font-size:var(--wp--preset--font-size--x-large);line-height:1.3;max-width:900px;margin-inline:auto}

/* Data evento */
.antera-data{background:var(--wp--preset--color--accento);color:var(--wp--preset--color--inchiostro);border-radius:20px;padding:.75rem 1rem;text-align:center;font-weight:700;line-height:1.2;min-width:5.5rem;flex:0 0 auto}
.antera-data .giorno{display:block;font-family:var(--wp--preset--font-family--titoli);font-size:2rem}
.antera-eventi{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));padding:0;list-style:none}
.antera-evento{display:flex;flex-direction:column;background:var(--wp--preset--color--bianco);border-radius:var(--antera-card);overflow:hidden;transition:transform .25s,box-shadow .25s}
.antera-evento:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(46,42,39,.10)}
.antera-evento img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:var(--wp--preset--color--tenue)}
.antera-evento .corpo{padding:1.25rem;display:flex;gap:1rem;align-items:flex-start}
.antera-evento h3{margin:0 0 .25rem;font-size:1.15rem}
.antera-evento h3 a{color:inherit;text-decoration:none}
.antera-evento h3 a::after{content:"";position:absolute;inset:0}
.antera-evento{position:relative}
.antera-evento .meta{color:var(--wp--preset--color--grigio);font-size:.95rem;margin:0}
.antera-evento-passato .antera-data{background:var(--wp--preset--color--tenue)}
.antera-anno{margin-top:2.5rem}
.antera-dettagli{background:var(--wp--preset--color--tenue);border-radius:var(--antera-card);padding:1.5rem}
.antera-dettagli dt{font-weight:700}.antera-dettagli dd{margin:0 0 .75rem}

/* Segnaposto [DA COMPLETARE] ben visibile */
.antera-da-completare,mark.da-completare{background:#FFF1B8;color:#5a4300;padding:.1em .35em;border-radius:4px;font-weight:700}

/* Barra sicurezza e pulsante Esci subito (plugin antera-core) */
.antera-barra-aiuto{background:var(--wp--preset--color--inchiostro);color:#fff;font-size:.9rem;padding:.4rem 20px;text-align:center}
.antera-barra-aiuto a{color:var(--wp--preset--color--accento);font-weight:700}

/* FAQ */
.wp-block-details{background:var(--wp--preset--color--bianco);border-radius:18px;padding:1rem 1.25rem}
.wp-block-details summary{font-weight:700;cursor:pointer}

/* Animazioni allo scroll (attivate da antera.js) */
.antera-js .is-style-appare > *{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.antera-js .is-style-appare.visibile > *{opacity:1;transform:none}
.antera-js .is-style-appare.visibile > *:nth-child(2){transition-delay:.08s}
.antera-js .is-style-appare.visibile > *:nth-child(3){transition-delay:.16s}
.antera-js .is-style-appare.visibile > *:nth-child(4){transition-delay:.24s}

/* Modulo contatti */
.antera-form label{display:block;font-weight:700;margin:.75rem 0 .25rem}
.antera-form input[type=text],.antera-form input[type=email],.antera-form input[type=tel],.antera-form select,.antera-form textarea{width:100%;padding:.75rem;border:2px solid #cdbfb4;border-radius:12px;font:inherit;background:#fff;box-sizing:border-box}
.antera-form .hp{position:absolute;left:-9999px}
.antera-form .consenso{display:block;padding-left:1.9rem;font-weight:400}
.antera-form .consenso input{margin:0 .6rem 0 -1.9rem;width:1.2rem;height:1.2rem;vertical-align:-.2em;accent-color:var(--wp--preset--color--primario)}
.antera-form button{margin-top:1rem;background:var(--wp--preset--color--primario);color:#fff;border:0;border-radius:999px;padding:.85rem 1.6rem;font:inherit;font-weight:700;cursor:pointer}
.antera-avviso{padding:1rem;border-radius:12px;background:var(--wp--preset--color--tenue)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .antera-js .is-style-appare > *{opacity:1;transform:none}
}
@media print{.antera-esci,.antera-barra-aiuto,.antera-header{display:none}}
.antera-nav-cta > a{background:var(--wp--preset--color--primario);color:#fff!important;padding:.55rem 1.1rem!important;border-radius:999px;font-weight:700;white-space:nowrap}
.antera-nav-cta > a:hover{background:var(--wp--preset--color--inchiostro);text-decoration:none!important}
.antera-footer a{color:#fff}
.antera-footer .wp-block-navigation a{text-decoration:underline;text-underline-offset:3px}

/* Fiore dell'hero più piccolo sui telefoni */
@media (max-width:781px){.antera-fiore img{max-width:200px;height:auto}.antera-fiore{margin-top:0!important}}

/* Video */
.antera-video video{width:100%;height:auto;border-radius:var(--antera-card);background:var(--wp--preset--color--inchiostro);aspect-ratio:16/9}
.antera-video figcaption{color:var(--wp--preset--color--grigio);font-size:.9rem;text-align:center}

/* Foto */
.antera-foto img{width:100%;height:auto;max-height:520px;object-fit:cover;border-radius:28px 28px 28px 6px}

/* Sottotitolo sotto il logo */
.antera-sottotitolo{margin:0;font-size:.72rem;line-height:1.3;color:var(--wp--preset--color--primario)!important;font-weight:700;white-space:nowrap}
@media (max-width:600px){.antera-sottotitolo{font-size:.64rem}}
#modulo{scroll-margin-top:7rem}
.antera-icona-social{display:inline-block;vertical-align:-.15em;margin-right:.2em}
