/* Copiat din prototip */
* { box-sizing: border-box; }
body.p32-enabled { background:#fafafa; color:#111; line-height:1.5; }
.p32-front a { color:#0b57d0; text-decoration:none; }
.p32-front a:hover { text-decoration:underline; }
.p32-front .container { max-width:1100px; margin:0 auto; padding:1rem; }
.p32-front .site-header { position:sticky; top:0; z-index:10; background:#fff; border-bottom:1px solid #eee; }
.p32-front .header-inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.p32-front .brand { display:flex; align-items:center; gap:.5rem; }
.p32-front .logo { font-size:1.25rem; }
.p32-front .site-title { font-weight:700; font-size:1.1rem; }
.p32-front .site-nav { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; position:relative; }
.p32-front .site-nav a { padding:.5rem .7rem; border-radius:.5rem; }
.p32-front .site-nav a.active, .p32-front .site-nav a:focus { background:#eef3fe; outline:none; }
.p32-front .hero { background:#eef3fe; border-bottom:1px solid #e6ecff; }
.p32-front .hero h1 { margin:.2rem 0; font-size:2rem; }
.p32-front .hero p { margin:0 0 1rem; color:#333; }
.p32-front .cta-row { display:flex; gap:.6rem; flex-wrap:wrap; }
.p32-front .button { display:inline-block; padding:.65rem 1rem; border-radius:.7rem; background:#0b57d0; color:#fff; font-weight:600; }
.p32-front .button.secondary { background:#444; }
.p32-front .section { padding:1.25rem 0; }
.p32-front .section.alt { background:#fff; border-top:1px solid #eee; border-bottom:1px solid #eee; }
.p32-front .section-head { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.p32-front .section-head h2 { margin:.2rem 0; }
.p32-front .muted { color:#666; font-size:.95rem; }
.p32-front .grid { display:grid; gap:1rem; }
.p32-front .grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .p32-front .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .p32-front .grid-3 { grid-template-columns: 1fr; } }
.p32-front .card { background:#fff; border:1px solid #eee; border-radius:.75rem; padding:1rem; box-shadow:0 1px 2px rgba(0,0,0,.03); }
.p32-front .card-top { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.p32-front .card h3 { margin:.2rem 0 .25rem; font-weight:700; }
.p32-front .meta { color:#666; font-size:.9rem; margin:.2rem 0 .5rem; }
.p32-front .badge { display:inline-block; padding:.2rem .5rem; font-size:.78rem; border-radius:.5rem; background:#f2f4f7; color:#333; }
.p32-front .badge.info { background:#e8f0fe; }
.p32-front .badge.warn { background:#fff3cd; }
.p32-front .badge.alert { background:#ffe7e7; }
.p32-front .more { margin-top: .75rem; }
.p32-front .contracts { margin-top:.5rem; }
.p32-front .contract-list { list-style:none; margin:0; padding:0; border:1px solid #eee; border-radius:.75rem; overflow:hidden; background:#fff; }
.p32-front .contract-item { display:grid; grid-template-columns: 2fr 2fr 2fr auto; gap:.75rem; padding:.75rem 1rem; border-bottom:1px solid #eee; align-items:center; }
.p32-front .contract-item:last-child { border-bottom:none; }
.p32-front .c-doc { font-weight:600; }
@media (max-width: 700px) { .p32-front .contract-item { grid-template-columns: 1fr; gap:.25rem; } .p32-front .c-expiry { margin:.2rem 0; } }
.p32-front .archive-search { margin:.5rem 0 1rem; }
.p32-front .archive-list { list-style:none; margin:0; padding:0; }
.p32-front .archive-item { display:grid; grid-template-columns: 1fr auto auto; gap:.75rem; padding:.75rem 1rem; border:1px solid #eee; border-radius:.75rem; background:#fff; margin-bottom:.75rem; align-items:center; }
.p32-front .doc-title { font-weight:600; }
.p32-front .doc-meta { color:#666; font-size:.9rem; }
.p32-front .doc-link { font-weight:600; }
@media (max-width: 700px) { .p32-front .archive-item { grid-template-columns: 1fr; } }
.p32-front .faq details { background:#fff; border:1px solid #eee; border-radius:.75rem; padding:.75rem 1rem; margin-bottom:.6rem; }
.p32-front .faq summary { cursor:pointer; font-weight:600; }
.p32-front .faq-body { margin-top:.5rem; color:#333; }
.p32-front .site-footer { background:#fff; border-top:1px solid #eee; margin-top:1rem; color:#444; }
.p32-front .site-footer .small { color:#666; font-size:.9rem; }
.p32-front .visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); border:0; }
body.home .wp-site-blocks > header, body.home .wp-site-blocks > footer { display:none; }
body.home .wp-site-blocks { padding:0; }
body.single-anunt .wp-site-blocks > header,
body.single-anunt .wp-site-blocks > footer,
body.post-type-archive-anunt .wp-site-blocks > header,
body.post-type-archive-anunt .wp-site-blocks > footer { display:none; }
body.single-anunt .wp-site-blocks,
body.post-type-archive-anunt .wp-site-blocks { padding:0; }
.p32-front .card a.button.small{background:#eef3fe;color:#0b57d0;padding:.4rem .7rem;font-size:.72rem;font-weight:600;border-radius:.45rem;display:inline-block;line-height:1;text-decoration:none;}
.p32-front .card a.button.small:hover{background:#d9e6fb;text-decoration:none;}
.p32-front .card a.button.read-more{background:#f1f3f4;color:#555;font-weight:600;padding:.3rem .55rem;font-size:.7rem;border-radius:.45rem;text-decoration:none;}
.p32-front .card a.button.read-more:hover{background:#e2e5e7;color:#333;text-decoration:none;}
.p32-front .card p.read-more-line{margin:.4rem 0 .35rem;}
.p32-mini-footer{padding-top:.75rem;padding-bottom:.75rem;}
.p32-mini-footer .site-info-block p{margin:.15rem 0;font-size:.72rem;line-height:1.2;}
/* Footer alignment & typography adjustments */
.p32-mini-footer .site-info-block{max-width:1100px;margin:0 auto;padding:0 1rem;}
.p32-mini-footer .site-info-block p{font-size:.95rem;line-height:1.35;color:#666;font-weight:400;}
.p32-mini-footer .site-mini-title{font-weight:400;}
/* Ensure container doesn’t double-pad (remove inherited padding from outer container if needed) */
.p32-mini-footer.container{padding-left:0;padding-right:0;}

/* Single & archive anunt styling */
.single-anunt .p32-front .single-title{margin:.2rem 0 .5rem;font-size:2rem;}
.single-anunt .p32-front .single-article{background:#fff;border:1px solid #eee;border-radius:.75rem;padding:1.25rem;}
.single-anunt .p32-front .single-content p{margin:.6rem 0;}
.archive.post-type-archive-anunt .p32-front .card h3 a{text-decoration:none;color:inherit;}
.archive.post-type-archive-anunt .p32-front .card h3 a:hover{text-decoration:underline;}
.archive-anunt-main .grid.grid-3{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));}
.archive-anunt-main .card{margin-bottom:1rem;}

/* Archive Anunt alignment fixes */
.p32-front .site-nav ul, .p32-front .site-nav li { list-style:none; margin:0; padding:0; }
.archive-anunt-main h1 { margin:.2rem 0; }

/* Horizontal primary menu */
.p32-front .p32-menu { display:flex; flex-direction:row; gap:1rem; align-items:center; margin:0; padding:0; list-style:none; }
.p32-front .p32-menu li { margin:0; padding:0; }
.p32-front .p32-menu li a { display:inline-block; padding:.25rem 0; }

/* Mobile burger menu */
.p32-front .menu-toggle{display:none;border:1px solid #e5e7eb;background:#fff;border-radius:.6rem;padding:.4rem .6rem;line-height:1;}
.p32-front .menu-toggle .bar{display:block;width:22px;height:2px;background:#111;margin:4px 0;border-radius:2px;transition:transform .2s ease, opacity .2s ease;}
@media (max-width: 800px){
  .p32-front .header-inner{gap:.5rem}
  .p32-front .menu-toggle{display:inline-flex !important; align-items:center; justify-content:center;background:#fff;border:1px solid #e5e7eb;border-radius:1rem;padding:.35rem .6rem;box-shadow:0 4px 18px rgba(0,0,0,.08)}
  .p32-front .menu-toggle .bar{width:26px;height:2px;background:#111;margin:5px 0;border-radius:2px}
  .p32-front .site-nav{position:relative}
  .p32-front .p32-menu{position:absolute;right:0;top:calc(100% + 8px);display:none;flex-direction:column;gap:.75rem;background:#fff;border:1px solid #e5e7eb;border-radius:.9rem;box-shadow:0 16px 32px rgba(0,0,0,.12);padding:1rem;min-width:220px;max-width:75vw;z-index:20;}
  .p32-front .site-nav.open .p32-menu{display:flex}
  .p32-front .p32-menu li a{padding:.25rem 0;font-size:1.15rem}
  .p32-front .site-nav .menu-toggle{display:inline-flex; flex-direction:column; gap:4px; position:relative; width:34px; height:26px; padding:0 .4rem;}
  .p32-front .menu-toggle .bar{display:block; width:26px; height:2px; margin:0; position:absolute; left:4px; right:4px; height:2.5px; background:#111; border-radius:2px; transform-origin:center; transition:transform .2s ease, opacity .2s ease, top .2s ease;}
  .p32-front .menu-toggle .bar:nth-child(1){top:6px}
  .p32-front .menu-toggle .bar:nth-child(2){top:12px}
  .p32-front .menu-toggle .bar:nth-child(3){top:18px}
  .p32-front .site-nav.open .menu-toggle{gap:0;}
  .p32-front .site-nav.open .menu-toggle .bar:nth-child(1){top:12px; transform:rotate(45deg);}
  .p32-front .site-nav.open .menu-toggle .bar:nth-child(2){opacity:0;}
  .p32-front .site-nav.open .menu-toggle .bar:nth-child(3){top:12px; transform:rotate(-45deg);}
  /* Remove box around burger button on mobile */
  .p32-front .menu-toggle{background:transparent; border:none; box-shadow:none; padding:0;}
  /* Consistent mobile container padding across all pages */
  .p32-front .container{padding-left:1rem; padding-right:1rem;}
  .p32-front .section{padding-left:0; padding-right:0;} /* sections already inside .container */
}
/* Keep horizontal on desktop */
@media (min-width: 801px){
  .p32-front .p32-menu{display:flex;flex-direction:row;gap:1rem;}
  .p32-front .site-nav .menu-toggle{display:none;}
}
/* Ensure no list markers and hide toggle on desktop */
.p32-front .site-nav ul, .p32-front .site-nav li { list-style:none; margin:0; padding:0; }
