/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  overflow-x: hidden;
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

body{
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  display: none;
}
html {
  scrollbar-width: none;
}
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
section{
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #ede9e6;
}
.navbar {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  padding: 0 30px;
  left: 0;
  background-color: #111827;
  box-sizing: border-box;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar > a {
  display: flex;
  align-items: center;
}
.navbar a img{
  width: 140px;
  height: auto;
  display: block;
}
.navbar nav{
  display: flex;
  align-items: center;
  gap: 30px;
}
nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 100;
  font-family: 'Karla', sans-serif;
  position: relative;
  padding: 8px 0;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background-color: #b6ba22;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.3s ease;
}
nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; flex-direction: column; gap: 5px; padding: 4px; }
  .navbar nav {
    display: flex;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #111827;
    flex-direction: column;
    padding: 0 30px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 999;
  }
  .navbar nav.open { max-height: 400px; opacity: 1; padding: 16px 30px 28px; }
  nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 15px; }
  nav a:last-child { border-bottom: none; }
}

#home {
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/foto_isola.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding-left: 5%;
  box-sizing: border-box;
  position: relative;
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}
.weather-banner{
  width: 200px;
   position: absolute;
   top: 110px;
   right: -70px;
   transform: translateX(-50%);
   z-index: 999;
   display: flex;
   align-items: flex-end;
   flex-direction: column;
   gap: 5px;
   padding: 10px 20px;
   background: transparent;
   font-family: 'Karla', sans-serif;
   font-size: 14px;
   color: #cccccc;
 }

#weather-temp{
  font-weight: 700;
}

#weather-icon{
  font-size: 18px;
}

.home-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.home-title {
  font-family: 'Fraunces', sans-serif;
  color: #fff;
  font-size: 56px;
  font-weight: 200;
  margin: 0;
  line-height: 1.1;
}

.home-title span { color: #b6ba22; }

.home-text {
  align-self: center;
  font-family: 'Karla', sans-serif;
  color: #fff;
  font-size: 15px;
  font-weight: 300;
  margin: 0;
  line-height: 1.5;
  max-width: 600px;
}
.home-cta a:first-child {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  margin-right: 20px;
  font-family: 'Karla', sans-serif;
  background-color: #b6ba22;
  padding: 12px 30px;
  display: inline-block;
  transition: all 0.4s;

}
.home-cta a:last-child {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  border: 1px solid rgba(204, 204, 204, 0.5);
  font-family: 'Karla', sans-serif;
  background-color: transparent;
  padding: 12px 30px;
  display: inline-block;
  transition: all 0.4s;
}

.home-cta a:hover {
  transform: translateY(-6px);
}

/* ── FOOTER ────────────────────────────────────── */
footer {
  width: 100%;
  background-color: #111827;
  color: #ede9e6;
  padding: 60px 40px 30px;
  box-sizing: border-box;
  font-family: 'Karla', sans-serif;
  border-top: 3px solid #b6ba22;
}

.footer-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-col {
  min-width: 0;
  text-align: center;
}

.footer-logo {
  max-width: 120px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

.footer-about {
  min-width: 0;
}

.footer-col h4 {
  font-family: 'Fraunces', sans-serif;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 8px;
  color: #9ca3af;
}

.footer-col p:last-child {
  margin-bottom: 0;
}

.footer-col a {
  color: #b6ba22;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1000px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 11px;
  color: #9ca3af;
}

.footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 680px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { display: none; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .footer-container { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer-col p, .footer-col a { font-size: 11px; }
  .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
}

/* ── POSIZIONE ─────────────────────────────────── */
#posizione {
  height: auto;
  min-height: 70vh;
  padding: 90px 5%;
  gap: 0;
}

.posizione-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.posizione-testo {
  flex: 1;
}

.posizione-foto {
  flex: 1;
}

.murales-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 180px;
  gap: 8px;
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}

.murales-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.murales-grid img:nth-child(1) {
  grid-row: span 2;
}

.murales-grid img:nth-child(4) {
  grid-column: span 2;
}

.posizione-eyebrow {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #b6ba22;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.posizione-rule {
  width: 50px;
  border: none;
  border-top: 2px solid #b6ba22;
  margin: 0 0 28px;
}

.posizione-title {
  font-family: 'Fraunces', sans-serif;
  font-size: 42px;
  font-weight: 200;
  color: #1a1a1a;
  margin: 0 0 24px;
  line-height: 1.15;
}

.posizione-title em {
  font-style: italic;
  color: #b6ba22;
}

.posizione-body {
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin: 0;
  max-width: 480px;
}

.posizione-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 64px;
}

.posizione-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.posizione-icon {
  font-size: 26px;
  color: #b6ba22;
  margin-bottom: 14px;
}

.stat-number {
  font-family: 'Fraunces', sans-serif;
  font-size: 84px;
  font-weight: 200;
  color: #1a1a1a;
  line-height: 1;
  margin: 0;
}

.stat-unit {
  font-size: 42px;
  font-weight: 300;
  color: #b6ba22;
}

.stat-label {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6a625b;
  margin: 10px 0 0;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background-color: #d4cdc7;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .posizione-title { font-size: 28px; }
  .posizione-stats { flex-direction: column; gap: 40px; }
  .stat-divider { display: none; }
  .stat-number { font-size: 64px; }
  .posizione-inner { flex-direction: column; gap: 48px; }
  .murales-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 120px;
  }
  .murales-grid img:nth-child(1) { grid-row: span 1; }
  .murales-grid img:nth-child(4) { grid-column: span 1; }
  .home-title { font-size: 34px; line-height: 1.15; }
  .home-text { font-size: 14px; }
  #home { padding-left: 24px; padding-right: 24px; justify-content: center; }
  .home-content { align-items: center; text-align: center; }
  .home-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
  .home-cta a { text-align: center; min-width: 130px; }
  #posizione { padding: 70px 24px 0; }
  .posizione-eyebrow { margin: 0 0 10px; }
}

/* ── HOME SERVIZI ──────────────────────────────── */
#home-servizi {
  height: auto;
  padding: 100px 5%;
  text-align: center;
  gap: 0;
  background-color: #111827;
}

.home-section-eyebrow {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: #b6ba22;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.home-section-rule {
  width: 50px;
  border: none;
  border-top: 2px solid #b6ba22;
  margin: 0 auto 28px;
}

.home-section-title {
  font-family: 'Fraunces', sans-serif;
  font-size: 42px;
  font-weight: 200;
  color: #ede9e6;
  margin: 0 0 64px;
  line-height: 1.2;
}

.home-section-title em {
  font-style: italic;
  color: #b6ba22;
}

.home-servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto 52px;
}

.home-servizio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-servizio i {
  font-size: 30px;
  color: #b6ba22;
  margin-bottom: 20px;
}

.home-servizio h3 {
  font-family: 'Fraunces', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #ede9e6;
  margin: 0 0 10px;
}

.home-servizio p {
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(237, 233, 230, 0.6);
  margin: 0;
}

.home-servizi-link {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: #b6ba22;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.home-servizi-link:hover {
  gap: 12px;
}

/* ── BANNER OFFERTE ────────────────────────────── */
.offerte-banner {
  width: 100%;
  background-color: #fff;
  padding: 90px 5%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.offerte-banner-content {
  max-width: 680px;
  width: 100%;
}

.offerte-eyebrow {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: #b6ba22;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.offerte-title {
  font-family: 'Fraunces', sans-serif;
  font-size: 42px;
  font-weight: 200;
  color: #1a1a1a;
  margin: 0 0 20px;
  line-height: 1.15;
}

.gold { color: #b6ba22; }

.offerte-subtitle {
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  color: #6a625b;
  margin: 0 0 40px;
  line-height: 1.7;
}

.offerte-btn {
  display: inline-block;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease;
  background-color: #b6ba22;
  color: #111827;
}
.offerte-btn:hover {
    transform: translateY(-3px);
}

@media (max-width: 720px) {
  .home-servizi-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .home-section-title { font-size: 30px; }
  .offerte-title { font-size: 30px; }
  .offerte-banner-content { padding: 60px 24px; }
  .home-title { font-size: 42px; }
  #home-servizi { padding: 70px 5%; }
}

@media (max-width: 420px) {
  .home-title { font-size: 30px; }
  .home-servizi-grid { grid-template-columns: 1fr; }
  .home-section-title { font-size: 24px; }
  .offerte-title { font-size: 26px; }
}

/* ── NAVBAR SCROLL HIDE ─────────────────────────── */
.navbar {
  transition: transform 0.35s ease, background-color 0.3s ease;
}
.navbar--hidden {
  transform: translateY(-100%);
}
