/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
/* Dietopedia — Global CSS (Bricks → Settings → Custom code → Custom CSS) */
html { scroll-behavior: smooth; }
::selection { background: var(--primary-l-3); color: var(--secondary); }
img { max-width: 100%; }
p, h1, h2, h3, h4, h5, h6, ul, ol, figure { margin: 0; }

/* padding lateral container de secțiune (max-width 1280 vine din Theme Style) */
.brxe-section > .brxe-container { padding-inline: 2rem; }
@media (max-width: 767px) { .brxe-section > .brxe-container { padding-inline: 1.6rem; } }

/* focus vizibil */
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--primary-500); outline-offset: 2px; }

/* hover butoane (Theme Style nu are stări hover) */
.bricks-button.bricks-background-primary:hover { background-color: var(--primary-d-1); }
.bricks-button.bricks-background-secondary:hover { background-color: var(--base); }
.bricks-button.bricks-color-primary.outline:hover { background-color: var(--primary); color: #fff; }

/* tranziții standard pentru carduri și imagini */
.dp-card { transition: box-shadow .25s, border-color .25s, transform .25s; }
.dp-card:hover { box-shadow: 0 10px 25px -8px rgb(15 23 42 / .18); }
.dp-img-zoom { overflow: hidden; }
.dp-img-zoom img { transition: transform .5s; }
.dp-img-zoom:hover img { transform: scale(1.05); }

/* text articol (clasă dp-prose pe elementul Post Content / Rich text) */
.dp-prose { max-width: 72rem; }
.dp-prose > * + * { margin-top: 1.6rem; }
.dp-prose p, .dp-prose li { font-size: 1.8rem; line-height: 1.8; color: var(--text-body); }
.dp-prose h2 { font-size: 3rem; line-height: 1.2; margin-top: 4.8rem; scroll-margin-top: 9rem; }
.dp-prose h3 { font-size: 2rem; margin-top: 3.2rem; scroll-margin-top: 9rem; }
.dp-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.dp-prose strong { color: var(--base); }
.dp-prose ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.dp-prose ul li { position: relative; padding-left: 2.8rem; }
.dp-prose ul li::before { content: ""; position: absolute; left: .6rem; top: 1.1rem; width: .8rem; height: .8rem; border-radius: 99px; background: var(--primary-500); }
.dp-prose ol { padding-left: 2.4rem; display: flex; flex-direction: column; gap: .8rem; }
.dp-prose img { border-radius: 12px; }
.dp-prose table { width: 100%; border-collapse: collapse; font-size: 1.5rem; }
.dp-prose th, .dp-prose td { padding: 1.2rem 1.6rem; border-bottom: 1px solid var(--border); text-align: left; }
.dp-prose th { background: var(--bg-surface); font-weight: 700; color: var(--base); }
@media (max-width: 767px) {
  .dp-prose p, .dp-prose li { font-size: 1.7rem; }
  .dp-prose h2 { font-size: 2.6rem; }
}
/* Dietopedia: latin-ext (ă ș ț) pentru fonturile Core Framework (doar latin). Același fișier variabil, declarat pe fiecare greutate ca să se potrivească exact cu @font-face-urile CF */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100; font-display: swap; src: url("fonts/Inter-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 200; font-display: swap; src: url("fonts/Inter-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/Inter-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Inter-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Inter-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Inter-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Inter-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/Inter-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/Inter-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100; font-display: swap; src: url("fonts/Fraunces-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 200; font-display: swap; src: url("fonts/Fraunces-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/Fraunces-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Fraunces-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Fraunces-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Fraunces-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Fraunces-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/Fraunces-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/Fraunces-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Dietopedia: secțiuni ascunse temporar (meniu + footer). Elimină regulile când sunt gata. */
.dp-soon { display: none !important; }
.dp-footer a[href="/articole/"], .dp-footer a[href="/dictionar-nutritie/"], .dp-footer a[href="/nutritionisti/"] { display: none; }
