@font-face {
  font-family: 'Breathing';
  src: url('fonts/breathing.tff') format('truetype');
  font-weight: normal;
  font-style: normal;
}


:root {
--green2: #91a383;
--green1: #5c6f51;
--brownish: #5c6f51;
--white: #ffffff;
}


body {
margin: 0;
font-family: Arial, sans-serif;
background-color: var(--white);
color: var(--brownish);
}


/* NAVIGATION */
.navbar {
position: fixed;
top: 0;
width: 100%;
background-color: var(--green2);
padding: 8px 0;
z-index: 1000;
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


.nav-container {
max-width: 1100px;
margin: auto;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
color: var(--white);
}


.nav-logo {
font-size: 1.2em;
font-weight: bold;
}

.nav-logo img {
  height: 40px;            /* adjust to taste */
  width: auto;
  display: block;
  vertical-align: middle;
}

/* On very small screens, make it slightly smaller */
@media (max-width: 400px) {
  .nav-logo img { height: 34px; }
}

/* Hamburger */
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 4px;
}
.hamburger span {
width: 25px;
height: 3px;
background: var(--white);
border-radius: 5px;
transition: 0.3s;
}


/* Navigation links */
.nav-links {
display: flex;
gap: 30px;
}


.nav-links a {
color: var(--white) !important;
font-weight: bold;
text-decoration: none;
font-size: 1.1em;
}


/* Mobile */
@media (max-width: 700px) {
.hamburger {
display: flex;
}


.nav-links {
position: absolute;
top: 90px;
right: 0;
background: var(--green2);
flex-direction: column;
width: 100%;
text-align: center;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
box-shadow: 0 6px 4px rgba(0,0,0,0.2);
}


.nav-links a {
padding: 15px 0;
font-size: 1.1em;
}


.nav-links.open {
max-height: 300px;
}
}


/* SECTIONS */
.section {
padding: 120px 20px;
max-width: 800px;
margin: auto;
text-align: center;
scroll-margin-top: 120px;
}


.hero {
background-color: var(--green2);
color: var(--white);
padding: 170px 20px 150px;
}

.hero h1 {
color: var(--white);
}

.map-container {
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* PHOTO SECTION */
.photo-section {
  padding: 60px 20px;
  text-align: center;
}

.photo-container {
  max-width: 500px;
  margin: 0 auto;
}

.photo-container img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-caption {
  margin-top: 15px;
  font-size: 1.2rem;
  color: var(--brownish);
}

/* COUNTDOWN SECTION */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    transform-origin: top center;
}

.countdown-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    overflow: visible;
}

.time-box {
    background: var(--green2);
    color: var(--white);
    padding: 20px 25px;
    border-radius: 15px;
    display: grid;                  /* ⭐ USE GRID */
    grid-template-columns: repeat(4, 1fr); /* DESKTOP: 4 in a row */
    gap: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);

    font-size: 0.9em;
    font-weight: bold;
    width: auto;
    max-width: none;
    /*width: auto;
    text-align: center;
    justify-content: center;*/
}

.time-unit {
  /*display: flex;
  flex-direction: column;
  align-items: center;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    /*flex: 0 0 auto;*/    
    
}

.time-unit span {
    font-family: Breathing;
    font-size: 2em;
    font-weight: bold;
    display: block;
}

.time-unit label {
    font-family: Breathing;
    font-size: 0.9em;
    margin-top: 2px;
}

/* Mobile */
@media (max-width: 600px) {
  .countdown-wrapper {
    transform: scale(0.85);
  }
}
@media (max-width: 450px) {
  .countdown-wrapper {
    transform: scale(0.70);
  }
}
@media (max-width: 360px) {
  .countdown-wrapper {
    transform: scale(0.60);
  }
}
/*@media (max-width: 600px) {
    .time-box {
        grid-template-columns: repeat(2, 1fr);
    }
}
*/
/* DATE SECTION */

.date-section {
    position: relative;
    background-image: url("images/villa_colori.png"); /* background-image: url("images/villa.png"); */
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 140px 20px;
    text-align: center;
}

/* Transparent dark or light overlay to enhance readability */
.date-overlay {
    background: rgba(255, 255, 255, 0.2); /* soft white transparency */
    backdrop-filter: blur(4px);
    padding: 60px 20px;
    border-radius: 20px;
    max-width: 900px;
    margin: auto;
}

/* Title styling 
.date-section h2 {
    font-family: "Breathing", cursive; 
    font-size: 2.8em;
    margin-bottom: 40px;
    color: var(--brownish);
}*/

.countdown-container2 {
    background-image: "images/villa.png";
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.time-box2 {
    background: rgb(from var(--green1) r g b / 0);
    /*background: rgba(92, 111, 81, 0.85); /* var(--green2) with transparency */
    backdrop-filter: blur(3px);

    color: var(--white);
    padding: 20px 25px;
    border-radius: 15px;
    display: grid;                  /* ⭐ USE GRID */
    grid-template-columns: repeat(4, 1fr); /* DESKTOP: 4 in a row */
    gap: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);

    font-size: 0.9em;
    font-weight: bold;

    /*width: auto;
    text-align: center;
    justify-content: center;*/
}

.time-unit2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px
}

.time-unit2 span {
    font-family: Breathing;
    font-size: 2em;
    font-weight: bold;
    display: block;
}

.time-unit2 label {
    font-family: Breathing;
    font-size: 0.9em;
    margin-top: 2px;
}

/* Mobile */
@media (max-width: 600px) {
    .time-box2 {
        grid-template-columns: repeat(2, 1fr);  /* ⭐ EXACT 2 PER ROW */
    }
}

h1, h2 {
margin-bottom: 20px;
color: var(--brownish);
font-family: Breathing;
}

