:root{
	--bg-website:#FA5000;
}
	
* {
	margin: 0;	
	padding: 0;
	box-sizing: border-box;
}

h1 {
  font-size: 1rem;
}

body {
	font-family: 'Segoe UI', sans-serif;
	line-height: 1.6;
	background: #f0fdf4;
	color: black;	
	user-select: none;
}
html {
	scroll-behavior: smooth;	
}

header {
	background: var(--bg-website);
	color: white;
	padding: 1rem 2rem;
	text-align: center;
	position: sticky;
	top: 0;
}
	
#logo{
	width:300px;
}

header.scrolled > #logo{
	width:auto;
}

header.scrolled {
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 2;
}
	
header.scrolled > img {
	height:40px;
}


.scroll-target {
	scroll-margin-top: 72px; 
}

nav a {
	color: black;
	margin: 0 1rem;
	text-decoration: none;
}

header.scrolled > nav > a {
	font-size:0.8rem;
}
	
.content {
	padding: 1rem;
	margin: auto;
}
	
.content-we {
	position: relative;
	display: grid;
	place-items: center; 
	height: 50vh;
	text-align: center;
}	
	
.content-we::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.8;  
	background-image: url("/images/bg-we.jpg");
	background-size: cover;     
	background-position: center;  
	background-repeat: no-repeat; 
}

.content-we h1{
	position: relative;
	color: white;	
	font-size:2rem;
}

.content-we p {
	position: relative;
	color: white;	  
}
	
.content-we p {
	background-color:black;
	opacity:0.6	  ;
	padding:1rem;
	border-radius: 5px;
	margin: 0.5rem;
}	

.content-we-detail {
	margin: auto;
	padding: 40px 0px 40px 0px;
	background: var(--bg-website);
}	
	
.content-we-detail h1{
	color: black;
	text-align:center;
	font-size:1.3rem;
}

.content-we-detail p {
	color: black;
	text-align:center;
	font-size:0.9rem;
}

.filters {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 2rem;
	grid-auto-rows: minmax(100px, auto);
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-around;	  
}

.filters > .col {
	background: white;
	border-radius: 10px;
	padding: 1rem;
	box-shadow: 0px 0px 0px 0px #333;
	text-align: center;
	border: 1px solid #9997971f;
}

.adv:hover{ cursor: pointer; }

.filters > .col.advertising img {
	width: 100%;
	border-radius: 5px;
	max-height: 200px;
	object-fit: cover;
}

#categories-day {
	text-align: left;
}

.section__advertising {
	background: var(--bg-website);
	color:black;
	text-align:center;
	border-radius: 5px;
	margin-bottom:5px;
}

.section__calendar {
	background: var(--bg-website);
	color:black;
	text-align:center;
	border-radius: 5px;
	margin-bottom:5px;
}

.categories-day-selected {
	background: var(--bg-website);
	color:black;
	text-align:center;
	border-radius: 5px;
	margin-bottom:5px;
}

.section__calendar_notevents{
	background:rgba(6,182,212,.25);
	color:black;
	text-align:center;
	border-radius: 5px;
	margin-top:5px;
}

.section__calendar_category_title{
	background:rgba(6,182,212,.25);
	color:black;
	text-align:left;
	border-radius: 5px;
	margin-top:5px;
	padding-left:5px;
}

.section__calendar_category_title a {
	color:black;
	text-decoration: none;
}

.categories-day-info {
	background: whitesmoke;
	color:black;
	text-align:center;
	border-radius: 5px;
	margin-top:5px;
	font-size: 11px;
}

.section__weather-title {
	background: var(--bg-website);
	color:black;
	text-align:center;
	border-radius: 5px;
	margin-top:20px;
	margin-bottom:20px;
}

.section__event-image,
.section__event-title {
	background: var(--bg-website);
	color:black;
	text-align:center;
	border-radius: 5px;
	margin-top:20px;
	margin-bottom:20px;
}

.section__event-title h1 {
	font-size:1rem;
}
  
hr {
  color: var(--bg-website);
}

.agenda-title h1{
	font-size:1.5rem;
}

#agenda_all > div {		
	padding:1rem 0;
	background: #e8e8e8;
	border-radius: 5px;
	padding:0.5rem;
	text-align:center;
}

.events-category {		
	padding:1rem 0;
}
	
.events-category > div {
	background: var(--bg-website);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	border-radius: 5px;
	width: 100%;
	height: 100%;
	padding:0.5rem;		
}	
	
.events-category > div h2 {
	font-size:1rem;
}	
	
.events-category-number > div span {
	font-size:1rem;
}		
	
.events {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 2rem;
	grid-auto-rows: minmax(100px, auto);
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-around;	  
}

.events > .event {
	background: white;
	border-radius: 10px;
	padding: 1rem;
	box-shadow: 0px 0px 0px 0px #333;
	text-align: center;
	border: 1px solid #9997971f;
}

.event img {
	width: 100%;
	border-radius: 5px;
	height: 250px;
	object-fit: cover;
}

.eventdetail {
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-gap: 2rem;
	grid-auto-rows: minmax(100px, auto);
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-around;	  
}

.eventdetail img {
	width: 100%;
	border-radius: 5px;
	object-fit: cover;
}

.eventdetail div.detail div.info{
	background: white;
	border-radius: 10px;
	padding: 1rem;
	box-shadow: 0px 0px 0px 0px #333;
	text-align: left;
	border: 1px solid #9997971f;
}

footer {
	background: rgba(0, 0, 0, 0.75);
	color: white;
	text-align: center;
	padding: 1rem;
}
	
footer a {
	color: white;
	text-decoration: none;
}	

#gotoup {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: none; 
	background-color: #ccc;
	color: black;
	border: none;
	padding: 12px 16px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 4px 6px rgba(0,0,0,0.2);
	transition: background-color 0.3s ease;
	border: 1px solid #9997971f;
}

#gotoup:hover {
	background-color: #eee;
	border: 1px solid #9997971f;
}
	
.section__weather {
	width: 100%;
	max-width: 1400px;
	padding-top: 0px;
	margin: 0;
}

.weather__block {
	width: 100%;	
	float: left;
}

.wi, 
.weather_temperature {
	font-size: 5rem;
	width: 100%;
	text-align: center;
}

.weather_name {
	font-weight: bold;
	font-size: 0.8rem;
}

.calendar-controls{
	display:flex; 
	gap:12px; 
	align-items:center; 
	margin-bottom:20px;
	justify-content: space-around;
}

.calendar-controls > button{
	background:transparent; 
	border:1px solid rgba(255,255,255,.15); 
	padding:6px 10px; 
	border-radius:6px; 
	cursor:pointer;
}

.calendar-label{
	font-weight:700;
	font-size:1.25rem;
	text-transform:capitalize;
}

.calendar-month{
	padding:12px;
	width:100%;
	max-width:600px;
	text-transform:capitalize;
}

.calendar-month-name{
	text-align:center;
	margin-bottom:8px;
	font-size:1.1rem;
	font-weight:600;
}

.calendar-weekdays, 
.calendar-weekdays, 
.calendar-days{
	display:grid;
	grid-template-columns:repeat(7,1fr);
	font-size:.85rem;
	text-align:center;
	gap:10px;
}

.calendar-day {
	position: relative;
	background:#ccc;  
	min-height: 50px;
	padding: 6px;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;	
}

.calendar-day-number {
  font-size: 0.9rem;
  font-weight: 600;
}

.calendar-badge {
	position: absolute;
	top: 1px;
	right: 1px;
	z-index: 1;
	background: var(--bg-website);
	color: black;
	font-size: 0.65rem;
	font-weight: 600;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;	
	-webkit-border-top-right-radius: 2px;
	-moz-border-radius-topright: 2px;
	border-top-right-radius: 2px;
	-webkit-border-top-left-radius: 0;
	-moz-border-radius-topleft: 0;
	border-top-left-radius: 0;
	-webkit-border-bottom-right-radius: 0;
	-moz-border-radius-bottomright: 0;
	border-bottom-right-radius: 0;
	-webkit-border-bottom-left-radius: 5px;
	-moz-border-radius-bottomleft: 5px;
	border-bottom-left-radius: 5px;
}

.calendar-weekdays div{
	color:var(--calendar-muted);
	padding:4px 0;
	font-weight:600;
}

.calendar-days div{
	padding:6px 0;
	border-radius:6px;
}

.calendar-today{
	background:rgba(6,182,212,.25);
}

.loader {
    border: 8px solid var(--bg-website);
    border-top: 8px solid #ccc;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#map{
	display: block;
	width: 100%;
	height: 350px;
	margin: 0 auto;
	-moz-box-shadow: 0px 5px 20px #ccc;
	-webkit-box-shadow: 0px 5px 20px #ccc;
	box-shadow: 0px 5px 20px #ccc;
}

#mapinfo{
	font-size:10px;
	text-align:center;
	padding:5px;
	color:#999;
}

.cookies_aviso_title {
	background: var(--bg-website);
	color:black;
	text-align:center;
	border-radius: 5px;
	margin-top:20px;
	margin-bottom:20px;
}

.cookies_aviso_title h1 {
	font-size:1.5rem;
}

.cookies_aviso{
	background: white;
	border-radius: 10px;
	padding: 1rem;
	box-shadow: 0px 0px 0px 0px #333;
	border: 1px solid #9997971f;
	margin-bottom:20px;
}

.cookies_aviso p {
	margin-bottom:10px;
}

  .cookie-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #eaf7e6;
    font-family: Arial, sans-serif;
  }

  .cookie-card h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
  }

  .cookie-detail {
    margin: 5px 0;
    font-size: 14px;
  }

  .cookie-label {
    font-weight: bold;
    display: inline-block;
    width: 90px;
  }

  .cookie-section-title {
    font-weight: bold;
    background-color: #fcf3de;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
  }

@media only screen and (min-width: 600px)  and (max-width: 1080px) {
	.events {
		grid-template-columns: repeat(2, 1fr);
	}
	.filters {
		grid-template-columns: repeat(2, 1fr);
	}
	.filters > .col.advertising {
		grid-column: span 2;
	}
	.section__advertising_mobile{
		display: grid;
		grid-template-columns: repeat(2, 1fr);		
	}
}

@media only screen and (max-width: 600px) {  
	.header img.maxlogo {
		height:30px;
	}
	.filters,
	.events {
		grid-template-columns: 1fr;
	}	
	.eventdetail {
		grid-template-columns: 1fr;
	}
	.content-we {
		padding: 3.5rem !important;
	}
}

@media (max-width: 480px) {
	.calendar-days{
		gap:5px;
	}	
	.calendar-days div{
		padding:5px 0;
	}
	.calendar-day {
		min-height: 30px;
		padding: 4px;
	}
	.calendar-badge {
		width: 14px;
		height: 14px;
		font-size: 0.55rem;
		line-height: 14px;
		top: 2px;
		right: 2px;
	}
}

@media only screen and (min-width: 300px) {
	.weather__block {
		width: 45%;
		margin: 1%;	
	} 
}