/*
Theme Name: CasaleCoro
Template: twentytwentyfive
Description: Tema figlio per CasaleCoro, coro polifonico di Casale Monferrato.
Version: 1.0
Text Domain: casalecoro
*/
body { background: var(--wp--preset--color--sabbia); }
.wp-site-blocks > header { background: var(--wp--preset--color--marrone); color: #fff; }
.wp-site-blocks > header a { color: #fff; text-decoration: none; }
.wp-site-blocks > header a:hover { color: var(--wp--preset--color--arancio); }
.wp-site-blocks > footer { background: var(--wp--preset--color--marrone); color: #e9dcc8; }
.wp-site-blocks > footer a { color: var(--wp--preset--color--arancio); }
h1, h2, h3 { font-family: var(--wp--preset--font-family--google-sans); letter-spacing: .01em; }

/* contenuti migrati */
.cc-row { display: flex; flex-wrap: wrap; gap: 0 2rem; align-items: flex-start; }
.cc-col { box-sizing: border-box; flex: 1 1 100%; min-width: 0; }
@media (min-width: 782px) {
  .cc-col-3 { flex: 0 0 calc(25% - 1.5rem); }
  .cc-col-4 { flex: 0 0 calc(33.333% - 1.5rem); }
  .cc-col-8 { flex: 0 0 calc(66.666% - 1rem); }
  .cc-col-9 { flex: 0 0 calc(75% - .5rem); }
  .cc-col-12 { flex: 1 1 100%; }
}
.cc-col img { max-width: 100%; height: auto; border-radius: 4px; }
.cc-col-3 img { max-height: 220px; width: auto; }
.cc-row p { margin: 0 0 1rem; }
.autore { font-family: var(--wp--preset--font-family--google-sans); font-weight: 600; font-size: 1.2rem; margin: 1.5rem 0 0 !important; color: var(--wp--preset--color--marrone); }
.titolo { font-family: var(--wp--preset--font-family--google-sans); font-weight: 800; font-size: 1.3rem; margin-bottom: .5rem !important; color: var(--wp--preset--color--marrone); }
.consiglio, .autore-r, .titolo-r { font-weight: 600; margin: 0; }
.cc-col-9 + .cc-col-3, .cc-col-9 { border-bottom: 1px solid rgba(49,25,1,.12); padding-bottom: .5rem; }
.cc-years { display: flex; flex-wrap: wrap; gap: .75rem; }
.cc-years a { background: var(--wp--preset--color--marrone); color: var(--wp--preset--color--arancio); padding: .6rem 1.1rem; border-radius: 7px; font-size: 1.4rem; font-weight: 600; text-decoration: none; }
.cc-years a:hover { background: var(--wp--preset--color--arancio); color: #fff; }
.cc-years br { display: none; }

/* home */
.cc-hero.wp-block-cover { min-height: 78vh; }
.cc-hero h1 { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.cc-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 14px rgba(49,25,1,.12); overflow: hidden; }
.cc-card img { width: 100%; height: auto; display: block; }
.cc-dates p { margin: 0 0 1rem; font-size: 1.15rem; }

/* solo Google Sans Regular 400 */
body, h1, h2, h3, h4, h5, h6, .wp-block-site-title, .wp-block-site-tagline, .wp-block-navigation,
.wp-block-button__link, .autore, .titolo, .consiglio, .autore-r, .titolo-r, .cc-years a, strong, b { font-weight: 400 !important; }

/* footer più compatto */
#contatti { font-size: 0.85rem; line-height: 1.5; }
#contatti h3 { font-size: 1.1rem; }
#contatti p { font-size: inherit; }

/* pagine archivio: schede concerto */
.cc-evts { display: grid; gap: 1.75rem; margin: 1.5rem 0; }
.cc-evt { display: flex; gap: 1.75rem; background: #fff; border-radius: 14px; box-shadow: 0 2px 14px rgba(49,25,1,.12); overflow: hidden; border-left: 6px solid var(--wp--preset--color--arancio); transition: transform .25s, box-shadow .25s; }
.cc-evt:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(49,25,1,.2); }
.cc-evt-img { flex: 0 0 220px; background: var(--wp--preset--color--marrone); display: flex; align-items: center; }
.cc-evt-img img { width: 100%; height: auto; display: block; transition: transform .4s; }
.cc-evt-img:hover img { transform: scale(1.04); }
.cc-evt-body { padding: 1.5rem 1.5rem 1.5rem 0; flex: 1; min-width: 0; }
.cc-evt:not(:has(.cc-evt-img)) .cc-evt-body { padding-left: 1.75rem; }
.cc-evt-autore { margin: 0; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: #b8480a; }
.cc-evt-titolo { margin: .25rem 0 1rem; font-size: 1.5rem; line-height: 1.25; }
.cc-evt-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.cc-evt-dates li { display: flex; align-items: center; gap: .9rem; }
.cc-evt-badge { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--wp--preset--color--arancio); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.cc-evt-badge b { font-size: 1.3rem; }
.cc-evt-badge span { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.cc-evt-when strong { display: block; font-size: .95rem; }
.cc-evt-when em { font-style: normal; font-size: .85rem; opacity: .75; }
.cc-evt-extra { margin: 1rem 0 0; font-size: .9rem; opacity: .8; }
.cc-evt-nav { display: flex; justify-content: space-between; }
.cc-evt-nav a { background: var(--wp--preset--color--marrone); color: #fff; padding: .45rem 1.1rem; border-radius: 99px; text-decoration: none; }
.cc-evt-nav a:hover { background: var(--wp--preset--color--arancio); }
@media (max-width: 640px) {
  .cc-evt { flex-direction: column; gap: 0; }
  .cc-evt-img { flex-basis: auto; justify-content: center; }
  .cc-evt-img img { max-height: 320px; width: auto; }
  .cc-evt-body, .cc-evt:not(:has(.cc-evt-img)) .cc-evt-body { padding: 1.25rem; }
}

/* home: sezione coro + direttore */
.cc-about .wp-block-columns { align-items: flex-start; gap: 3rem; }
.cc-about .wp-block-column { text-align: center; max-width: 440px; margin-inline: auto; }
.cc-about .wp-block-image { margin: 0 auto 1.25rem; }
.cc-about .wp-block-image img { width: 200px !important; height: 200px !important; object-fit: cover; border-radius: 50% !important; border: 4px solid var(--wp--preset--color--arancio); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.cc-about h2 { font-size: 1.6rem; margin: 0 0 .75rem; }
.cc-about p { font-size: .9rem; line-height: 1.65; text-align: center; margin: 0 0 1rem; }
.cc-about a { color: #ff9a52; text-underline-offset: 3px; }
.cc-about a:hover { color: #fff; }
@media (max-width: 781px) { .cc-about .wp-block-column { max-width: 100%; } }

/* pagina chi siamo */
.cc-cs-hero.wp-block-cover { min-height: 46vh; }
.cc-cs-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; margin-bottom: .5rem; }
.cc-cs-hero h1 { text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.cc-cs-statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; }
.cc-cs-statgrid b { display: block; font-size: 2.6rem; line-height: 1; font-weight: 400; }
.cc-cs-statgrid span { display: block; margin-top: .4rem; font-size: .85rem; opacity: .92; }
.cc-cs-split { display: grid; grid-template-columns: 5fr 6fr; gap: 3.5rem; align-items: center; }
.cc-cs-split-rev { grid-template-columns: 4fr 7fr; }
.cc-cs-photo, .cc-cs-portrait { margin: 0; position: relative; }
.cc-cs-photo img { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 14px 34px rgba(49,25,1,.3); }
.cc-cs-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 3px solid var(--wp--preset--color--arancio); border-radius: 16px; z-index: -1; }
.cc-cs-portrait img { width: 100%; max-width: 340px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto; border: 6px solid var(--wp--preset--color--arancio); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.cc-cs-eyebrow { margin: 0 0 .25rem; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: #b8480a; }
.cc-cs-dark .cc-cs-eyebrow { color: #ff9a52; }
.cc-cs-text h2 { margin: 0 0 1rem; font-size: 2.3rem; line-height: 1.1; }
.cc-cs-text p { font-size: .98rem; line-height: 1.7; margin: 0 0 1rem; }
.cc-cs-text .cc-cs-lead { font-size: 1.2rem; line-height: 1.55; padding-left: 1rem; border-left: 4px solid var(--wp--preset--color--arancio); }
.cc-cs-h2c { text-align: center; font-size: 2.2rem; margin: 0 0 1rem; }
.cc-cs-h2c::after { content: ""; display: block; width: 70px; height: 4px; background: var(--wp--preset--color--arancio); margin: .7rem auto 0; border-radius: 2px; }
.cc-cs-intro { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.cc-cs-timeline { list-style: none; margin: 2.5rem auto 0; padding: 0; max-width: 760px; position: relative; }
.cc-cs-timeline::before { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; width: 3px; background: rgba(49,25,1,.18); }
.cc-cs-timeline li { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.6rem; position: relative; }
.cc-cs-year { flex: 0 0 90px; height: 90px; border-radius: 50%; background: var(--wp--preset--color--arancio); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; box-shadow: 0 6px 16px rgba(49,25,1,.25); z-index: 1; }
.cc-cs-timeline li:nth-child(2) .cc-cs-year { background: #d9480f; }
.cc-cs-timeline li:nth-child(3) .cc-cs-year { background: #e8a317; }
.cc-cs-timeline li:nth-child(4) .cc-cs-year { background: #8a4b12; }
.cc-cs-timeline h3 { margin: .9rem 0 .2rem; font-size: 1.2rem; }
.cc-cs-timeline p { margin: 0; font-size: .95rem; }
.cc-cs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.cc-cs-card { --a: #ff6600; background: #fff; border-radius: 12px; padding: 1.4rem; border-top: 5px solid var(--a); box-shadow: 0 2px 12px rgba(49,25,1,.12); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.cc-cs-card:hover { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(49,25,1,.22); }
.cc-cs-card h3 { margin: 0 0 .5rem; color: var(--a); font-size: 1.4rem; }
.cc-cs-card p { margin: 0; font-size: .92rem; line-height: 1.55; }
.cc-cs-dark a { color: #ff9a52; }
.cc-cs-cta { background: var(--wp--preset--color--crema); }
@media (max-width: 781px) {
  .cc-cs-split, .cc-cs-split-rev { grid-template-columns: 1fr; gap: 2rem; }
  .cc-cs-split-rev .cc-cs-portrait { order: -1; }
  .cc-cs-photo::before { display: none; }
  .cc-cs-hero h1 { font-size: 2.8rem !important; }
  .cc-cs-timeline::before { left: 32px; }
  .cc-cs-year { flex-basis: 66px; height: 66px; font-size: 1rem; }
}

/* logo nell'hero della home */
.cc-hero-logo { margin: 0 auto .5rem; }
.cc-hero-logo img { filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }

/* chi siamo: maestra accompagnatrice (stesso layout del direttore, foto ritagliata sul volto) */
.cc-cs-second { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid rgba(255,255,255,.18); }
.cc-cs-portrait.cc-cs-crop { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 6px solid var(--wp--preset--color--arancio); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
/* l'immagine intera (5120 px) è mostrata ingrandita e spostata sul volto */
.cc-cs-portrait.cc-cs-crop img { position: absolute; width: 341%; max-width: none; height: auto; aspect-ratio: auto; object-fit: fill; left: -44%; top: -6.7%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
