/*
Theme Name: Che Festa! Child
Description: Tema per Che Festa! Palermo, basato su Bootscore e Bootstrap 5.
Template: bootscore
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: chefesta-child
*/

:root {
  --paper: #fff9f0;
  --white: #fffdf9;
  --ink: #2c1946;
  --muted: #564762;
  --purple: #6235c7;
  --lavender: #e7dcff;
  --coral: #ff805f;
  --yellow: #ffdf6f;
  --lime: #e2f08e;
  --line: #ded2df;
  --shell: 1220px;
  --display: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--body); }
.chefesta-site :where(h1, h2, h3, p, figure) { margin: 0; }
:where(.chefesta-site) a { color: inherit; }
:where(.chefesta-site) button { color: inherit; font: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
section[id] { scroll-margin-top: 1rem; }
.shell { width: min(var(--shell), calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: 1rem; left: 1rem; padding: .65rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { display: flex; align-items: center; gap: .55rem; font-size: .75rem; font-weight: 800; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.055em; line-height: .98; }
.display em { color: var(--purple); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: .65rem; padding: .72rem 1.25rem; border: 1.5px solid transparent; border-radius: 999px; font-size: .94rem; line-height: 1.25; font-weight: 800; text-decoration: none; transition: background .18s, color .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--purple); color: #fff; }
.button--primary:hover { background: #4f26ad; }
.button--outline { border-color: var(--ink); }
.button--outline:hover { background: var(--ink); color: var(--white); }
.button--light { background: var(--lime); color: var(--ink); }
.button--light:hover { background: #f1f7b5; }
.button--inverse { color: var(--white); border-color: #b69ecb; }
.button--inverse:hover { background: #4b3268; }

.chefesta-site .site-header { border-bottom: 1px solid var(--line); }
.header-row { padding-block: 8px; min-height: 83px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: inherit; text-decoration: none; }
.brand-logo, .custom-logo { display: block; width: clamp(151px, 15.2vw, 215px); height: auto; }
.brand-name { font: 700 1.8rem/.95 var(--display); letter-spacing: -.07em; white-space: nowrap; }
.brand-name span { color: var(--purple); }
.main-nav { justify-content: center; }
.main-nav .navbar-nav { gap: clamp(5px, 1.2vw, 17px); align-items: center; }
.main-nav a { color: var(--ink); font-size: .9rem; font-weight: 800; text-decoration: none; }
.main-nav a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 5px; }
.header-cta { min-height: 43px; padding: .6rem .95rem; }
.menu-toggle { display: none; }

.hero { padding-block: 55px 61px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); gap: clamp(30px, 5vw, 74px); align-items: center; }
.hero-copy { padding-block: 6px; container-type: inline-size; }
.hero-kicker { width: fit-content; padding: .55rem .78rem; border: 1px solid #d6c4f4; border-radius: 999px; background: #f4edff; color: #4e2a8a; }
.hero-kicker .icon { width: 16px; height: 16px; }
.hero h1 { margin-top: 23px; font-size: clamp(2.4rem, 5.6vw, 5.2rem); font-size: clamp(2.4rem, 14.1cqi, 5.2rem); }
.hero h1 em { position: relative; z-index: 0; display: inline-block; padding-bottom: .06em; }
.hero h1 em::after { position: absolute; z-index: -1; right: 2%; bottom: -.02em; left: 1%; height: .12em; border-top: .065em solid var(--coral); border-radius: 45% 56% 0 0; content: ""; transform: rotate(-3deg); }
.hero-copy p { max-width: 44ch; margin-top: 24px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.17rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.hero-art { position: relative; width: 100%; }
.hero-scene { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; aspect-ratio: 1.16; border: 1.5px solid var(--ink); border-radius: 29px; background: radial-gradient(circle, #7d59ba3b 1px, transparent 1.4px) 0 0 / 17px 17px, var(--lavender); }
.hero-photo { width: 80%; padding: 7px 7px 9px; border: 1.5px solid var(--ink); border-radius: 17px; background: var(--white); box-shadow: 5px 6px 0 #7352a8; transform: rotate(-4deg); }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.hero-photo figcaption { padding: 7px 3px 1px; text-align: center; font-size: clamp(.64rem, 1.35vw, .77rem); font-weight: 800; letter-spacing: .03em; }
.hero-cake { position: absolute; left: 0; bottom: 1%; width: clamp(91px, 11vw, 161px); height: auto; transform: rotate(-12deg); pointer-events: none; }
.hero-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-sticker { position: absolute; right: -15px; bottom: 21px; display: grid; place-content: center; width: clamp(81px, 11.5vw, 123px); aspect-ratio: 1; background: var(--lime); color: var(--ink); text-align: center; border: 1.5px solid var(--ink); border-radius: 50%; box-shadow: 3px 4px 0 var(--ink); transform: rotate(10deg); }
.hero-sticker span { font-size: clamp(.53rem, .9vw, .67rem); line-height: 1.25; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hero-sticker strong { font: 700 clamp(2rem, 3.65vw, 3.7rem)/.9 var(--display); letter-spacing: -.07em; }

.ribbon { overflow: hidden; border-block: 1.5px solid var(--ink); background: var(--lime); }
.ribbon-inner { display: flex; justify-content: space-between; align-items: center; min-height: 54px; gap: 15px; }
.ribbon-item { font-size: .73rem; letter-spacing: .135em; font-weight: 900; line-height: 1.2; text-align: center; text-transform: uppercase; }
.ribbon .icon { width: 18px; height: 18px; }

.offers { padding-block: 80px 88px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 29px; }
.section-head .eyebrow, .play-copy .eyebrow, .plan .eyebrow { margin-bottom: 12px; color: #553095; }
.section-head h2, .play-copy h2, .plan h2, .contact h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.section-head > p { max-width: 35ch; padding-bottom: 3px; color: var(--muted); }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.offer { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1.5px solid var(--ink); border-radius: 23px; background: var(--white); box-shadow: 3px 4px 0 var(--ink); }
.offer-art { position: relative; display: grid; place-items: center; height: clamp(137px, 17vw, 208px); overflow: hidden; border-bottom: 1.5px solid var(--ink); }
.offer-art--pink { background: #ffc9c0; }
.offer-art--yellow { background: var(--yellow); }
.offer-art--blue { background: #cde9ff; }
.offer-art .art { width: 100%; height: 100%; }
.offer-number { position: absolute; top: 13px; left: 14px; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--white); font-size: .68rem; font-weight: 900; letter-spacing: .06em; }
.offer-copy { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 19px clamp(15px, 2vw, 25px) 21px; }
.offer h3 { font-size: clamp(1.55rem, 2.4vw, 2.35rem); }
.offer h3 a, .activity h3 a { text-decoration: none; }
.offer h3 a:hover, .activity h3 a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: .2em; }
.offer p { margin: 10px 0 17px; color: var(--muted); font-size: .95rem; }
.text-link { display: inline-flex; min-height: 30px; align-items: center; gap: .43rem; margin-top: auto; color: #4e2699; font-size: .9rem; font-weight: 800; text-underline-offset: 4px; }
.text-link:hover { color: var(--ink); }
.text-link .icon { width: 16px; height: 16px; }

.play { border-block: 1px solid var(--line); background: #f3ecff; padding-block: 69px; }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .91fr); gap: clamp(29px, 7.5vw, 110px); align-items: center; }
.play-art { overflow: hidden; border: 1.5px solid var(--ink); border-radius: 25px; background: #cde9ff; box-shadow: 4px 5px 0 var(--ink); }
.play-art img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; object-position: 50% 40%; }
.play-copy p { max-width: 45ch; margin-block: 17px 20px; color: var(--muted); }
.play-tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0 0 22px; padding: 0; }
.play-tags li { padding: .35rem .65rem; border: 1px solid #c5b3e2; border-radius: 999px; background: var(--white); font-size: .79rem; font-weight: 800; }

.activities, .gallery-section { padding-block: 75px; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-bottom: 1px solid var(--line); }
.activity { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding-block: 17px; border-top: 1px solid var(--line); }
.activity-badge { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--ink); border-radius: 12px; background: var(--badge, var(--lavender)); font-size: .69rem; font-weight: 900; letter-spacing: .06em; }
.activity h3 { font-size: 1.1rem; }
.activity p { margin-top: 2px; color: var(--muted); font-size: .92rem; }
.gallery-section { border-block: 1px solid var(--line); background: #fff3dc; }

.plan { padding-block: 81px 86px; }
.plan-head { margin-bottom: 24px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.plan-grid li { padding: 24px 23px 24px 0; }
.plan-grid li + li { padding-left: 23px; border-left: 1px solid var(--line); }
.step-number { display: block; color: #5a2cae; font-size: .75rem; line-height: 1; font-weight: 900; letter-spacing: .12em; }
.plan-grid h3 { margin-top: 10px; font-size: 1.1rem; }
.plan-grid p { margin-top: .3rem; color: var(--muted); font-size: .91rem; }

.contact { background: var(--ink); color: var(--white); padding-block: 62px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .68fr); gap: clamp(25px, 8vw, 105px); align-items: center; }
.contact .eyebrow { margin-bottom: 12px; color: var(--lime); }
.contact h2 em { color: var(--yellow); }
.contact p { margin-top: 15px; color: #e6d9ee; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 22px; }
.contact :focus-visible { outline-color: var(--lime); }
.contact-address { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 21px; border: 1px solid #9279aa; border-radius: 20px; background: #3a2555; font-style: normal; }
.contact-address > .icon { width: 36px; height: 36px; padding: 7px; border-radius: 12px; background: var(--lavender); color: var(--ink); }
.contact-address p { margin: 0; color: inherit; }
.contact-address strong { display: block; margin-bottom: 4px; }
.contact-address .text-link { color: var(--lime); margin-top: .35rem; }
.chefesta-contact-form {
  min-width: 0;
  margin-block: 1.5rem;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
}
.contact-layout { row-gap: clamp(24px, 4vw, 42px); }
.contact-layout .chefesta-contact-form { grid-column: 1 / -1; width: min(100%, 760px); margin: 0; }
.chefesta-site .chefesta-contact-form h2 { margin: 0 0 .85rem; color: var(--ink); font-size: clamp(1.4rem, 3vw, 1.85rem); }
.contact .chefesta-contact-form p { color: var(--ink); }
.contact .chefesta-contact-form :focus-visible { outline-color: var(--purple); }
.chefesta-contact-form .wpforms-recaptcha-container { overflow-x: auto; }

.site-footer { padding-block: 25px; }
.footer-row { display: flex; gap: 18px; justify-content: space-between; align-items: center; }
.footer-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer-copy p { color: var(--muted); font-size: .8rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 7px; }
.social { display: inline-flex; align-items: center; gap: .42rem; min-height: 41px; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 999px; font-size: .81rem; font-weight: 800; text-decoration: none; }
a.social:hover { border-color: var(--purple); color: var(--purple); }
.social .icon { width: 16px; height: 16px; }

@media (max-width: 1010px) {
  .shell { width: calc(100% - 64px); }
  .hero { padding-block: 45px 52px; }
}
@media (max-width: 991.98px) {
  .shell { width: calc(100% - 36px); }
  .header-row { padding-block: 8px; min-height: 70px; gap: 12px; flex-wrap: wrap; }
  .brand-name { font-size: 1.65rem; }
  .header-cta { display: none; }
  .main-nav { order: 3; padding-block: 0 12px; }
  .main-nav .navbar-nav { align-items: stretch; gap: 0; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; margin-left: auto; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .91rem; font-weight: 800; }
  .menu-toggle .icon { width: 18px; height: 18px; }
  .main-nav a { display: flex; align-items: center; min-height: 36px; }
  .hero { padding-block: 34px 36px; }
  .hero-layout, .play-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { gap: 26px; }
  .hero h1 { margin-top: 18px; font-size: clamp(2.4rem, 12vw, 5.2rem); font-size: clamp(2.4rem, 14.1cqi, 5.2rem); }
  .hero-copy p { margin-top: 18px; }
  .hero-actions { margin-top: 20px; }
  .hero-scene { border-radius: 22px; }
  .hero-sticker { right: -6px; bottom: 13px; width: clamp(81px, 16vw, 110px); }
  .hero-sticker strong { font-size: clamp(2.3rem, 6.7vw, 3.4rem); }
  .ribbon-inner { gap: 8px; min-height: 48px; }
  .ribbon-item { font-size: .62rem; letter-spacing: .07em; }
  .ribbon .icon { width: 14px; height: 14px; }
  .ribbon .ribbon-extra { display: none; }
  .offers, .play, .activities, .gallery-section, .plan, .contact { padding-block: 46px; }
  .section-head { display: block; margin-bottom: 20px; }
  .section-head > p { margin-top: 10px; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-art { height: 155px; }
  .play-art { order: 2; }
  .footer-row { align-items: start; flex-direction: column; }
}
@media (max-width: 500px) {
  .offer-grid, .plan-grid, .activity-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-art { height: 167px; }
  .offer-copy { padding: 16px 17px; }
  .offer h3 { font-size: 2rem; }
  .plan-grid li, .plan-grid li + li { padding: 15px 0; border-left: 0; }
  .plan-grid li + li { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Interior pages and native WordPress galleries. */
.inner-page { padding-block: clamp(35px, 6vw, 75px); }
.content-article { max-width: 900px; margin-inline: auto; }
.inner-heading { margin-bottom: 1.6rem; }
.inner-heading h1 { margin-top: .45rem; font-size: clamp(2.5rem, 6vw, 5rem); }
.inner-featured { margin-bottom: 1.65rem; }
.inner-featured img, .entry-content img { max-width: 100%; height: auto; }
.inner-featured img { display: block; max-height: 490px; border-radius: 22px; object-fit: contain; }
.chefesta-site .entry-content :where(p, ul, ol, figure, .gallery) { margin-bottom: 1rem; }
.chefesta-site .entry-content :where(h2, h3, h4) { margin: 1.7rem 0 .55rem; }
.chefesta-site .entry-content a { color: var(--purple); text-underline-offset: .2em; }
.chefesta-site .entry-content .wp-caption { max-width: 100%; }
.home-gallery .entry-content { margin-bottom: 14px; }
.activity-grid + .text-link { margin-top: .8rem; }
.chefesta-site .gallery, .chefesta-site .chefesta-gallery {
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols, 3), minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
}
.chefesta-site .gallery-columns-1 { --gallery-cols: 1; }
.chefesta-site .gallery-columns-2 { --gallery-cols: 2; }
.chefesta-site .gallery-columns-4 { --gallery-cols: 4; }
.chefesta-site .gallery-columns-5 { --gallery-cols: 5; }
.chefesta-site .gallery-columns-6 { --gallery-cols: 6; }
.chefesta-site .gallery-columns-7 { --gallery-cols: 7; }
.chefesta-site .gallery-columns-8 { --gallery-cols: 8; }
.chefesta-site .gallery-columns-9 { --gallery-cols: 9; }
.chefesta-site .gallery .gallery-item, .chefesta-site .chefesta-gallery figure {
  min-width: 0;
  width: auto;
  max-width: none;
  overflow: hidden;
  margin: 0;
  border: 1.5px solid var(--ink);
  border-radius: 17px;
  background: var(--white);
}
.chefesta-site .gallery > br { display: none; }
.chefesta-site .gallery .gallery-icon { margin: 0; }
.chefesta-site :is(.gallery, .chefesta-gallery) a { display: block; }
.chefesta-site :is(.gallery, .chefesta-gallery) a:focus-visible { outline-offset: -4px; }
.chefesta-site :is(.gallery, .chefesta-gallery) img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 1.45;
  object-fit: cover;
}
.chefesta-site :is(.gallery, .chefesta-gallery) figcaption,
.chefesta-site .gallery .gallery-caption {
  margin: 0;
  padding: .55rem .7rem;
  color: var(--ink);
  font-size: .87rem;
  font-weight: 700;
}
.chefesta-site .home-gallery .gallery .gallery-item:nth-of-type(n+4) { display: none; }
.chefesta-lightbox .modal-content { color: var(--ink); background: var(--white); }
.chefesta-lightbox .modal-title { font-size: 1.1rem; }
.chefesta-lightbox .modal-body { display: grid; place-items: center; padding: 0; background: var(--ink); }
.chefesta-lightbox-image { max-width: 100%; max-height: min(73vh, 730px); width: auto; height: auto; touch-action: pan-y pinch-zoom; }
.chefesta-lightbox-error { padding: 1.5rem; color: var(--white); }
.chefesta-lightbox-caption { flex: 1 1 12rem; }
.chefesta-lightbox-caption:empty { display: none; }
.chefesta-lightbox-nav { display: flex; align-items: center; gap: .7rem; }
.chefesta-lightbox-nav .btn { min-width: 44px; min-height: 44px; }
.chefesta-lightbox-count { min-width: 3rem; text-align: center; }
.chefesta-lightbox-nav button[hidden], .chefesta-lightbox-image[hidden] { display: none !important; }

@media (max-width: 991.98px) {
  .chefesta-site :is(.gallery, .chefesta-gallery) {
    grid-template-columns: repeat(min(var(--gallery-cols, 3), 3), minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .chefesta-site :is(.gallery, .chefesta-gallery) {
    grid-template-columns: repeat(min(var(--gallery-cols, 3), 2), minmax(0, 1fr));
  }
  .chefesta-lightbox .modal-body { align-content: center; }
}
.home-editor-content { padding-block: 2.4rem; }
