/*
Theme Name:   Varese (Astra Child)
Template:     astra
Description:  Astra child theme for the Varese International Piano Festival. Adds the page template "Varese Scroll Home" with the scroll-driven homepage (logo, photos through arches, melody). Every other page, including pages built with Spectra, uses Astra unchanged.
Version:      1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain:  varese-astra-child
*/

/* The homepage and fellowship pages carry their own styles in their templates.
   Below: block styles for pages edited with blocks (Gallery and others).
   They appear in the block's "Styles" panel in the editor. */

/* ---------- Buttons → style "Varese tabs": quick links between sections ---------- */
.wp-block-buttons.is-style-varese-tabs{display:flex;flex-wrap:wrap;gap:.6rem;margin-block:1.4rem 2.4rem}
.wp-block-buttons.is-style-varese-tabs .wp-block-button{margin:0}
.wp-block-buttons.is-style-varese-tabs .wp-block-button__link{
  display:inline-flex;align-items:center;gap:.6rem;padding:.65rem 1.3rem;border-radius:999px;
  background:transparent;color:#1b1b1b;border:1px solid rgba(27,27,27,.2);text-decoration:none;
  font-family:"Montserrat","Helvetica Neue",Arial,sans-serif;font-size:.78rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;line-height:1.2;
  transition:border-color .2s,color .2s,background .2s}
.wp-block-buttons.is-style-varese-tabs .wp-block-button__link::before{content:"";width:8px;height:8px;border-radius:4px 4px 0 0;background:var(--vt,#c08a6e)}
.wp-block-buttons.is-style-varese-tabs .wp-block-button:nth-child(4n+1){--vt:#c4432f}
.wp-block-buttons.is-style-varese-tabs .wp-block-button:nth-child(4n+2){--vt:#e8a33a}
.wp-block-buttons.is-style-varese-tabs .wp-block-button:nth-child(4n+3){--vt:#4f86ae}
.wp-block-buttons.is-style-varese-tabs .wp-block-button:nth-child(4n){--vt:#7fa34e}
.wp-block-buttons.is-style-varese-tabs .wp-block-button__link:hover,
.wp-block-buttons.is-style-varese-tabs .wp-block-button__link:focus{background:transparent;color:#c08a6e;border-color:#c08a6e}
.wp-block-buttons.is-style-varese-tabs .wp-block-button__link[aria-current="page"]{background:#1b1b1b;color:#fff;border-color:#1b1b1b}
@media (max-width:600px){
  .wp-block-buttons.is-style-varese-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:.3rem;scrollbar-width:none}
  .wp-block-buttons.is-style-varese-tabs::-webkit-scrollbar{display:none}
  .wp-block-buttons.is-style-varese-tabs .wp-block-button{flex:none}
}

/* ---------- Gallery → style "Varese arches": photos with arched tops, like the logo ---------- */
.wp-block-gallery.is-style-varese-arches{gap:14px}
.wp-block-gallery.is-style-varese-arches .wp-block-image{border-radius:999px 999px 0 0;overflow:hidden;aspect-ratio:4/5}
.wp-block-gallery.is-style-varese-arches .wp-block-image img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.wp-block-gallery.is-style-varese-arches .wp-block-image:hover img{transform:scale(1.05)}

/* ---------- Gallery → style "Varese soft": clean grid, small corners, gentle zoom ---------- */
.wp-block-gallery.is-style-varese-soft{gap:10px}
.wp-block-gallery.is-style-varese-soft .wp-block-image{border-radius:4px;overflow:hidden}
.wp-block-gallery.is-style-varese-soft .wp-block-image img{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.wp-block-gallery.is-style-varese-soft .wp-block-image:hover img{transform:scale(1.04)}

/* ---------- "See all" link under a gallery section ---------- */
.varese-see-all a{color:#c08a6e;text-decoration:none;font-size:.85rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.varese-see-all a:hover{text-decoration:underline}

@media (prefers-reduced-motion:reduce){
  .wp-block-gallery.is-style-varese-arches .wp-block-image img,.wp-block-gallery.is-style-varese-soft .wp-block-image img{transition:none}
}

