@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/*---------GENERAL-------*/
/*-----------------------*/
body {
    background: linear-gradient(180deg, #f2f9f8 0%, #eef7f6 100%);
}

body,
.elementor-edit-area-active .e-con {
    font-family: Inter, system-ui, sans-serif !important;

    --primary-color: #014046 !important;
    --secondary-color: #4d7870 !important;

    --tertiary-color: #3d3d3b;
    --color-light: #f5f5f5;
    --special-color: #001841;
}

h1, h2, h3, h4, h5, h6,
p, a {
    font-family: Inter, system-ui, sans-serif !important;
}

p, a {
    font-size: 16px;
}

.hsfc-Step__Banner {
    display: none !important;
}

a {
    text-decoration: none;
    color: #5DBBD4;
    font-weight: 600;
    transition: transform 0.3s;
    display: inline-block;
}

a:hover {
    transform: scale(1.03);
}

.title h2 {
    margin: 16px 0 10px;
    font-size: 46px;
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-align: center;
    font-weight: 600 !important;
}

.btn-primary {
    background: #4098AC;
    border-color: #4098AC;
    transition: transform 0.3s;
}

.btn:hover,
.btn-check:checked+.btn, :not(.btn-check)+.btn:active, .btn:first-child:active, .btn.active, .btn.show {
    background: #4098AC;
    border-color: #4098AC;
    transform: scale(1.03);
}

/*-------SCROLL-------*/
html, body, .modal-body {
    scrollbar-width: thin; 
    scrollbar-color: var(--primary-color) white; 
}

/*--USET DEFAULT ELEMENTOR STYLES--*/
.elementor-widget-heading {
    margin-bottom: 0;
}

.elementor-widget-text-editor p:last-child {
    margin-bottom: 0;
}

.elementor * {
    box-sizing: border-box;
}

.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6 {
    margin: 0;
    line-height: 1.1;
}

.elementor p:last-child {
    margin-bottom: 0;
}

.elementor-heading-title {
    line-height: unset !important;
}

/*---------HEADER--------*/
/*-----------------------*/
.home #masthead {
    background-color: unset !important;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    border-bottom: 1px solid #ffffff29;
}

#masthead {
    
}

.navbar-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-brand a {
    display: block;
}

.navbar-brand img {
    width: 200px;
    max-width: 100%;
    margin: auto;
    max-height: 70px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
}

.home .navbar-brand img {
    filter: brightness(0) invert(1);
}

.navbar-brand img[alt="Ayuntamiento de Salamanca"] {
    max-height: 80px;
}

#offcanvas-navbar {
    display: none;
}

/*-------BREADRUMBS-------*/
/*------------------------*/
.breadcrumbs-wrap {
    padding: 30px 20px;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 45px;
    background: linear-gradient(93deg, rgba(0, 77, 84, 1) 1%, rgba(124, 223, 255, 1) 100%);
}

.breadcrumbs-wrap p {
    margin-bottom: 0;
}

.breadcrumbs-wrap * {
    color: white;
}

/*---------BANNER--------*/
/*-----------------------*/
.elementor-element:has(.banner) {
    padding: 0 !important;
    position: relative;
}

.elementor-element:has(.banner)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: 
        linear-gradient(180deg, rgba(6, 20, 14, 0.1) 0%, rgba(6, 20, 14, 0.25) 50%, rgba(6, 20, 14, 0.4) 100%), 
        linear-gradient(120deg, rgba(6, 20, 14, 0.5) 0%, rgba(6, 20, 14, 0.2) 100%);
}

.e-con-inner {
    position: relative;
    z-index: 1;
}

.banner .content-wrap {
    max-width: 660px;
}

.banner h1 {
    color: white;
    font-size: 60.8px;
    line-height: 65px !important;
    letter-spacing: -4.2px;
    font-weight: 500 !important;
}

/*----------BLOCKS----------*/
/*--------------------------*/
.section-box {
    padding: 35px !important;
    border-radius: 32px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fdfc 100%);
    border: 1px solid #c2e4e0;
    box-shadow: 0 10px 28px rgba(11, 41, 32, 0.07);
    margin: 36px 0 !important;
}

.section-kicker {
    background: linear-gradient(93deg, rgba(0, 77, 84, 1) 1%, rgba(124, 223, 255, 1) 100%);
    color: white;
    padding: 9px 40px;
    border-radius: 999px;
    font-size: 14px;
    width: fit-content;
    margin: 0 auto;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-wrap .inner-box {
    max-width: 1100px;
    margin: 0 auto !important;
}

.portfolio-wrap p,
.events-wrap p {
    color: var(--secondary-color);
}

.portfolio-wrap h5 {
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700 !important;
    margin-top: 10px;
}

.benefit-card {
    padding: 28px 24px !important;
    border: 1px solid #c2e4e0;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f4fafa 100%);
    box-shadow: 0 10px 28px rgba(11, 41, 32, 0.07);
}

.benefit-card .portfolio-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dff8f7;
    border: 1px solid #b4dede;
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(11, 41, 32, 0.07);
}

.e-n-accordion .e-n-accordion-item:last-child summary,
.e-n-accordion .e-n-accordion-item:last-child > div {
    border: unset !important;
}

/*------SOCIAL NETWORKS-----*/
/*--------------------------*/
.header-actions {
    padding-left: 15px;
}

.social-networks ul,
.social-networks-widget {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding-left: 0;
}

.social-networks a,
.social-networks-widget a {
    color: white;
    padding: 0 10px !important;
    position: relative;
    font-size: 20px;
    display: block;
    margin-top: -2px;
}

.social-networks img,
.social-networks-widget img {
    width: 20px;
    height: 20px;
}

.path-node .social-networks a,
.path-node .social-networks-widget a {
    color: var(--primary-color);
}

.social-networks ul {
    list-style: none;
}

/*-----------BLOG----------*/
/*-------------------------*/
.article-teaser .img-wrap img {
    height: 220px;
    margin-bottom: 10px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    border: 1px solid rgb(235, 235, 235);
}

/*-------EVENTS VIEW-------*/
/*-------------------------*/
.events-view > div {
    padding-left: 10px;
    padding-right: 10px;
}

/*---------EVENTS----------*/
/*-------------------------*/
.event .sidebar {
    border: 1px solid #c2e4e0;
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 28px rgba(11, 41, 32, 0.07);
}

.event .sidebar .text p {
    margin-bottom: 0;
    font-size: 16px;
}

.event .sidebar p.label {
    margin-bottom: 3px;
}

.event .icon-text {
    display: flex;
    align-items: start;
    margin-bottom: 10px;
}

.event .icon-text img {
    padding: 10px;
    padding-top: 0;
    width: 40px;
    margin-right: 15px;
    text-align: center;
}

.event .icon-text .text {
    max-width: calc(100% - 50px);
    text-align: left;
}

.event-teaser {
    border: 1px solid #c2e4e0;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f4fafa 100%);
    box-shadow: 0 10px 28px rgba(11, 41, 32, 0.07);
    height: 100%;
}

.event-teaser .img-wrap img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}

.event-teaser .event-body {
    padding: 22px;
}

.event-teaser .event-date {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #dff8f7;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.event-teaser h3 {
    font-size: 19px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.event-teaser .event-place {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 15px;
}

.event-teaser .text-wrap {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.event-teaser h4 {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    color: var(--special-color);
    margin-bottom: 20px;
}

.event-teaser p {
    margin-bottom: 0;
}

.single-event h1 {
    font-size: 30px;
    margin-bottom: 35px;
}

.single-event .event-image {
    margin-bottom: 35px;
}

.single-event .event-image img {
    border-radius: 22px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 10px 28px rgba(11, 41, 32, 0.07);
    max-height: 500px;
}

/*---------FORM----------*/
/*-----------------------*/
.form-block-wrap {
    margin: 72px 0 36px 0 !important;
}

.form-block-wrap .form-wrap {
    padding: 28px;
}

.form-block-wrap .inner-box {
    border: 1px solid #c2e4e0;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f4fafa 100%);
    box-shadow: 0 10px 28px rgba(11, 41, 32, 0.07);
}

.form-block-wrap .img-wrap img {
    height: 340px !important;
    border-top-left-radius: 22px !important;
    border-top-right-radius: 22px !important;
    object-fit: cover;
    object-position: center;
}

.form-block-wrap .form-control {
    min-height: 52px;
    border-radius: 14px;
    border: 1.5px solid #c2e4e0;
    padding: 0 16px;
    color: #0b2920;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.form-block-wrap .acceptance-button {
    margin-top: 10px;
    margin-left: -10px;
}

.form-block-wrap .dscf7-captcha-container {
    padding: 5px;
    background: unset;
}

/*--------COOKIES---------*/
/*------------------------*/
.cky-notice .cky-btn-accept {
    background-color: transparent !important;
    color: #1863DC !important;
}

.empty-policy-notice {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 360px;
    background-color: #f2f2f2;
    color: #333;
    text-align: center;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.elementor-widget-google_maps .video-placeholder-normal {
    align-items: center;
    border-radius: 8px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
}

.video-placeholder-text-normal {
    color: black !important; 
    background-color: unset !important;
    border: none !important; 
    padding: 20px !important;
}

/*--------FOOTER---------*/
/*-----------------------*/
footer .bg-body-tertiary {
    background: linear-gradient(180deg, #f2f9f8 0%, #eef7f6 100%) !important;
}

footer a {
    font-size: 14px;
    color: black;
}

.modal {
	--bs-modal-width: 90%;
}

.modal-dialog-scrollable,
.modal-dialog {
	max-width: 1320px;
}

.modal-dialog-scrollable .modal-content {
    min-height: 500px;
	max-height: 100%;
	padding-bottom: 5px;
}

.modal.show .modal-dialog {
    padding: 15px;
}

.modal-body .full-event {
	padding: 20px 15px;
	padding-top: 0;
}

.modal-body > button {
	display: flex;
	justify-self: end;
}

.modal-content {
	border-radius: 15px;
}

/*------RESPONSIVE-------*/
/*-----------------------*/
@media (min-width: 1400px) {
    .e-con {
        --container-max-width: 1320px !important;
    }
}

@media (min-width: 767px) and (max-width: 1200px) {
    .section-box {
        margin-left: 30px !important;
        margin-right: 30px !important;
    }
}

@media (max-width: 1200px) {
    .portfolio-wrap .inner-box {
        max-width: unset;
    }

    .event-teaser .event-body {
        padding: 15px;
    }
}

@media (max-width: 991px) {
    .benefit-cards-wrap {
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }

    .benefit-card {
        padding: 28px 15px !important;
        width: 48.5% !important;
    }

    .portfolio-wrap {
        padding: 35px 20px !important;
    }
}

@media (max-width: 767px) {
    .benefit-card {
        width: 47.5% !important;
    }

    .events-view {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .benefit-cards-wrap {
        justify-content: center !important;
    }

    .benefit-card {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .modal {
		--bs-modal-width: calc(100% - 30px);
	}

    .banner h1 {
        font-size: 50px;
    }

    .form-block-wrap {
        padding: 0 !important;
    }

    .section-box {
        padding: 15px !important;
    }

    .title h2 {
        font-size: 36px;
        line-height: 40px !important;
    }

    .events-view .col-sm-10,
    .benefit-cards-wrap {
        padding: 0 !important;
    }
}