/*
Theme Name: Progetto Resta Theme
Theme URI: progettoresta.it
Author: Mutart
Author URI: https://wordpress.org/
Description: Tema per progetto RESTA
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
Version: 1
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: resta
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

:root {
  --primary: #E75B89;
  --secondary: #F1B54D;
  --text-color: #111;
  --bg-color: #f5f5f5;
  --tertiary: #3CB2B8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  color: #111;
  background: var(--ivory);
  line-height: 1.6;
  scroll-behavior: smooth;
  font-weight: 300;
}

h1,
h2,
h3,
h4 {
  font-family: "Inter", serif;
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.1;
}

b,
strong {
  font-weight: 800;
}

p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.35;
  font-weight: 400;
}

a {
  transition: color 0.3s ease;
  color: var(--primary);
}

a:hover {
  color: var(--primary-color);
}

img:not(.logo img) {
  margin-bottom: 20px;
  max-width: 100%;

  width: 100%;
  border-radius: 10px;
}



li {
  font-size: 18px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

h2 {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 20px;
}

h6 {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Width utility classes */
.w-5 {
  width: 5%;
}
.w-10 {
  width: 10%;
}
.w-15 {
  width: 15%;
}
.w-20 {
  width: 20%;
}
.w-25 {
  width: 25%;
}
.w-30 {
  width: 30%;
}
.w-33 {
  width: 33.3333%;
}
.w-35 {
  width: 35%;
}
.w-40 {
  width: 40%;
}
.w-45 {
  width: 45%;
}
.w-50 {
  width: 50%;
}
.w-55 {
  width: 55%;
}
.w-60 {
  width: 60%;
}
.w-66 {
  width: 66.6667%;
}
.w-65 {
  width: 65%;
}
.w-70 {
  width: 70%;
}
.w-75 {
  width: 75%;
}
.w-80 {
  width: 80%;
}
.w-85 {
  width: 85%;
}
.w-90 {
  width: 90%;
}
.w-95 {
  width: 95%;
}
.w-100 {
  width: 100%;
}

@media (max-width: 768px) {
  .w-5,
  .w-10,
  .w-15,
  .w-20,
  .w-25,
  .w-30,
  .w-33,
  .w-35,
  .w-40,
  .w-45,
  .w-50,
  .w-55,
  .w-60,
  .w-65,
  .w-66,
  .w-70,
  .w-75,
  .w-80,
  .w-85,
  .w-90,
  .w-95,
  .w-100 {
    width: 100%;
    padding: 0 15px !important;
  }
}

.grid {
  display: grid;
  gap: 20px;
}

.gap-50 {
  gap: 50px;
}

.gap-100 {
  gap: 100px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .flex {
    flex-direction: column;
  }

  .flex-reverse {
    flex-direction: column-reverse;
  }

  .gap-100 {
    gap: 50px;
  }

  .gap-50 {
    gap: 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(1, 1fr);
  }
}

.items-center {
  justify-content: center;
  align-items: center;
}

.fa {
  color: var(--primary);
}

/* Header */

.header-mobile {
  display: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--tertiary);
  padding: 15px 20px;
  position: relative;
  z-index: 1000;
}

.header-desk {
  display: flex;
}

header ul:not(.socials) {
  display: flex;
  gap: 50px;
  list-style: none;
  align-items: center;
}

.nav {
	  display: flex;
  gap: 80px;
  list-style: none;
  align-items: center;
	justify-content: center;
}
.socials {
	  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

@media(max-width:768px){
	.nav {
		flex-direction: column;
    height: 100dvh;
	}
}

header a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative; /* serve per il pseudo-elemento */
}

header a:hover,
.current_page_item a {
  color: var(--secondary) !important;
}

header a:before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

header .logo a:before,
header .btn.btn-primary:before {
  content: none; /* o display:none; */
}

header a:hover:before {
  width: 100%;
}

.logo img {
  margin-bottom: -10px !important;
  max-width: 130px;
  width: 300px;
}

.cta-btn {
  padding: 4px 18px;
  border: 1px solid var(--primary);
  border-radius: 50px;
}

header .current-menu-item {
  font-weight: 800;
  position: relative;
  color: var(--secondary);
}

.sub-menu .current-menu-item:after {
  content: none;
}

.cta-btn:hover {
  border: 1px solid var(--secondary);
}

/* Contenitore del sub-menu */
.menu .sub-menu {
  display: none;
  position: absolute;
  background-color: var(--primary);
  /* border: 1px solid #f5f5f533; */
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 200px;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Mostra il sub-menu quando si passa sopra il genitore */
.menu li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* Voci del sub-menu */
.menu .sub-menu li {
  position: relative;
}

.menu .sub-menu li a {
  display: block;
  padding: 10px 15px;
  color: var(--primary);
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: 500;
  background: var(--primary);
  color: white;
  border-bottom: 1px solid #f5f5f533;
}

.menu .sub-menu li a:hover {
  background-color: var(--secondary);
  color: #fff;
}

.menu-item-has-children > a::after {
  content: "▼";
  font-size: 0.6em;
  margin-left: 5px;
  vertical-align: middle;
}

.scrolled {
  position: fixed;
  top: 0;
  background: white;
  width: 100%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
	padding:0;
}

.scrolled a {
  color: var(--tertiary);
}

@media (max-width: 768px) {
  .header-mobile {
    display: flex;
    background: var(--tertiary);
    padding: 20px;
    text-align: center;
    flex-direction: row !important;
    justify-content: space-between !important;
  }

  .menu .sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--primary);
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
    background: none;
    border-bottom: none;
  }

  /* Nasconde i sub-menu per mobile */
  .menu .sub-menu {
    position: static !important;
    display: none;
    background-color: transparent;
    box-shadow: none;
    padding-left: 15px;
    border: none;
    margin-top: 10px;
  }

  .menu .sub-menu.open {
    display: block !important;
  }

  .menu .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu .menu-item-has-children > a i.fa-arrow-down {
    margin-left: 10px;
    transition: transform 0.3s ease;
  }

  .menu .menu-item-has-children.open > a i.fa-arrow-down {
    transform: rotate(180deg);
  }
  /* Mostra il sub-menu quando il genitore ha la classe open */
  .header-mobile .menu-item-has-children.open .sub-menu {
    display: block;
  }

  /* Opzionale: animazione */
  .header-mobile .sub-menu {
    display: none;
    transition: all 0.3s ease;
  }

  .header-mobile .sub-menu.open {
    display: block;
  }
  .header-mobile .menu-item-has-children.open > a .arrow-toggle {
    transform: rotate(180deg);
  }

  .current-menu-item {
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .outside-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--secondary-color);
    z-index: 999 !important;
    transform: translateX(-200%);
    transition: all 0.3s ease-in-out;
  }

  .outside-menu.open {
    transform: translateX(0%);
    background: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
  }

  .menu-item-has-children {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .outside-menu #menu-main-1 {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    align-items: center;
    justify-content: center;
   
  }

  .outside-menu ul a {
    font-size: 18px;
  }

  .sub-menu {
    display: none !important;
  }

  .sub-menu.open {
    display: block !important;
  }

  .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .menu-icon.open .line:nth-child(1) {
    transform: rotate(45deg) translate(0px, 8px);
  }

  .menu-icon.open .line:nth-child(2) {
    opacity: 0;
  }

  .menu-icon.open .line:nth-child(3) {
    transform: rotate(-45deg);
    translate: -7px -6px;
  }

  .menu-icon .line {
    background: var(--primary);
    width: 30px;
    height: 3px;
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 99999999;
  }

  .header-desk {
    display: none !important;
  }
}

/* Header */

.hero-section {
  background-size: cover;
  background-position: bottom;
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section:before {
  position: absolute;
  background: var(--primary);
  opacity: 0.85;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  content: "";
}

.hero-section:after {
  position: absolute;
  background: #000;
  opacity: 0.25;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  content: "";
}

.hero-section .text-block {
  color: white;
  text-align: center;
  max-width: 740px;
  position: relative;
  z-index: 100;
}

.text-block h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  color: white;
  z-index: 1000;
  display: inline-block;
  padding: 5px 10px;
}

.text-block .subtitle {
  font-size: 18px;
  line-height: 1.4;
  color: white;
  z-index: 1000;
  position: relative;
  display: inline-block;
  padding: 5px 10px;
  margin-top: 10px;
}

.intro-section {
  background: white;
  position: relative;
  z-index: 10;
}

.intro-section.progetto {
  padding: 0 20px;
  margin-top: -100px;
}

svg {
  position: relative;
  z-index: -1;
}

@media (max-width: 768px) {
  .intro-section.progetto {
    padding: 0px;
    margin-top: 0px;
  }
}

.brush {
  position: absolute;
  position: absolute;
  z-index: 99;
  width: 100%;
  height: 100%;
  top: 0px;
}

.brush svg {
  fill: var(--secondary);
}

.brush_under {
  position: absolute;
  z-index: 10;
  width: 40%;
  height: 40%;
  top: -240px;
  right: -100px;
  transform: rotate(173deg);
}

.intro-section .lead {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-secondary {
  background: var(--secondary);
  color: #111;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.attivita ul {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 50px;

  & li {
    text-align: left;
  }
}

.attivita p,
.attivita h2,
.animazione p {
  text-align: left;
}

.attivita h2 {
  color: white;
}

.animazione h2 {
  color: black;
  text-align: left;
}

.footer-content {
  text-align: center;
  padding: 20px;
}

.footer-content p {
  font-size: 14px;
}

.onda-3 {
  background-color: var(--secondary);
  margin-top: -80px;
}
.onda-2 {
  background-color: var(--primary);
  margin-top: -140px;
}
.onda-1 {
  margin-top: -100px;
}

.attivita {
}

@media (max-width: 768px) {
  .intro-section {
    padding: 80px 20px 40px 20px;
  }

  .hero-section {
    min-height: 70vh;
  }

  .attivita ul {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 20px;

    & li {
      text-align: left;
    }
  }

  .onda-1,
  .onda-2,
  .onda-3 {
    margin-top: -5px !important;
  }
}

.page h1, .single h1, .blog h1 {
  color: white;
}

/* news page */

.post-content h2 {
  font-size:20px;
  margin: 10px 0 5px 0;
}

.post-content a {
  text-decoration: none;
}

.post-content .post-meta {
  margin-bottom:10px;
}

.post-content .fa-arrow-right:before {
  color:white;
}

/* CONTATTI */

.page-contatti .container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.description,
.form-contatti {
  flex: 1 1 45%;
}

.recapiti a {
  display: block;
  margin-bottom: 10px;

  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.recapiti a:hover {
  color: var(--primary);
}

.form-contatti {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-contatti input,
.form-contatti textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
}

.form-contatti button,
.form-contatti input[type="submit"] {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.main-bg-page {
  background: var(--primary);
  padding: 50px 0 50px 0;
  margin-bottom: 50px;
}

.form-contatti button:hover {
  background: var(--secondary);
}

.contact-page-wrapper h1 {
  font-size: clamp(38px, 5vw, 62px);
  color: white;
}

.contact-page-wrapper svg {
  margin-top: -120px;
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .page-contatti .container {
    flex-direction: column;
  }

  .contact-page-wrapper svg {
    margin-top: -20px;
    margin-bottom: 40px;
  }

  .brush_under {
	  display: none;
    position: absolute;
    z-index: 10;
    width: 70%;
    height: 44%;
    top: -304px;
    right: -20px;
    transform: rotate(173deg);
  }

  .description,
  .form-contatti {
    flex: 1 1 100%;
    padding: 0;
  }
}

.wpforms-submit {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  padding: 12px 30px !important;
  border-radius: 50px !important;
  cursor: pointer !important;
}

.map {
  margin-top: 30px;
	position:relative;
}

section.map:after {
    content: 'ciao';
    color: white;
    background: white;
    width: 100%;
    position: absolute;
    left: 0;
    top: -9px;
    height: 70px;
}

footer span {
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
}

.small {
  font-size: 13px !important;
  text-align: left;
}

.loghi {
  max-width: 800px;
  margin: 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0 auto 30px auto;
}

.footer-logo {
  max-width: 200px !important;
  text-align: center;
  margin: 30px auto 0 auto;
  display: flex;
  justify-content: center;
}

footer span {
  text-align: center;
}

.copyright {
  margin: 30px auto 0 auto;
  justify-content: space-between;
}

.copyright p {
  margin: 0;
  font-size: 13px;
  text-align: left;
}

.loghi img {
  width: 100%;
  height: 80px;
  padding: 5px;
  object-fit: contain;
  aspect-ratio: 3/1;
}
.loghi img:nth-child(1) {
  height: 60px;
}
.loghi img:nth-child(4) {
  height: 70px;
}
@media (max-width: 991px) {
  .loghi {
    justify-content: space-between;
    gap: 5px;
  }
	
	.copyright {
		    align-items: flex-start;
	}

  .loghi {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .loghi img:nth-child(1) {
    height: initial;
  }
  .loghi img:nth-child(4) {
    height: initial;
  }

  .loghi img {
    width: 100% !important;
  }
}

/* SINGLE EVENTO */

.single-event-intro {
  margin-bottom: 50px;
}

.page-id-202 #simple-page h1 {
	color:white;
	text-align: center;
}

#event-page h1,
#simple-page h1, h1 {
  font-size: clamp(38px, 5vw, 48px);
  margin-bottom: 40px;
	margin:0;
}

.event-info {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  background: var(--secondary);
  padding: 20px;
  border-radius: 12px;
}

.btn {
  color: white;
  background: var(--primary);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--secondary);
}

/* Sezione del contenuto */
.page-content {
  padding: 40px 0;
  background: #fff;
}

/* Contenitore principale */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.gap-50 {
  gap: 50px;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Responsività per schermi più piccoli */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr; /* Una colonna per i dispositivi più piccoli */
  }

  .container {
    padding: 0 20px;
  }

  .flex {
    flex-direction: column;
  }
}

/* Articolo evento */
.event-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-item a {
  text-decoration: none;
  color: inherit;
}

.event-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Immagine dell'articolo */
.post-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-item:hover .post-thumbnail img {
  transform: scale(1.05);
}

/* Testo evento */
.event-text {
  padding: 15px;
}

.event-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.event-location,
.event-date {
  font-size: 14px;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.event-excerpt {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

/* Paginazione */
.pagination {
  text-align: center;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  font-size: 14px;
  padding: 8px 15px;
  margin: 0 5px;
  background-color: var(--primary);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.pagination a:hover,
.pagination .current {
  background-color: var(--secondary);
}

.pagination .current {
  font-weight: bold;
  background-color: var(--secondary);
  color: #fff;
}


.cta-menu a {
    border: 2px solid white;
    padding: 8px;
}

.single-service-item {
	padding: 20px;
    background: #409fa2;
    border-radius: 20px;
}

.single-service-item ul {
	padding-left: 20px;
}

/* avvisi */

.avviso-box {
	background: white;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 10px 10px #00000033;
	
	& p {
		color: black;
	}
}