/*
Theme Name:   Diego Rossi Abogados (Divi Child)
Theme URI:    https://www.diegorossiabogados.com/
Description:  Child theme for Diego Rossi Abogados, built on Divi.
Author:       Fairhall Solutions
Template:     Divi
Version: 1.1.0
Text Domain:  divi-child
*/

/* ==========================================================================
   Design tokens (taken from the original site)
   ========================================================================== */
:root {
	--dr-red: #d00c30;
	--dr-red-soft: rgba(208, 12, 48, 0.71);
	--dr-text: #474f53;
	--dr-heading: #000;
	--dr-dark: #373737;
	--dr-grey: #808080;
	--dr-footer: #b5b5b5;
	--dr-footer-link: #535353;
	--dr-copyright: #636363;
	--dr-coral: #ff675b;
	--dr-orange: #de5727;
	--dr-border: #e1e7ea;
	--dr-whatsapp: #25d366;
	--dr-container: 1140px;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
	font-family: "Karla", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 26px;
	color: var(--dr-text);
	font-weight: 400;
}

#page-container .et_pb_row,
.et-l .et_pb_row {
	width: 90%;
	max-width: var(--dr-container);
}

a { color: var(--dr-red); }

h1, h2, h3, h4, h5, h6 {
	font-family: "Lora", Georgia, serif;
	color: var(--dr-heading);
	font-weight: 700;
	padding-bottom: 10px;
}

p { padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }

/* Body copy is justified site-wide, as the client requested. */
.dr-justify p,
.dr-justify li { text-align: justify; }

/* ==========================================================================
   Header (Theme Builder)
   ========================================================================== */
.et-l--header .dr-header {
	position: relative;
	z-index: 50;
	padding: 0;
	background: #fff;
}

.dr-header .dr-topbar {
	padding: 0;
	min-height: 72px;
	display: flex;
	align-items: center;
}

.dr-header .dr-logo img { max-width: 262px; }

.dr-header .dr-cta { padding-right: 30px; }
.dr-header .dr-cta p {
	font-family: "Roboto Slab", Georgia, serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 21px;
	color: #1f1f1f;
	text-align: right;
	padding: 0;
	max-width: 215px;
	margin-left: auto;
}

.dr-header .dr-phone p { padding: 0; line-height: 26px; }
.dr-header .dr-phone a { color: var(--dr-red); }
.dr-header .dr-phone .dr-phone__tel { font-size: 20px; }
.dr-header .dr-phone .dr-phone__mail { font-size: 14px; letter-spacing: .02em; }

/* Red navigation bar overlapping the banner below it. */
.dr-header .dr-navbar {
	background: var(--dr-red);
	padding: 0 35px 0 35px;
	margin-bottom: -55px;
	min-height: 55px;
	display: flex;
	align-items: center;
}

.dr-navbar .et_pb_menu,
.dr-navbar .et_pb_menu .et_pb_menu_inner_container { background: transparent; }

.dr-navbar .et-menu { margin: 0 !important; }
.dr-navbar .et-menu > li { padding-left: 0 !important; padding-right: 14px !important; margin-top: 0 !important; }
.dr-navbar .et-menu > li:last-child { padding-right: 0 !important; }

.dr-navbar .et-menu > li > a {
	font-family: "Karla", sans-serif;
	font-size: 15px;
	letter-spacing: 1.125px;
	text-transform: uppercase;
	color: #fff !important;
	padding-top: 16px !important;
	padding-bottom: 16px !important;
	line-height: 23px;
}

.dr-navbar .et-menu > li > a:hover { opacity: .8; }

.dr-navbar .et_pb_menu .et-menu-nav > ul ul {
	background: var(--dr-red-soft);
	border-top: 0;
	padding: 10px 0;
	width: 260px;
}

.dr-navbar .et-menu li li { padding: 0 20px; width: 100%; }

.dr-navbar .et-menu li li a {
	font-family: "Karla", sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	color: #fff !important;
	width: 100%;
	padding: 6px 0;
}

.dr-navbar .et-menu li li a:hover { background: transparent; opacity: .8; }

.dr-navbar .et-menu .menu-item-has-children > a:first-child { padding-right: 0; }
.dr-navbar .et-menu .menu-item-has-children > a:first-child::after { display: none; }

/* Search field on the right of the bar. */
.dr-navbar .et_pb_search {
	border: 0;
	background: transparent;
}

.dr-navbar .et_pb_search input.et_pb_s {
	background: transparent;
	color: #fff;
	font-family: "Karla", sans-serif;
	font-size: 15px;
	padding: 12px 30px 12px 20px;
	height: 47px;
}

.dr-navbar .et_pb_search input.et_pb_s::placeholder { color: #fff; opacity: 1; }

.dr-navbar .et_pb_search .et_pb_searchform { position: relative; }
.dr-navbar .et_pb_search .et_pb_searchform::after {
	content: "";
	position: absolute;
	right: 8px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	background: #fff;
	pointer-events: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M505 442.7 405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M505 442.7 405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Mobile menu */
.dr-navbar .mobile_menu_bar::before,
.dr-navbar .mobile_nav .mobile_menu_bar::before { color: #fff !important; }
.dr-navbar .et_mobile_menu {
	background: var(--dr-red);
	border-top: 3px solid #fff;
}
.dr-navbar .et_mobile_menu li a {
	color: #fff !important;
	font-family: "Karla", sans-serif;
	text-transform: uppercase;
	border-bottom-color: rgba(255, 255, 255, .2);
}

@media (max-width: 980px) {
	.dr-header .dr-topbar { flex-wrap: wrap; padding: 12px 0; }
	.dr-header .dr-topbar > .et_pb_column { margin-bottom: 8px !important; }
	.dr-header .dr-logo,
	.dr-header .dr-logo .et_pb_image_wrap { text-align: center; margin: 0 auto; }
	.dr-header .dr-cta { padding-right: 0; }
	.dr-header .dr-cta p { text-align: center; margin: 0 auto; max-width: none; }
	.dr-header .dr-phone,
	.dr-header .dr-phone p { text-align: center; }
	.dr-header .dr-navbar { margin-bottom: 0; padding: 0 20px; }
	.dr-header .dr-navbar .dr-search-col { display: none; }
}

/* ==========================================================================
   Page banner + title
   ========================================================================== */
.dr-banner {
	min-height: 207px;
	padding: 0 !important;
	background-size: cover !important;
	background-position: center !important;
}

@media (max-width: 980px) { .dr-banner { min-height: 130px; } }

.dr-title h1,
.dr-title h2 {
	font-family: "Lora", Georgia, serif;
	font-size: 24px;
	line-height: 36px;
	font-weight: 700;
	text-transform: uppercase;
	color: #000;
	text-align: center;
	padding: 0 0 22px;
	margin: 10px 0 5px;
}

/* Sub-headings inside content (practice areas, legal pages…) */
.dr-content h2,
.dr-content h5,
.dr-content h4 {
	font-family: "Lora", Georgia, serif;
	font-size: 14px;
	line-height: 21px;
	text-transform: uppercase;
	color: #000;
	padding-bottom: 10px;
}

.dr-content h3 {
	font-family: "Lora", Georgia, serif;
	font-size: 18px;
	line-height: 27px;
	text-transform: uppercase;
	color: #000;
}

.dr-content ul { padding-left: 1.2em; padding-bottom: 1em; }
.dr-content ul li { list-style: disc; }

.dr-sep { border-top: 1px solid #e5e5e5; margin: 0 0 30px; }

/* Legal pages */
.dr-legal p strong:only-child { color: #000; }
.dr-legal ul li { list-style: none; }
.dr-legal ul li strong { color: #000; }
.dr-table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.dr-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.dr-table th,
.dr-table td { border: 1px solid #d9d9d9; padding: 10px 14px; text-align: left !important; vertical-align: top; }
.dr-table th,
.dr-table tr:first-child td[colspan] { background: #f4f4f4; color: #000; font-weight: 700; }
.dr-table td p { padding: 0; text-align: left !important; }
.dr-table td:first-child { width: 30%; color: #000; }
.dr-content a { word-break: break-word; }

/* "Contactar con el despacho" outlined call-to-action */
.dr-cta-btn.et_pb_button,
.et_pb_button.dr-cta-btn {
	display: block;
	width: 100%;
	text-align: center;
	font-family: "Karla", sans-serif;
	font-size: 14px !important;
	text-transform: uppercase;
	color: var(--dr-coral) !important;
	border: 2px solid var(--dr-coral) !important;
	border-radius: 5px !important;
	background: transparent !important;
	padding: 11px 19px !important;
	line-height: 1.6 !important;
}

.dr-cta-btn.et_pb_button:hover {
	background: var(--dr-coral) !important;
	color: #fff !important;
	padding: 11px 19px !important;
}

.dr-cta-btn.et_pb_button::after { display: none !important; }
.dr-cta-btn.et_pb_button::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 12px;
	margin-right: 12px;
	vertical-align: -1px;
	transform: none !important;
	top: auto !important;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 0h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1Zm.5 1.6v8.9h13V1.6L8 6.6 1.5 1.6ZM2.6 1.5 8 5.6l5.4-4.1H2.6Z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 0h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1Zm.5 1.6v8.9h13V1.6L8 6.6 1.5 1.6ZM2.6 1.5 8 5.6l5.4-4.1H2.6Z'/%3E%3C/svg%3E") no-repeat center / contain;
	position: static;
	opacity: 1;
	font-family: inherit;
}

.dr-wa-btn.et_pb_button {
	display: block;
	width: 100%;
	text-align: center;
	font-family: "Karla", sans-serif;
	font-size: 14px !important;
	text-transform: uppercase;
	color: #5ba843 !important;
	border: 2px solid #5ba843 !important;
	border-radius: 5px !important;
	background: transparent !important;
	padding: 11px 19px !important;
	line-height: 1.6 !important;
}
.dr-wa-btn.et_pb_button:hover { background: #5ba843 !important; color: #fff !important; padding: 11px 19px !important; }
.dr-wa-btn.et_pb_button::after { display: none !important; }

/* ==========================================================================
   Practice-area icons (new artwork)
   ========================================================================== */
.dr-areas .et_pb_blurb {
	border-bottom: 1px solid var(--dr-red);
	padding-bottom: 22px;
	margin: 0 15px !important;
}

.dr-areas .et_pb_blurb .et_pb_main_blurb_image { margin-bottom: 26px; }
.dr-areas .et_pb_blurb .et_pb_main_blurb_image img { max-width: 175px; width: 100%; }

.dr-areas .et_pb_blurb h3,
.dr-areas .et_pb_blurb h4,
.dr-areas .et_pb_blurb .et_pb_module_header {
	font-family: "Karla", sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--dr-red);
	padding: 0;
	white-space: nowrap;
}

.dr-areas .et_pb_blurb .et_pb_module_header a { color: var(--dr-red); }

.dr-areas .et_pb_blurb .et_pb_main_blurb_image a img { transition: transform .25s ease; }
.dr-areas .et_pb_blurb:hover .et_pb_main_blurb_image a img { transform: translateY(-4px); }

.dr-section-heading h1,
.dr-section-heading h2,
.dr-section-heading h3 {
	font-family: "Karla", sans-serif;
	font-size: 24px;
	line-height: 36px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--dr-dark);
	text-align: center;
	padding: 0;
}

.dr-section-heading span { color: var(--dr-red); }

@media (max-width: 980px) {
	.dr-areas .et_pb_column { width: 50% !important; margin-right: 0 !important; padding: 0 10px; margin-bottom: 30px !important; }
	.dr-areas .et_pb_column:last-child { margin-left: 25%; }
}
@media (max-width: 479px) {
	.dr-areas .et_pb_column { width: 100% !important; }
	.dr-areas .et_pb_column:last-child { margin-left: 0; }
}

/* ==========================================================================
   Home — "El despacho" red block
   ========================================================================== */
.dr-history {
	background: var(--dr-red);
	padding-top: 0 !important;
	padding-bottom: 114px !important;
}

.dr-history .dr-badge {
	display: table;
	margin: 0 auto 50px;
	background: #000;
	padding: 60px 15px 10px;
	font-family: "Roboto Slab", Georgia, serif;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.2;
	color: #fff;
	text-transform: uppercase;
}

.dr-history .dr-badge p { padding: 0; }
.dr-history .dr-badge span { color: var(--dr-red); }

.dr-history h2 {
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	padding-bottom: 25px;
}

.dr-history .dr-history__text p {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	line-height: 30px;
	color: #fff;
	text-align: justify;
	padding-bottom: 20px;
}
.dr-history .dr-history__text p:last-child { padding-bottom: 0; }

/* Photo fills exactly the height of the text column, so nothing looks cropped or floats. */
/* Photo fills exactly the height of the text column (the column split is chosen so the photo's
   natural proportions already match the text; this pin just guarantees the edges line up). */
.dr-history .dr-history__row { display: flex; align-items: stretch; }
.dr-history .dr-history__photo { position: relative; }
.dr-history .dr-history__photo .et_pb_image {
	position: absolute;
	inset: 0;
	margin: 0 !important;
}
.dr-history .dr-history__photo .et_pb_image_wrap { display: block; width: 100%; height: 100%; }
.dr-history .dr-history__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
}

@media (max-width: 980px) {
	.dr-history .dr-history__row { display: block; }
	.dr-history .dr-history__photo .et_pb_image { position: static; }
	.dr-history .dr-history__photo img { height: auto; max-width: 420px; margin: 30px auto 0; }
}

.dr-readmore-wrap { margin-top: 0 !important; }
.dr-readmore.et_pb_button {
	background: #000 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-family: "Karla", sans-serif;
	font-weight: 700;
	font-size: 14px !important;
	text-transform: uppercase;
	padding: 13px 45px !important;
}
.dr-readmore.et_pb_button:hover { background: #222 !important; padding: 13px 45px !important; }
.dr-readmore.et_pb_button::after { display: none !important; }

/* ==========================================================================
   Home — Materias destacadas (rotating quotes)
   ========================================================================== */
.dr-materias-title h2 {
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 24px;
	line-height: 36px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--dr-dark);
	padding: 0;
}
.dr-materias-title strong { color: var(--dr-red); }

.dr-quotes.et_pb_slider { background: transparent; overflow: visible; }
.dr-quotes .et_pb_slide { background: transparent !important; padding: 0 80px; min-height: 0; }
.dr-quotes .et_pb_slide_description { padding: 0 !important; text-align: left; text-shadow: none; }
.dr-quotes .et_pb_container { height: auto !important; min-height: 60px; }
.dr-quotes .et_pb_slider_container_inner { display: block; }
.dr-quotes .et_pb_slide_content,
.dr-quotes .et_pb_slide_content p {
	font-family: "Open Sans", Arial, sans-serif;
	font-style: italic;
	font-size: 15px;
	line-height: 36px;
	color: var(--dr-text) !important;
	text-shadow: none;
}
.dr-quotes .et_pb_slide::before,
.dr-quotes .et_pb_slide::after {
	content: "";
	position: absolute;
	width: 34px;
	height: 28px;
	background: #3e4448;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 28'%3E%3Cpath d='M0 15.5C0 6.6 5.4 1.2 13.4 0l1.2 3.4C10 4.6 7.6 8 7.3 12H14v16H0V15.5Zm19 0C19 6.6 24.4 1.2 32.4 0l1.2 3.4C29 4.6 26.6 8 26.3 12H33v16H19V15.5Z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 28'%3E%3Cpath d='M0 15.5C0 6.6 5.4 1.2 13.4 0l1.2 3.4C10 4.6 7.6 8 7.3 12H14v16H0V15.5Zm19 0C19 6.6 24.4 1.2 32.4 0l1.2 3.4C29 4.6 26.6 8 26.3 12H33v16H19V15.5Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.dr-quotes .et_pb_slide::before { left: 0; top: 4px; }
.dr-quotes .et_pb_slide::after { right: 30px; bottom: -48px; transform: rotate(180deg); }
.dr-quotes .et-pb-controllers { display: none; }
.dr-quotes .et-pb-slider-arrows a { color: var(--dr-dark); }

.dr-quote-author { display: flex; align-items: center; gap: 24px; padding-left: 75px; }
.dr-quote-author img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.dr-quote-author span {
	font-family: "Roboto", "Karla", sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	color: #000;
}

@media (max-width: 767px) {
	.dr-quotes .et_pb_slide { padding: 0 40px; }
	.dr-quote-author { padding-left: 0; justify-content: center; }
}

/* ==========================================================================
   Home — blog teaser
   ========================================================================== */
.dr-blog-section { background: #ececec; }

.dr-blog-feature__media { display: block; position: relative; }
.dr-blog-feature__media img { display: block; width: 100%; }
.dr-blog-feature__date {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	padding: 10px 0 8px;
	background: #cc8800;
	color: #fff;
	text-align: center;
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}
.dr-blog-feature__date strong { display: block; font-size: 22px; line-height: 1.3; }
.dr-blog-feature__excerpt {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	line-height: 29px;
	font-weight: 700;
	color: #000;
	text-transform: uppercase;
	padding-top: 30px;
}

.dr-blog-list .et_pb_post { margin-bottom: 40px; }
.dr-blog-list .entry-title {
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 18px !important;
	line-height: 1.4 !important;
	text-transform: uppercase;
	color: #000;
}
.dr-blog-list .entry-title a { color: #000; }
.dr-blog-list .post-content-inner,
.dr-blog-list .post-content p {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	line-height: 29px;
	color: var(--dr-grey);
	text-transform: uppercase;
}
.dr-blog-list .more-link {
	display: inline-block !important;
	width: auto !important;
	margin-top: 20px;
	background: #e52d27;
	color: #fff !important;
	font-family: "Karla", sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	padding: 12px 20px;
}

/* Blog page list */
.dr-blog-page .et_pb_post { border-bottom: 1px solid #e5e5e5; padding-bottom: 40px; margin-bottom: 50px; }
.dr-blog-page .entry-title {
	font-family: "Lora", Georgia, serif;
	font-size: 18px !important;
	text-transform: uppercase;
}
.dr-blog-page .entry-title a { color: #000; }
.dr-blog-page .post-meta { font-family: "Karla", sans-serif; font-weight: 700; text-transform: uppercase; color: var(--dr-orange); }
.dr-blog-page .post-meta a { color: #3d7ab8; }
.dr-blog-page .more-link {
	display: inline-block !important;
	width: auto !important;
	margin-top: 25px;
	background: var(--dr-orange);
	color: #fff !important;
	font-family: "Karla", sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	padding: 12px 25px;
}

/* ==========================================================================
   Contact page (new side-by-side design)
   ========================================================================== */
.dr-contact-box.et_pb_blurb {
	border: 1px solid var(--dr-border);
	padding: 30px 30px 26px;
	margin-bottom: 14px !important;
	min-height: 158px;
}
.dr-contact-box:last-child { margin-bottom: 0 !important; }
.dr-contact-box .et_pb_blurb_content { max-width: none; }
.dr-contact-box .et-pb-icon { color: var(--dr-orange) !important; font-size: 30px !important; }
.dr-contact-box .et_pb_module_header {
	font-family: "Lora", Georgia, serif;
	font-size: 18px;
	text-transform: uppercase;
	color: #000;
	padding-bottom: 6px;
}
.dr-contact-box .et_pb_blurb_description,
.dr-contact-box .et_pb_blurb_description p {
	font-family: "Karla", sans-serif;
	font-size: 15px;
	line-height: 26px;
	color: var(--dr-text);
	letter-spacing: .02em;
}
.dr-contact-box .et_pb_blurb_description a { color: var(--dr-text); }
.dr-contact-box .et_pb_blurb_description a.dr-wa-inline { display: inline-block; vertical-align: -3px; margin-left: 6px; color: var(--dr-whatsapp); line-height: 0; }
.dr-contact-box .et_pb_blurb_description a.dr-wa-inline svg { width: 19px; height: 19px; }

.dr-map { height: 100%; }
.dr-map iframe { display: block; width: 100%; height: 502px; border: 0; }
.dr-contact-row { display: flex; align-items: stretch; }
.dr-contact-row > .et_pb_column:last-child .et_pb_code,
.dr-contact-row > .et_pb_column:last-child .et_pb_code_inner { height: 100%; }
.dr-contact-row > .et_pb_column:last-child iframe { height: 100%; min-height: 502px; }

.dr-contact-box .et_pb_blurb_description a[href^="mailto"] { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1240px) {
	.dr-contact-row > .et_pb_column:first-child { width: 38% !important; }
	.dr-contact-row > .et_pb_column:last-child { width: 56.5% !important; }
	.dr-contact-box.et_pb_blurb { padding: 28px 22px 24px; }
	.dr-contact-box .et_pb_blurb_description a[href^="mailto"] { letter-spacing: 0; font-size: 14px; }
}

/* Google Maps consent gate */
.dr-map-gate { position: relative; height: 100%; min-height: 300px; background: #eef1f3; }
.dr-map-gate iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
.dr-map-gate:not(.is-loaded) iframe { visibility: hidden; }
.dr-map-gate__notice {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	text-align: center;
	color: var(--dr-text);
}
.dr-map-gate__notice p { padding: 0; max-width: 380px; }
.dr-map-gate__btn {
	background: var(--dr-red);
	color: #fff;
	border: 0;
	padding: 10px 24px;
	font-family: "Karla", sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	cursor: pointer;
}
.dr-map-gate__btn:hover { background: #a80a27; }
.dr-map-gate__notice a { font-size: 13px; color: var(--dr-text); text-decoration: underline; }
.dr-map-gate.is-loaded .dr-map-gate__notice { display: none; }
body:not(.et_pb_pagebuilder_layout) .entry-content .dr-map-gate { max-width: 400px; height: 300px; margin: 0 auto; }
.dr-map .dr-map-gate,
.dr-map .dr-map-gate iframe { width: 100%; height: 100%; min-height: 502px; }

@media (max-width: 980px) {
	.dr-contact-row { display: block; }
	.dr-contact-row > .et_pb_column:last-child iframe { min-height: 380px; }
}

/* ==========================================================================
   El equipo
   ========================================================================== */
.dr-team .et_pb_blurb .et-pb-icon { color: #000; font-size: 48px; }
.dr-team .et_pb_blurb .et_pb_module_header {
	font-family: "Karla", sans-serif;
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	color: #000;
	padding: 18px 0 14px;
}
.dr-team .et_pb_blurb_description,
.dr-team .et_pb_blurb_description p {
	text-align: center !important;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	line-height: 26px;
	color: var(--dr-grey);
}

/* ==========================================================================
   ¿Por qué Diego Rossi Abogados? — organised gallery
   ========================================================================== */
.dr-lead h2 {
	font-family: "Lora", Georgia, serif;
	font-size: 18px;
	line-height: 27px;
	text-transform: uppercase;
	color: #000;
	text-align: justify;
	padding-bottom: 14px;
}
.dr-porque-photo img { width: 100%; aspect-ratio: 555 / 380; object-fit: cover; }

.dr-gallery.et_pb_gallery .et_pb_gallery_items.et_pb_gallery_items {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
}
.dr-gallery .et_pb_gallery_item { width: 100% !important; margin: 0 !important; clear: none !important; }
.dr-gallery .et_pb_gallery_image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 479px) {
	.dr-gallery.et_pb_gallery .et_pb_gallery_items.et_pb_gallery_items { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}
.dr-porque-photo img { aspect-ratio: auto; }

/* ==========================================================================
   Hero slider (home) — banners shown whole, never cropped
   ========================================================================== */
.dr-hero.et_pb_slider .et_pb_slide {
	aspect-ratio: 1904 / 701;
	min-height: 0;
	padding: 0;
	background-size: cover !important;
	background-position: center top !important;
	position: relative;
}
.dr-hero .et_pb_container,
.dr-hero .et_pb_slider_container_inner,
.dr-hero .et_pb_slide_description { position: static; height: auto !important; padding: 0 !important; }
.dr-hero .et_pb_slide_title { display: none; }
/* Each slide is fully clickable through its (invisible) button. */
.dr-hero .et_pb_more_button {
	position: absolute !important;
	inset: 0;
	z-index: 5;
	opacity: 0;
	font-size: 0 !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}
.dr-hero .et-pb-controllers { bottom: 14px; }
.dr-hero .et-pb-controllers a { background-color: rgba(255, 255, 255, .7); }
.dr-hero .et-pb-controllers .et-pb-active-control { background-color: var(--dr-red); }

/* ==========================================================================
   Footer (Theme Builder) — balanced four-column layout
   ========================================================================== */
.dr-footer { background: var(--dr-footer); padding: 45px 0 40px !important; }
.dr-footer .et_pb_row {
	display: grid;
	grid-template-columns: 1.15fr 0.9fr 1fr 1.35fr;
	column-gap: 40px;
	align-items: start;
}
.dr-footer .et_pb_row::after { display: none; }
.dr-footer .et_pb_row > .et_pb_column { width: auto !important; margin: 0 !important; }
.dr-footer .dr-footer__logo img { max-width: 250px; }
.dr-footer h4 {
	font-family: "Karla", sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 27px;
	text-transform: uppercase;
	color: #fff;
	padding: 0 0 15px;
	margin: 0;
}
.dr-footer ul { padding: 0; margin: 0; list-style: none; }
.dr-footer ul li { list-style: none; padding: 0; line-height: 1.5; margin-bottom: 4px; }
.dr-footer ul a,
.dr-footer .dr-footer__contact,
.dr-footer .dr-footer__contact a {
	font-family: "Karla", sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: var(--dr-footer-link);
	letter-spacing: .02em;
}
.dr-footer ul a:hover,
.dr-footer .dr-footer__contact a:hover { color: #fff; }
.dr-footer .dr-footer__contact p { display: flex; align-items: flex-start; gap: 10px; padding: 0 0 8px; line-height: 1.5; }
.dr-footer .dr-footer__contact svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 3px; fill: #fff; }
.dr-footer .dr-social { display: flex; gap: 16px; padding-top: 10px; }
.dr-footer .dr-social a { line-height: 0; }
.dr-footer .dr-social svg { width: 19px; height: 19px; fill: #fff; }
.dr-footer .dr-social a:hover svg { fill: var(--dr-footer-link); }

.dr-copyright { background: var(--dr-copyright); padding: 20px 0 !important; }
.dr-copyright p {
	font-family: "Karla", sans-serif;
	font-size: 14px;
	color: #fff;
	text-align: center;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}
.dr-copyright a { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.dr-copyright img { height: 26px; width: auto; }

@media (max-width: 980px) {
	.dr-footer .et_pb_row { display: block; }
	.dr-footer .et_pb_row > .et_pb_column { width: 100% !important; float: none !important; margin: 0 0 30px !important; }
	.dr-footer .et_pb_row > .et_pb_column:last-child { margin-bottom: 0 !important; }
	.dr-footer h4,
	.dr-footer ul,
	.dr-footer ul li { text-align: center !important; }
	.dr-copyright .dr-dash { display: none; }
	.dr-footer .dr-footer__logo,
	.dr-footer .dr-footer__logo .et_pb_image_wrap { margin: 0 auto; text-align: center; }
	.dr-footer .et_pb_column { text-align: center; margin-bottom: 30px !important; }
	.dr-footer .dr-footer__contact p,
	.dr-footer .dr-social { justify-content: center; }
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.dr-whatsapp {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9990;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--dr-whatsapp);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	transition: transform .2s ease, box-shadow .2s ease;
}
.dr-whatsapp:hover { transform: scale(1.07); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); color: #fff; }
.dr-whatsapp svg { width: 32px; height: 32px; }
@media (max-width: 767px) { .dr-whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

/* ==========================================================================
   Non-builder content (blog posts, Gutenberg landing pages)
   ========================================================================== */
body:not(.et_pb_pagebuilder_layout) #main-content .container { padding-top: 110px; }
body.single-post #main-content .container,
body.page:not(.et_pb_pagebuilder_layout) #main-content .container { width: 90%; max-width: var(--dr-container); }
#main-content .container::before { display: none; }

.single-post .entry-title,
.page:not(.et_pb_pagebuilder_layout) .entry-title {
	font-family: "Lora", Georgia, serif;
	font-size: 18px;
	text-transform: uppercase;
	color: #000;
}
/* Landing pages (Gutenberg content) show no visible title on the original site; keep the H1 for SEO. */
.page:not(.et_pb_pagebuilder_layout) h1.main_title,
.page:not(.et_pb_pagebuilder_layout) h1.entry-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.single-post .entry-content h3,
.page:not(.et_pb_pagebuilder_layout) .entry-content h3 { font-size: 22px; line-height: 1.6; padding-bottom: 12px; }
.single-post .entry-content h3 a,
.page:not(.et_pb_pagebuilder_layout) .entry-content h3 a { color: #3d7ab8; }
.single-post .post-meta { font-family: "Karla", sans-serif; font-weight: 700; text-transform: uppercase; color: var(--dr-orange); }
.single-post .post-meta a { color: #3d7ab8; }
.single-post .entry-content p,
.page:not(.et_pb_pagebuilder_layout) .entry-content p { text-align: justify; }

/* Minimal fallbacks for core blocks used in older posts. */
.entry-content .wp-block-cover { position: relative; display: flex; align-items: center; justify-content: center; padding: 1em 2em; margin-bottom: 1.5em; overflow: hidden; }
.entry-content .wp-block-cover__background { position: absolute; inset: 0; }
.entry-content .wp-block-cover__inner-container { position: relative; width: 100%; }
.entry-content .has-vivid-red-background-color { background-color: #cf2e2e; }
.entry-content .has-cyan-bluish-gray-background-color { background-color: #abb8c3; }
.entry-content .has-background-dim-30 { opacity: .3; }
.entry-content .wp-block-cover h2,
.entry-content .has-vivid-red-background-color ~ .wp-block-cover__inner-container p { color: #fff; }
.entry-content .wp-block-media-text { display: grid; grid-template-columns: 1fr 32%; gap: 30px; align-items: center; margin-bottom: 1.5em; }
.entry-content .wp-block-media-text img { width: 100%; height: auto; }
.entry-content .wp-block-columns { display: flex; gap: 2em; margin-bottom: 1.5em; }
.entry-content .wp-block-columns > .wp-block-column { flex: 1; }
.entry-content .has-text-align-center { text-align: center !important; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content .has-medium-font-size { font-size: 18px; line-height: 1.6; }
.entry-content hr.wp-block-separator { border: 0; border-top: 2px solid #777; margin: 20px 0; }
@media (max-width: 767px) {
	.entry-content .wp-block-media-text,
	.entry-content .wp-block-columns { display: block; }
}

/* ==========================================================================
   Sticky navigation — once the page scrolls past the red menu bar it locks
   to the top of the window and stretches to full width (see functions.php).
   ========================================================================== */
.dr-navbar-spacer { display: none; }
body.dr-nav-fixed .dr-navbar-spacer { display: block; }
body.dr-nav-fixed .et-l--header .dr-header { z-index: 9990; }
body.dr-nav-fixed .et-l--header .dr-header .dr-navbar.et_pb_row {
	position: fixed !important;
	top: var(--dr-nav-top, 0px);
	left: 0;
	right: 0;
	z-index: 9990 !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding-left: calc(var(--dr-nav-inset, 0px) + var(--dr-nav-pad, 35px)) !important;
	padding-right: calc(var(--dr-nav-inset, 0px) + var(--dr-nav-pad, 35px)) !important;
	border-radius: 0;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .2);
	animation: dr-nav-shadow .3s ease-out;
}
body.dr-nav-fixed .et-l--header .dr-navbar .et_mobile_menu {
	max-height: calc(100vh - 70px - var(--dr-nav-top, 0px));
	overflow-y: auto;
}
@keyframes dr-nav-shadow { from { box-shadow: 0 0 0 rgba(0, 0, 0, 0); } }
