/* General Styles */
@font-face {
  font-family: 'Montserrat-Medium';
  src: url('font/Montserrat-Medium.otf') format('opentype');
}

@font-face {
  font-family: 'Montserrat-Light';
  src: url('font/Montserrat-Light.otf') format('opentype');
}

body {
  padding-top: 60px;
  scroll-snap-type: y mandatory;
  font-family: 'Montserrat-Light', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.view-container {
  max-width: 800px;
  margin: auto;
  padding: 0 5%;
}

.view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
}


.full-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: 10px;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: white;
  padding: 10px 0;
}

.logoname img {
  width: 270px;
  margin-left: 10%;
  height: auto;
}

/* Sections */
.text-container {
  max-width: 600px;
}

.small-text {
  font-size: 17px;
  font-family: 'Montserrat-Light', sans-serif;
}

.red-font{
  font-size: 25px;
  font-family: Montserrat-Medium;
  color: #861a22;
}

.large-text{
  font-size: 30px;
  font-family: Montserrat-Light;
}

.bold-font{
  font-family: Montserrat-Medium;
}

.red-title{
  font-size: 25px;
  font-family: Montserrat-Medium;
  color: #861a22;
}


.medium-text {
  font-size: 18px;
  font-weight: bold;
  font-family: 'Montserrat-Medium', sans-serif;
}

/* Footer */
footer {
  background-color: #d7d8d7;
  color: black;
  padding: 15px 0;
  text-align: center;
}

.footer-container {
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bold-text-footer{
  font-family: Montserrat-Medium;
}

.footer-logo img{
  max-width: 100px;
  margin-top: 10px;
}

a{
  text-decoration: none;
  color: inherit;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .view {
      flex-direction: column;
  }
  
  .text-container {
      max-width: 90%;
  }
  
  .full-image {
      max-width: 100%;
  }
}
/* ============================================================
   POPUP CHIUSURA ESTIVA
   ============================================================ */
#closure-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

#closure-popup .popup-content {
  position: relative;
  background: #fff;
  box-sizing: border-box;
  width: 88vw;
  max-width: 420px;
  padding: 38px 26px 30px;
  text-align: center;
  font-family: 'Montserrat-Light', sans-serif;
}

#closure-popup .popup-title {
  font-family: 'Montserrat-Medium', sans-serif;
  color: #861a22;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

#closure-popup .popup-text {
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a1a;
  margin: 0;
}

#closure-popup .popup-close-x {
  position: absolute;
  top: 6px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #555;
  cursor: pointer;
  padding: 0;
}

#closure-popup .popup-close-btn {
  margin-top: 24px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat-Medium', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 28px;
}

#closure-popup .popup-close-btn:hover { background: #861a22; }

#closure-popup .popup-text-secondary { margin-top: 14px; }

#closure-popup .popup-text a {
  color: #861a22;
  font-family: 'Montserrat-Medium', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

/* ============================================================
   SEZIONE PROGETTI CLICCABILE (link a co-modo.it)
   ============================================================ */
.clickable-section {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.clickable-section:hover,
.clickable-section:hover .red-title,
.clickable-section:hover .small-text {
  text-decoration: underline;
}
