/*
Theme Name: Comunità Grisignana — Home modificabile
Template: uici-grisignana
Version: 1.0.0
Description: Home a blocchi con grafica del tema originale e ritorno alla versione precedente.
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
*/
.uici-editable-home{margin:0;padding:0}
.uici-editable-home .wp-block-group__inner-container{display:contents}
.uici-editable-home .wp-block-group{box-sizing:border-box}
.uici-editable-home .wp-block-group>*{margin-block-start:0}
.uici-editable-home .wp-block-group>*:last-child{margin-block-end:0}
.uici-editable-home .hero-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:70px;align-items:center}
.uici-editable-home .hero-copy>.eyebrow{margin-bottom:20px}
.uici-editable-home .hero-copy>h1{margin-bottom:27px}
.uici-editable-home .hero-copy>.hero-description{margin-bottom:30px}
.uici-editable-home .hero-copy>.hero-signature{margin-top:42px}
.uici-editable-home .hero-signature:before{content:'';display:block;width:35px;height:1px;background:#b49a62;flex-shrink:0}
.uici-editable-home .hero-caption:before{content:'';width:6px;height:6px;background:#e3c47c;border-radius:50%;flex-shrink:0}
.uici-editable-home .hero-image-frame img{width:100%;height:100%;object-fit:cover;display:block}
.uici-editable-home .hero-visual .hero-image-frame{margin:0}
.uici-editable-home .hero-visual .hero-caption{margin:-10px 22px 0 -20px}
.uici-editable-home .hero-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.uici-editable-home .wp-block-buttons{margin:0;gap:24px}
.uici-editable-home .wp-block-button__link{font-family:inherit;line-height:1.75;border:0}
.uici-editable-home .uici-primary .wp-block-button__link{background:var(--blue);color:white;border-radius:4px;padding:14px 23px;font-size:12px;font-weight:700;text-decoration:none}
.uici-editable-home .uici-text-button .wp-block-button__link{background:none;color:#1258a0;padding:3px 0;border-radius:0;border-bottom:1px solid #b8c7d5;font-size:12px;font-weight:700;text-decoration:none}
.uici-editable-home .uici-light .wp-block-button__link{background:white;color:var(--navy);border-radius:4px;padding:14px 23px;font-size:12px;font-weight:700;text-decoration:none}
.uici-editable-home .uici-primary .wp-block-button__link:hover{background:#0c4d9e}
.uici-editable-home .scroll-note{margin:0}
.uici-editable-home .section-heading{display:flex;justify-content:space-between;align-items:end;gap:35px}
.uici-editable-home .intro-grid.has-intro-photo{display:grid;grid-template-columns:1.05fr 1fr;gap:24px 75px;align-items:start}
.uici-editable-home .intro-portrait{grid-column:1;grid-row:1/3}
.uici-editable-home .intro-heading,.uici-editable-home .intro-copy{grid-column:2}
.uici-editable-home .section-photo{margin:0}
.uici-editable-home .intro-heading .eyebrow{margin-bottom:20px}
.uici-editable-home .intro-copy p{margin-bottom:24px}
.uici-editable-home .intro-portrait .photo-note{margin:-10px 0 0 20px}
.uici-editable-home .activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.uici-editable-home .activity-number{display:block;line-height:1.75;margin:0}
.uici-editable-home .activity-number:after{content:'';display:block;width:32px;height:2px;background:#c6a55e;margin:14px 0 20px}
.uici-editable-home .activity-body h3{margin-bottom:12px}
.uici-editable-home .activity-body p:not(.activity-number){margin-bottom:16px}
.uici-editable-home .join-inner.has-join-photo{display:grid;grid-template-columns:.85fr 1.3fr;gap:28px 48px;align-items:center}
.uici-editable-home .join-inner .wp-block-buttons{grid-column:2;justify-self:start}
.uici-editable-home .join-inner .join-copy{grid-column:2}
.uici-editable-home .uicic-panel p{margin-top:0}
.uici-editable-home .uicic-intro h2{margin-bottom:24px}
.uici-editable-home .uicic-intro p:not(.uicic-eyebrow){margin-bottom:24px}
.uici-editable-home .uicic-intro .uicic-email-line{margin-bottom:0}
@media(max-width:1100px) and (min-width:851px){.uici-editable-home .hero-layout{gap:45px}}
@media(max-width:850px){.uici-editable-home .hero-layout{gap:34px}.uici-editable-home .intro-grid.has-intro-photo{column-gap:38px}.uici-editable-home .activity-grid{gap:15px}.uici-editable-home .join-inner.has-join-photo{gap:24px 32px}.uici-editable-home .hero-visual .hero-caption{margin-left:-10px;margin-right:8px}}
@media(max-width:600px){.uici-editable-home .hero-layout{grid-template-columns:1fr;gap:24px}.uici-editable-home .intro-grid.has-intro-photo{display:flex;flex-direction:column;gap:28px}.uici-editable-home .section-heading{display:block}.uici-editable-home .activity-grid{grid-template-columns:1fr;gap:15px}.uici-editable-home .join-inner.has-join-photo{display:flex;flex-direction:column;align-items:stretch;gap:25px}.uici-editable-home .join-inner>.wp-block-buttons{align-self:flex-start}.uici-editable-home .hero-visual .hero-caption{margin-left:12px;margin-right:12px;margin-top:-15px}.uici-editable-home .uicic-wrap{grid-template-columns:1fr}.uici-editable-home .hero-signature{display:none}}
/* Nell'editor i contenuti sono visibili anche senza gli script di animazione. */
.editor-styles-wrapper .will-reveal{opacity:1;transform:none}
.editor-styles-wrapper .hero-copy,.editor-styles-wrapper .hero-image{animation:none!important}
.editor-styles-wrapper .uici-editable-home{max-width:none}
.editor-styles-wrapper .block-editor-block-list__layout .wp-block{max-width:none}
.editor-styles-wrapper .uici-editor-note{padding:18px;background:#e5effa;border:1px solid #b8c7d5;color:#102b46}

.uici-editable-home .hero-signature{margin-bottom:0}
.uicih-news-paged .uici-editable-home>section:not(.home-news){display:none}

/* Apertura fotografica a tutta larghezza — testo sovrapposto. */
.uici-editable-home .hero{position:relative;isolation:isolate;background:#102b46}
.uici-editable-home .hero .hero-layout{position:static;display:flex;align-items:center;min-height:clamp(580px,72svh,760px);padding-top:76px;padding-bottom:90px}
.uici-editable-home .hero .hero-visual{position:absolute;inset:0;z-index:0;width:100%;height:100%;padding:0;margin:0;max-width:none}
.uici-editable-home .hero .hero-visual:before{display:none}
.uici-editable-home .hero .hero-image-frame{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0!important;aspect-ratio:auto;border-radius:0;background:#102b46}
.uici-editable-home .hero .hero-image-frame img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center 45%;border-radius:0}
.uici-editable-home .hero:after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(6,24,42,.9) 0%,rgba(6,24,42,.75) 35%,rgba(6,24,42,.36) 70%,rgba(6,24,42,.18) 100%)}
.uici-editable-home .hero .hero-copy{position:relative;z-index:2;width:100%;max-width:690px}
.uici-editable-home .hero h1{color:#fff;font-size:clamp(44px,4.9vw,70px);text-shadow:0 2px 22px #0003}
.uici-editable-home .hero .eyebrow{color:#e9d49c}
.uici-editable-home .hero .hero-description{color:#f0f4f8;max-width:590px}
.uici-editable-home .hero .hero-signature{color:#dce5ec}
.uici-editable-home .hero .hero-signature:before{background:#e9d49c}
.uici-editable-home .hero .uici-text-button .wp-block-button__link{color:#fff;border-color:#ffffff80}
.uici-editable-home .hero .hero-caption{display:none}
.uici-editable-home .hero .scroll-note{z-index:2;color:#fff}
.uici-editable-home .hero .scroll-note a{color:inherit;text-decoration:none}
@media(max-width:850px){.uici-editable-home .hero .hero-layout{padding-top:64px;padding-bottom:76px}.uici-editable-home .hero .hero-copy{max-width:620px}}
@media(max-width:600px){.uici-editable-home .hero .hero-layout{min-height:620px;padding-top:48px;padding-bottom:64px}.uici-editable-home .hero h1{font-size:clamp(38px,10vw,47px)}.uici-editable-home .hero .hero-image-frame img{object-position:58% center}.uici-editable-home .hero:after{background:linear-gradient(180deg,rgba(6,24,42,.65),rgba(6,24,42,.82))}.uici-editable-home .hero .hero-description{font-size:15px}.uici-editable-home .hero .hero-actions{gap:18px}}
