.container-event-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* CTA primário "Sign Up" (pill terracota preenchida). */
.evt-signup {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    background: #C44F26;
    color: #fff;
    font-size: 12px;
    /* font-weight: 600; */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease;
}
.evt-signup:hover { background: #a83f1d; color: #fff; }
.evt-signup.is-disabled {
    background: transparent;
    color: #9a9389;
    border: 1px solid #d8d8d8;
    cursor: default;
    pointer-events: none;
}

/* "Add to calendar" — controlo único agrupado (texto .ics + ícone Google). */
.evt-cal {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    overflow: hidden;
}
.evt-cal__opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2b2722;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}
.evt-cal__opt + .evt-cal__opt { border-left: 1px solid #e4ded6; }
.evt-cal__opt:hover { background-color: #F4EFEA; color: #C44F26; }
.evt-cal__icon {
    width: 46px;
    padding: 0;
    background-image: url(/wp-content/uploads/2026/04/calendar_plus_icon_v7-1.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}
/* Aviso de evento exclusivo a membros (PRD §9.2.4). */
.event-rsvp-members-note {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-left: 3px solid #b08d57;
    background: rgba(176, 141, 87, 0.08);
    font-size: 14px;
    line-height: 1.5;
    color: #4a4a4a;
}
.event-add-calendar.calendar-icon a {
    width: 40px;
    height: 40px;
    background-image: url(/wp-content/uploads/2026/04/calendar_plus_icon_v7-1.svg);
    display: block;
    background-position: center;
    background-size: 30px 30px;
    background-repeat: no-repeat;
    border: 0;
    padding: 0;
}
li.calendar-day.hasEvents.past-day .event-block.past-event {
    background: #ccc !important;
    text-decoration: line-through;
    opacity: 0.5;
}

.event-date-item.past-event .event-date.past,
.avila-event-item.past-event .event-date {
    color: #222;
}

.avila-event-item.past-event .event-location {
    color: #222;
}

.event-date-item.past-event,
.avila-event-item.past-event {
    opacity: 0.6;
}

h3.section-title.past-title {
    margin-top: 30px;
    font-size: 35px;
}

.avila-event-page {
    box-sizing: border-box;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 50px;
    font-family: "futura-pt", Sans-serif;
}
.avila-event-page * { box-sizing: border-box; }

.event-breadcrumb a{
    color: #111;
    font-size: 18px;
    font-style: normal;
    font-weight: 450;
    line-height: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.3;
}

.event-breadcrumb{
    color: #C44F26;
    font-size: 18px;
    font-style: normal;
    font-weight: 450;
    line-height: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-title {
    color: #111;
    font-size: 52px;
    font-style: normal;
    font-weight: 450;
    line-height: 60px;
    text-transform: uppercase;
}

.event-description {
    color: #111;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px;
}

.event-layout {
    display: flex;
    gap: 100px;
    margin-bottom: 50px;
}

.event-dates {
    flex: 2;
}

.event-date-item {
    display: flex;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid #E4DED6;
    padding: 26px 0;
}

.event-date {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    line-height: 1;
}
.event-date__day {
    color: #C44F26;
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
}
.event-date__mon {
    margin-top: 6px;
    color: #8a8378;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
}
.event-date-item.past-event .event-date__day,
.event-date-item.past-event .event-date__mon { color: #b6afa4; }

.event-info {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.event-time {
    font-size: 17px;
    font-weight: 500;
    color: #1c1a17;
    line-height: 1.4;
}
.event-time.past { color: #8a8378; }

.event-name {
    color: #111;
    font-size: 20px;
    font-style: normal;
    font-weight: 450;
    line-height: 25px; 
}

.event-location {
    font-size: 18px;
    color: #111;
    display: flex;
    align-items: center;
    font-weight: 300;
    line-height: 24px;
    margin-top: 5px;
}

.event-add-calendar:hover a{
    background-color: #C44F26;
}

.event-add-calendar:hover a{
    color:#F4EFEA;
}

.event-add-calendar.calendar-icon:hover a {
    background-color: transparent;
    background-image: url(/wp-content/uploads/2026/04/calendar_plus_icon_v7-1.svg);
}

.event-add-calendar a {
	color: #111;
	text-align: center;
	font-size: 12px;
	font-style: normal;
	font-weight: 450;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0px 30px;
	border-radius: 20px;
	border: 1px solid rgba(223, 128, 95, 0.35);
	display: block;
	line-height: 38px;
}

.event-image img {
	width: 100%;
	max-width: 550px;
	border-radius: 8px;
	height: auto;
}

.event-location::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    background: url('/wp-content/plugins/avila-events/assets/img/pin.svg') no-repeat center center;
    background-size: contain;
}

.registration-forms{
    padding: 100px 0px;
    display:grid;
    place-items:center;
}

.event-registration{
    position:relative;
    width: 100%;
    max-width: 550px;
}

.hide-field {
    display: none !important;
}

 h2.gform_title_page_event{
    text-align: center;
    color: #C44F26 !important;
    font-size: 45px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 50px !important;
    text-transform: capitalize !important;
}

/* Form */

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .textarea::placeholder,
.registration-form .gfield input::placeholder{
	opacity: 0.6
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .gform_fields {
    row-gap: 16px;
}

.registration-form .gfield input, 
.registration-form .gfield select {
    border-radius: 50px !important;
    color: #111 !important;
    font-family: "futura-pt" !important;
    font-size: 18px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    padding: 12px 16px !important;
    min-height: 48px !important;
    border: 0 !important;
    border: 1px solid var(--Salmon---light, #DF805F) !important;
    border-width: 1px !important;
    box-shadow: none !important;
    background-color: transparent !important;
    transition: 0.5s ease-in-out border-width !important;
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form span.gfield_required.gfield_required_asterisk {
    display: none !important;
}


body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .textarea:focus,
body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .textarea:not(:placeholder-shown),
.registration-form .gfield input[type="text"]:focus,
.registration-form .gfield input[type="email"]:focus,
.registration-form .gfield input[type="tel"]:focus,
.registration-form .gfield input[type="text"]:not(:placeholder-shown),
.registration-form .gfield input[type="email"]:not(:placeholder-shown),
.registration-form .gfield input[type="tel"]:not(:placeholder-shown){
    border: 2px solid var(--Salmon, #C44F26) !important;
	border-width: 2px !important;
	transition: 0.5s ease-in-out border-width !important;
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .gfield_radio {
    display: flex;
    flex-direction: row;
    gap: 50px;
}

body .gform-theme--framework.gform-theme.gform_wrapper .gchoice{
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-form legend.gfield_label.gform-field-label,
.registration-form label.gfield_label.gform-field-label {
    color: var(--Black, #111);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Futura-PT";
    font-size: 10px;
    font-style: normal;
    font-weight: 450;
    line-height: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 4px;
    margin-bottom: 8px;
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .textarea{
    border-radius: 20px;
     color: #111;
    font-family: futura-pt;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    padding: 12px 16px;
    border: 1px solid var(--Salmon---light, #DF805F);
    box-shadow: none;
    background: transparent;
    min-height: 120px;
	min-block-size: 120px;
	overflow-wrap: break-word !important;
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .gform_button.button {
    height: auto !important;
    max-height: 40px !important;
    color: #F9F7F5 !important;
    text-align: center !important;
    font-feature-settings: 'liga' off, 'clig' off !important;
    font-family: "futura-pt" !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 450 !important;
    line-height: 25px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    background: #C44F26 !important;
    border: 1px solid #C44F26 !important;
    padding: 7px 30px !important;
    border-radius: 50px !important;
    width: 170px !important;
    box-shadow: none !important;
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .gfield.gfield--type-consent{
	width: calc(100% - 180px);
    padding-top: 10px;
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form label.gform-field-label.gform-field-label--type-inline.gfield_consent_label, 
body .gform-theme--framework.gform-theme.gform_wrapper .registration-form label.gform-field-label.gform-field-label--type-inline.gfield_consent_label a {
    color: var(--Black, #111);
    font-family: "Futura-PT";
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px;
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form label.gform-field-label.gform-field-label--type-inline.gfield_consent_label a{
	color: var(--Salmon, #C44F26);
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .gfield .ginput_container.ginput_container_consent input:checked {
    background: #C44F26 !important;
    color: #F9F7F5 !important;
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .gfield .ginput_container.ginput_container_consent input::before {
    color: #F9F7F5 !important;
    font-size: 12px !important;
    font-weight: 300 !important;
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .gfield .ginput_container.ginput_container_consent input {
    border-radius: 50% !important;
    min-height: 24px !important;
    width: 24px !important;
    padding: 0 !important;
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .gfield-choice-input{
    border-radius: 50% !important;
    min-height: 24px !important;
    width: 24px !important;
    padding: 0 !important;
}

body .gform-theme--framework.gform-theme.gform_wrapper .registration-form .gform-footer.gform_footer.top_label {
    position: absolute;
    bottom: 0;
    right: 0;
}

.gform-theme--framework input[type=radio]:where(
  :not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)
)::before {
    font-family: var(--gf-icon-font-family) !important;
    content: var(--gf-icon-ctrl-checkbox) !important; /* força o checkmark igual ao do checkbox */
    color: #fff !important; /* cor do ícone */
    background-color: #C44F26 !important; /* fundo laranja */
    block-size: var(--gf-ctrl-checkbox-check-size, 12px) !important;
    inline-size: var(--gf-ctrl-checkbox-check-size, 12px) !important;
    border-radius: 50% !important; /* mantém o radio redondo */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width:22px !important;
    height:22px !important;
    font-size:12px !important;
}

.event-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    flex-wrap: wrap;
}

	.event-header {
		width: 50%;
	}

	.event-image {
		width: 50%;
	}

@media screen and (max-width: 1366px) and (min-width: 1025px){
	
	.event-layout {
		gap: 50px;
	}
	
	.avila-event-page {
    	padding: 100px 40px;
	}
	
}


@media screen and (max-width: 1024px) and (min-width: 768px){
	
	.event-header,.event-image {
		width: 100%;
	}
	
	
	.event-container {
		gap: 14px 24px;
	}
	
	.avila-event-page {
		padding: 60px 30px;
	}

	.event-layout {
		flex-direction: column;
	}

	.event-image {
		display: flex;
		justify-content: center;
	}

	.event-date {
		min-width: 52px !important;
	}

	.event-date__day { font-size: 34px; }

	.event-date-item {
		gap: 30px;
		align-items: start;
	}
	
}

@media screen and (max-width: 767px){
	
		
	.event-header,.event-image {
		width: 100%;
	}
	
	.event-container {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 14px;
		min-width: 0;
	}

	.event-info {
		flex: 0 0 auto;
	}

	.container-event-btn {
		align-items: flex-start;
		gap: 10px;
	}
	
	.avila-event-page {
		padding: 60px 20px;
	}

	.event-layout {
		flex-direction: column;
	}

	.event-image {
		display: flex;
		justify-content: center;
	}

	.event-date {
		min-width: 48px !important;
	}

	.event-date__day { font-size: 32px; }

	.event-date-item {
		gap: 30px;
		align-items: start;
	}
	
	.event-image img {
		width: 100%;
	}
}

.event-section.past-events-section.section-title {
    cursor: pointer;
    user-select: none;
    display: inline-block;
    position: relative;
}

.event-section.past-events-section .section-title:hover .toggle-icon {
    color: #0073aa;
}

.event-section.past-events-section .section-title:hover .toggle-text {
    color: #0073aa;
}

.event-section.past-events-section .toggle-text {
    font-size: 12px;
    font-weight: normal;
    margin-left: 5px;
    color: #666;
    transition: color 0.3s ease;
}

.event-section.past-events-section .event-dates.past-events {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
}

.event-section.past-events-section.collapsed .event-dates.past-events{
    max-height: 0;
    opacity: 0;
}

.event-section.past-events-section.expanded .event-dates.past-events{
    max-height: 100%;
    opacity: 1;
}

.event-section.past-events-section .expanded .event-date-item.past-event {
    animation: fadeInUp 0.3s ease forwards;
}

.event-section.past-events-section span.toggle-icon {
    background-image: url(/wp-content/uploads/2025/09/Arrow.svg);
    width: 25px;
    height: 25px;
    margin: 0;
    transform: rotate(90deg);
    position: relative;
    background-repeat: no-repeat;
    background-size: contain;
}

.event-section.past-events-section .section-title {
        display: flex;
    gap: 50px;
    align-items: center;
    font-size: 40px;
    margin-bottom: 30px;
    margin-top: 40px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
}

@keyframes fadeInUp {
    from {
        transform: translateY(-10px);
    }
    to {
        transform: translateY(0);
    }
}

.event-section.past-events-section .toggle-icon {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
     transition: transform 0.3s ease;
    color: #666;
}

.rotate span.toggle-icon {
    transform: rotate(270deg) !important;
}

/* Mobile: impedir overflow horizontal — restringe toda a cadeia de contentores ao
   ecrã (a imagem e os botões a 100% ultrapassavam por um elo mais largo que o pai). */
@media screen and (max-width: 767px){
	html, body { overflow-x: hidden; }
	.avila-event-page,
	.event-layout,
	.event-header,
	.event-image,
	.event-sections,
	.event-section,
	.event-dates,
	.event-date-item,
	.event-container,
	.event-info,
	.container-event-btn,
	.evt-signup,
	.evt-cal { max-width: 100%; min-width: 0; }
	.event-image img { max-width: 100%; }
}
