/* renovo.pt — custom styling on top of Joomla 5's Cassiopeia template, reproducing the look of
   the previous Helix3 "Flex" site: dark centred header, banner + title band, light headings with
   a thin underline, wood-background social section, dark agenda/contact block.
   Cassiopeia loads this file automatically when it exists. */
@import url('https://fonts.googleapis.com/css2?family=Aguafina+Script&family=Archivo+Narrow:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --rv-green: #00b750;
  --rv-dark: #303030;
  --rv-darker: #262626;
  --rv-agenda: #3d3d3d;
  --rv-grey: #f4f4fa;
  --rv-text: #333;
  --rv-muted: #9a9a9a;
  --cassiopeia-color-primary: var(--rv-green);
  --cassiopeia-color-link: var(--rv-dark);
  --cassiopeia-color-hover: var(--rv-green);
  --link-color: #1a1a1a;
  --link-hover-color: var(--rv-green);
  --font-family-body: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-family-headings: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --rv-narrow: 'Archivo Narrow', 'Roboto Condensed', 'Arial Narrow', sans-serif;
}

body.site { color: var(--rv-text); overflow-x: hidden; font-size: 14px; line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-family-headings); font-weight: 400; }

/* ---------- Header: dark bar, centred menu, no logo ---------- */
.container-header { background: var(--rv-dark); background-image: none; box-shadow: none; padding: 0; }
.container-header .grid-child { display: block; }
.container-header .navbar-brand { display: none; }
.container-header .container-nav { justify-content: center; }
.container-header .mod-menu { justify-content: center; }
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .mod-menu .mod-menu__heading {
  color: #ededed;
  font-family: var(--rv-narrow);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 15px;
  padding: 1.25rem 1.1rem;
}
.container-header .mod-menu > li > a:hover, .container-header .mod-menu > li.active > a { color: #fff; }
.container-header .mod-menu .mod-menu__dropdown { background: var(--rv-darker); border-radius: 0; border: 0; }
.container-header .mod-menu .mod-menu__dropdown a { color: #ededed; font-family: var(--rv-narrow); text-transform: uppercase; letter-spacing: .08em; }
.container-header .mod-menu .mod-menu__dropdown a:hover { background: #3a3a3a; color: #fff; }
.container-header .navbar-toggler { color: #fff; border-color: transparent; margin: .5rem auto; }
.container-header .mod-menu .parent > a::after, .container-header .mod-menu .parent > span::after { color: #ededed; }

/* Full-bleed helper: escape Cassiopeia's centred content column */
.rv-full, .rv-hero, .rv-section, .rv-band, .rv-strip { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.rv-section__inner, .rv-hero__inner { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.container-component { padding-block: 0 !important; }
.site-grid .container-component .com-content-article { padding: 0; }

/* ---------- Banner + title band ---------- */
.rv-banner { height: 440px; background-size: cover; background-position: center; background-color: var(--rv-dark); }
.rv-band { background: #fff; text-align: center; padding: 22px 15px 10px; box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .25); }
.rv-band h1, .com-contact > h1 {
  font-family: var(--rv-narrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: #fff;
  text-shadow: 3px 3px 4px rgba(0, 0, 0, .75);
  margin: 0;
  line-height: 1.1;
}

/* ---------- Home hero ---------- */
.rv-hero {
  position: relative; min-height: calc(100vh - 66px); display: grid; place-items: center; text-align: center;
  color: #fff; background-size: cover; background-position: center; background-color: var(--rv-dark);
}
.rv-hero__inner { position: relative; padding: 3rem 15px; }
.rv-hero h1 { margin: 0; color: #fff; }
.rv-hero__script {
  display: block; font-family: 'Aguafina Script', cursive; font-size: clamp(3.2rem, 8vw, 5.5rem); line-height: 1.1;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, .8); border-bottom: 1px solid rgba(255, 255, 255, .85); padding-bottom: .35rem;
  margin: 0 auto .9rem; width: max-content; max-width: 100%;
}
.rv-hero__brand { display: block; font-family: var(--rv-narrow); letter-spacing: .45em; font-size: clamp(1.8rem, 4vw, 2.7rem); text-shadow: 2px 2px 5px rgba(0, 0, 0, .8); }
.rv-hero__actions { margin: 2.25rem 0 1.25rem; }
.rv-hero__social a { color: #fff; font-size: 1.9rem; margin: 0 .5rem; opacity: .85; }
.rv-hero__social a:hover { color: var(--rv-green); opacity: 1; }
.rv-btn {
  display: inline-block; padding: .9rem 2rem; border: 2px solid #fff; border-radius: 4px; color: #fff;
  background: rgba(36, 36, 36, .57); font-family: var(--rv-narrow); text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
  text-decoration: none; transition: background .2s;
}
.rv-btn:hover { background: rgba(36, 36, 36, .85); color: #fff; text-decoration: none; }
.rv-btn--dark { background: var(--rv-dark); border-color: var(--rv-dark); }

/* ---------- Sections ---------- */
.rv-section { padding: 60px 0; }
.rv-section--grey { background: var(--rv-grey); }
.rv-section--light { background: #f2f2f2; }
.rv-title {
  text-align: center; font-weight: 300; font-size: 44px; line-height: 1.15; margin: 0 0 40px; color: #222;
  position: relative; padding-bottom: 18px;
}
.rv-title::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 220px; margin-left: -110px; height: 1px; background: #bbb; }
.rv-title--left { text-align: left; }
.rv-title--left::after { left: 0; margin-left: 0; }
.rv-subtitle { text-transform: uppercase; font-weight: 500; font-size: 18px; letter-spacing: .02em; margin: 0 0 20px; padding-bottom: 8px; border-bottom: 1px solid #bbb; display: inline-block; }
.rv-center { text-align: center; }

/* ---------- Team ---------- */
.rv-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1140px; margin: 0 auto; }
.rv-person { margin: 0; text-align: center; }
.rv-person img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.rv-person strong { display: block; margin-top: 18px; font-weight: 700; font-size: 15px; }
.rv-person span { font-size: 12px; color: #666; }
.rv-person span::before { content: '/ '; }
.rv-person span::after { content: ' /'; }
.rv-person p { margin: .5rem auto 0; color: #555; max-width: 480px; }

/* ---------- Polaroid strip ---------- */
.rv-strip img { display: block; width: 100%; height: auto; }

/* ---------- "A pensar em ti": plain icon links, details open in place ---------- */
.rv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 30px; }
.rv-card { border: 0; background: none; }
.rv-card summary {
  cursor: pointer; list-style: none; padding: 10px 0; color: #aaa; font-size: 15px; display: flex; align-items: center; gap: .6rem;
  transition: color .2s;
}
.rv-card summary::-webkit-details-marker { display: none; }
.rv-card summary:hover, .rv-card[open] summary { color: var(--rv-green); }
.rv-card summary i { width: 1.2rem; text-align: center; font-size: 15px; }
.rv-card__body { padding: 8px 0 18px; color: #555; font-size: 14px; }
.rv-card__body img { max-width: 100%; height: auto; }
.rv-card__body h2, .rv-card__body h3 { font-size: 15px; font-weight: 700; margin: .4rem 0; text-transform: uppercase; }

/* ---------- Social: wood background with the big splash logos ---------- */
.rv-section--social {
  background: #222 url('/images/2020/01/08/fundo8_redes.jpg') center / cover no-repeat; color: #fff; padding: 60px 0 40px;
}
.rv-section--social .rv-title { color: #fff; }
.rv-section--social .rv-title::after { background: rgba(255, 255, 255, .8); }
.rv-social { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; max-width: 900px; margin: 0 auto; }
.rv-social a { display: block; transition: transform .2s; }
.rv-social a:hover { transform: scale(1.06); }
.rv-social img { width: 150px; height: auto; display: block; }

/* ---------- Map + accordion ---------- */
.rv-map { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.rv-map iframe { display: block; width: 100%; height: 400px; border: 0; }
.rv-accordion details { border-bottom: 1px solid #e5e5e5; }
.rv-accordion summary { cursor: pointer; list-style: none; padding: 12px 6px; font-size: 13px; display: flex; align-items: center; gap: .6rem; }
.rv-accordion summary::-webkit-details-marker { display: none; }
.rv-accordion summary i:first-child { color: #333; }
.rv-accordion summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; margin-left: auto; color: #666; }
.rv-accordion details[open] summary::after { content: '\f077'; }
.rv-accordion .rv-accordion__body { padding: 4px 6px 16px; font-size: 13px; color: #444; }
.rv-accordion .rv-accordion__body p { margin: 0; }

/* ---------- Agenda / "Aqui encontras" / Contact (dark block) ---------- */
.rv-section--dark { background: var(--rv-agenda) url('/images/svg/section-background-stripes2.svg'); color: #ddd; }
.rv-dark-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.rv-section--dark .rv-subtitle { color: #fff; border-color: #777; text-transform: none; font-size: 20px; font-weight: 500; }
.rv-agenda { list-style: none; padding: 0; margin: 0; }
.rv-agenda li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.rv-agenda li i { font-size: 20px; color: #ddd; margin-top: 2px; }
.rv-agenda li span { display: block; }
.rv-agenda li strong { display: block; font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #ccc; }
.rv-agenda li em { font-style: normal; font-weight: 700; font-size: 13px; color: #fff; }
.rv-find { text-align: center; padding-top: 10px; }
.rv-find i { font-size: 56px; color: #fff; }
.rv-find hr { border: 0; border-top: 1px solid #777; margin: 24px 0; }
.rv-find__label { font-style: italic; text-transform: uppercase; font-size: 24px; letter-spacing: .04em; color: #fff; margin: 0; }
.rv-words { position: relative; height: 56px; margin: 6px 0 0; padding: 0; list-style: none; }
.rv-words li {
  position: absolute; inset: 0; opacity: 0; font-size: 40px; font-weight: 700; color: #fff; line-height: 56px;
  animation: rv-cycle 18s linear infinite;
}
.rv-words li:nth-child(1) { animation-delay: 0s; }
.rv-words li:nth-child(2) { animation-delay: 3s; }
.rv-words li:nth-child(3) { animation-delay: 6s; }
.rv-words li:nth-child(4) { animation-delay: 9s; }
.rv-words li:nth-child(5) { animation-delay: 12s; }
.rv-words li:nth-child(6) { animation-delay: 15s; }
@keyframes rv-cycle {
  0% { opacity: 0; transform: translateY(8px); }
  3% { opacity: 1; transform: none; }
  15% { opacity: 1; }
  18% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; }
}
.rv-contact-cta p { margin: 0 0 14px; color: #ccc; }
.rv-contact-cta a.rv-btn { border-color: #888; background: rgba(0, 0, 0, .3); font-weight: 400; padding: .7rem 1.4rem; }
.rv-contact-cta a.rv-btn:hover { background: var(--rv-green); border-color: var(--rv-green); }

/* ---------- Multimédia ---------- */
.rv-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.rv-video { margin: 0; }
.rv-video figcaption { order: -1; font-size: 18px; font-weight: 500; padding-bottom: 8px; margin-bottom: 20px; border-bottom: 1px solid #bbb; display: inline-block; }
.rv-video { display: flex; flex-direction: column; align-items: flex-start; }
.rv-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.rv-quotes { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.rv-quotes__names { text-align: center; font-size: 22px; font-weight: 700; color: #333; }
.rv-quotes__names span { display: block; color: var(--rv-green); }
.rv-quote { margin: 0 0 22px; border: 0; padding: 0; }
.rv-quote p { margin: 0 0 6px; font-size: 13px; }
.rv-quote cite { font-style: normal; font-weight: 700; font-size: 13px; color: #222; }

/* ---------- Donativos ---------- */
.rv-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.rv-prose { text-align: justify; font-size: 14px; }
.rv-prose p { margin: 0 0 16px; }
.rv-bank { text-align: right; font-weight: 700; text-transform: uppercase; font-size: 13px; line-height: 1.7; }
.rv-bank img { max-width: 100%; height: auto; display: block; margin: 0 0 20px auto; }
.rv-bank p { margin: 0; }

/* ---------- Contact page (core com_contact, restyled) ---------- */
.com-contact { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; align-items: start; }
.com-contact::before {
  content: ''; grid-column: 1 / -1; display: block; height: 440px; margin-left: calc(50% - 50vw); width: 100vw;
  background: url('/images/2019/12/11/banner_contatos.jpg') center / cover no-repeat;
}
.com-contact > h1 { grid-column: 1 / -1; text-align: center; padding: 22px 15px 30px; }
.com-contact .page-header { grid-column: 1 / -1; padding: 0 15px; }
.com-contact .page-header h2 { text-transform: uppercase; font-size: 18px; font-weight: 500; padding-bottom: 8px; border-bottom: 1px solid #bbb; display: inline-block; margin: 0 0 30px; }
.com-contact__container { grid-column: 1; padding: 0 15px 40px; }
.com-contact__container > h3, .com-contact > h3 { display: none; }
.com-contact__address { display: grid; grid-template-columns: 44px 1fr; gap: 10px 14px; font-size: 13px; margin: 0; }
.com-contact__address dt { width: 44px; height: 44px; border: 1px solid #222; display: grid; place-items: center; font-size: 18px; grid-row: span 1; }
.com-contact__address dd { margin: 0; align-self: center; }
.com-contact__address dd + dd { grid-column: 2; }
.com-contact__miscinfo { margin-top: 24px; font-size: 13px; padding-top: 16px; border-top: 1px solid #ddd; }
.com-contact__miscinfo h3 { display: none; }
.com-contact__form { grid-column: 2; padding: 0 15px 40px; }
.com-contact__form .well { background: none; border: 0; padding: 0; box-shadow: none; }
.com-contact__form .control-label label { font-size: 12px; margin-bottom: 2px; }
.com-contact__form input, .com-contact__form textarea { border: 1px solid #494949; border-radius: 0; font-size: 13px; }
.com-contact__form .btn-primary { background: #f5f5f5; color: #222; border: 1px solid #ccc; border-radius: 0; font-size: 13px; padding: .5rem 1rem; }
.com-contact__form .btn-primary:hover { background: var(--rv-dark); color: #fff; border-color: var(--rv-dark); }

/* ---------- Privacy article ---------- */
.rv-prose h1 { font-size: 32px; font-weight: 300; margin-bottom: 24px; }

/* ---------- Footer: slim bar ---------- */
.container-footer { background: var(--rv-darker); color: #999; padding: 0; display: block; }
.container-footer .grid-child { display: block; width: 100%; max-width: 1140px; margin: 0 auto; padding: 18px 15px; }
.container-footer .mod-custom { width: 100%; }
.rv-copyright { margin: 0; text-align: center; font-size: 12px; }
.rv-copyright a { color: #ccc; }
.rv-copyright a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .rv-map, .rv-columns, .rv-quotes, .rv-dark-grid, .com-contact { grid-template-columns: 1fr; }
  .com-contact__container, .com-contact__form { grid-column: 1; }
  .rv-banner, .com-contact::before { height: 260px; }
  .rv-title { font-size: 34px; }
  .rv-section { padding: 40px 0; }
  .rv-bank { text-align: left; }
  .rv-bank img { margin-left: 0; }
}

/* Contact page: opening hours sit under the address, form spans both rows */
.com-contact__form { grid-row: 4 / span 2; }
.com-contact__miscinfo { grid-column: 1; grid-row: 5; margin: 0 15px 40px; padding-top: 16px; }
.com-contact__form legend { font-size: 18px; font-weight: 500; }
