/* Corrao Pro – additions for WordPress inner pages (the base design lives in style.css) */

/* ---- WordPress admin bar */
.admin-bar .hdr { top: 32px; }
.admin-bar .prog { top: 32px; }
@media (max-width: 782px) { .admin-bar .hdr, .admin-bar .prog { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hdr, .admin-bar .prog { top: 0; } }

/* ---- Active menu item */
.nav li.current > a:not(.btn) { color: #2f6fc4; }
.nav li.current > a:not(.btn):after { transform: scaleX(1); }
.dd li.current > a { color: #2f6fc4; background: #eef4fc; }

/* ---- Slim inner-page banner (title + breadcrumb, optional background image) */
.phero { padding: 78px 0; min-height: 0; }
.phero.has-img {
  background:
    linear-gradient(105deg, rgba(4, 24, 66, .94) 0%, rgba(10, 52, 120, .86) 55%, rgba(21, 88, 192, .72) 100%),
    var(--pb) center / cover no-repeat;
}
.phero .wrap { position: relative; z-index: 1; }
.phero .crumbs ol { margin: 0 0 12px; flex-wrap: wrap; }
.phero h1 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.12; }
.phero-sub { margin: 10px 0 0; max-width: 60ch; color: #dbe8fb; animation: fade 1s both .3s; }
.phero:after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); pointer-events: none;
}
@media (max-width: 640px) { .phero { padding: 28px 0 32px; } }

/* ---- Editor content */
.entry > *:first-child { margin-top: 0; }
.entry h2, .entry h3, .entry h4 { margin-top: 1.6em; }
.entry h2:first-child { margin-top: 0; }
.entry a:not(.btn) { color: #1d5db5; text-decoration: underline; text-underline-offset: 3px; }
.entry img { border-radius: 10px; margin: 1.2em 0; }
.entry blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid #2f6fc4; background: var(--soft); border-radius: 0 8px 8px 0; }
.entry ul:not(.ck):not(.cinfo), .entry ol { padding-left: 1.2em; margin: 0 0 1.4rem; }
.entry li { margin-bottom: .45rem; }
.entry .btn { margin-top: .6rem; }
.entry p.sub2 { margin-top: 0; }

/* ---- Content + image split (About, services, default pages) */
.split > .frame { position: sticky; top: calc(var(--hh) + 24px); }
.split.nofig { grid-template-columns: 1fr; max-width: 820px; }
.split .ck li { margin-bottom: .6rem; }
.split .ck { margin-top: 1.2rem; }
@media (max-width: 900px) { .split > .frame { position: relative; top: 0; order: -1; } }

/* ---- Reviews */
.stars .ic.off { opacity: .22; }
.rv-meta { font-weight: 400; opacity: .7; }

/* ---- Gallery page: normal thumbnails (no featured spans) */
.gal-all { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 14px; }
.gal-all .gi:nth-child(1), .gal-all .gi:nth-child(6) { grid-row: auto; grid-column: auto; }
@media (max-width: 1000px) { .gal-all { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .gal-all { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; gap: 10px; } }
.filters { justify-content: center; margin-bottom: 28px; }

/* ---- Forms */
.form-card {
  background: #fff; border: 1px solid var(--bd); border-radius: 18px;
  padding: clamp(22px, 4vw, 44px); box-shadow: 0 30px 60px -34px rgba(16, 47, 94, .35);
}
.form-card > h2 { margin-top: 0; }
.form-intro { margin-top: 0; color: var(--tx); }
.form-card .entry { margin-bottom: 1.4rem; }
.form .fs { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.form .fs legend {
  display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px;
  font: 700 1.08rem 'Bricolage Grotesque', Inter, sans-serif; color: var(--navy);
}
.form .fn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; font: 700 .85rem Inter, sans-serif;
}
.form .fs .grid2 { margin-bottom: 0; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: #2f6fc4; box-shadow: 0 0 0 3px rgba(47, 111, 196, .18);
}
.form input, .form select, .form textarea { border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 120px; }
.form input[type=date], .form select { min-height: 49px; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip { position: relative; display: block; cursor: pointer; font-weight: 500 !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 42px; border: 1.5px solid #b9c3d1;
  border-radius: 10px; background: #fff; color: var(--tx); position: relative; transition: .2s; line-height: 1.3; font-size: .95rem;
}
.chip span:before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid #9aa8bd; border-radius: 5px; background: #fff; transition: .2s;
}
.chip span:after {
  content: ""; position: absolute; left: 20px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: .2s;
}
.chip:hover span { border-color: #2f6fc4; }
.chip input:checked + span { border-color: var(--navy); background: var(--soft); color: var(--navy); font-weight: 600; }
.chip input:checked + span:before { background: var(--navy); border-color: var(--navy); }
.chip input:checked + span:after { transform: rotate(45deg) scale(1); }
.chip input:focus-visible + span { outline: 3px solid #2f6fc4; outline-offset: 2px; }
.fs .ferr { margin-top: 8px; }
.rc-wrap { margin: 4px 0 18px; max-width: 100%; overflow: hidden; }
.form button[type=submit] { min-width: 200px; }
.form button[disabled] { opacity: .65; cursor: wait; }
@media (max-width: 640px) { .chips { grid-template-columns: 1fr; } .form .grid2 { grid-template-columns: 1fr; } .rc-wrap { transform: scale(.9); transform-origin: 0 0; } }

/* ---- Contact page */
.contact-info h2 { margin-top: 0; }
.cinfo { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 14px; }
.cinfo li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--bd); border-radius: 14px; transition: .25s; }
.cinfo li:hover { border-color: #2f6fc4; box-shadow: 0 14px 30px -18px rgba(16, 47, 94, .4); transform: translateY(-2px); }
.cinfo .ci { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: #fff; }
.cinfo .ci .ic { width: 24px; height: 24px; }
.cinfo strong { display: block; color: var(--navy); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.cinfo a { color: var(--tx); text-decoration: none; font-weight: 600; }
.cinfo a:hover { color: #1d5db5; }
.map-sec { line-height: 0; background: var(--soft); }
.map-sec .map { display: block; width: 100%; border: 0; margin: 0; padding: 0; background: var(--lt); filter: saturate(.92); }
@media (max-width: 900px) { .contact-grid .form-card { order: 2; } }

/* ---- Blog fallback */
.post-item { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--bd); }
.post-item h2 a { color: var(--navy); text-decoration: none; }
.post-date { color: var(--steel); font-size: .9rem; margin: 0; }
.navigation.pagination { margin-top: 24px; }
.navigation .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.navigation .page-numbers { padding: 8px 14px; border: 1px solid var(--bd); border-radius: 6px; text-decoration: none; color: var(--navy); }
.navigation .page-numbers.current { background: var(--navy); color: #fff; }

/* ---- Misc WordPress */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: .85rem; color: var(--steel); }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.sc-img:empty { background: linear-gradient(135deg, var(--soft), #fff); aspect-ratio: 4 / 3; display: block; }
