/* Poppins self-hosted (subset latin) */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/poppins-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/poppins-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/poppins-700-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Palette ripresa dal sito attuale hydro2power.it */
:root {
  --blue: #4d73bf;
  --blue-dark: #184195;
  --cyan: #0096d4;
  --green: #059209;
  --h2planet: #8dc63f;
  --grey: #aeb0b3;
  --text: #2b3445;
  --white: #fff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Poppins', Verdana, Geneva, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--blue);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#bubbles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero */
.hero {
  text-align: center;
  color: var(--white);
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue) 100%);
}

.logo-h2p {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: float 6s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 24px 0 4px;
  letter-spacing: .02em;
}
.hero h1 span { font-weight: normal; opacity: .8; }

.claim {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-style: italic;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.claim::before, .claim::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 3px;
  background: var(--cyan);
  vertical-align: middle;
  margin: 0 12px;
}


/* Main */
main { flex: 1; padding-bottom: 48px; }

section h2 {
  color: var(--blue-dark);
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.news, .about {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(24, 65, 149, .25);
  padding: 32px;
  max-width: 928px;
}

.news {
  text-align: center;
  border-top: 5px solid var(--cyan);
  margin-top: 8px;
}
.news p { margin: 0 0 20px; font-size: 1.05rem; }

.badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--blue-dark); }

.about { margin-top: 24px; }
.about p { margin: 0 0 14px; }
.about sup { font-size: .6em; }

.brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e8f2;
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.brand:hover, .brand:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(24, 65, 149, .15);
}
.brand img {
  width: auto;
  height: 90px;
  max-width: 100%;
  object-fit: contain;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #121212;
  align-self: flex-start;
}
.brand img.logo-outline {
  background: var(--white);
  border: 1px solid #e3e8f2;
}
.brand p { font-size: .9rem; flex: 1; }

.link { color: var(--cyan); font-weight: 600; font-size: .9rem; }

/* Footer — come menuBottom / fasciaBottom del sito attuale */
footer { color: var(--white); background: var(--blue-dark); }

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: .9rem;
}
.footer-main strong { display: block; font-size: 1.05rem; }
.footer-main em { color: var(--grey); }
.footer-main a { color: var(--white); text-decoration: none; }
.footer-main a:hover { text-decoration: underline; }

.label {
  display: block;
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-bottom {
  border-top: 5px solid var(--cyan);
  background: #0f2d6b;
  color: var(--grey);
  text-align: center;
  font-size: .75rem;
  padding: 12px 16px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 600px) {
  .hero { padding-top: 40px; }
  .news, .about { padding: 22px; border-radius: 10px; }
  .claim::before, .claim::after { width: 16px; margin: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-h2p { animation: none; }
  .brand { transition: none; }
}
