/* -----------------------
RESET BASE
----------------------- */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family: Arial, Helvetica, sans-serif;
line-height:1.6;
background:#f7f7f7;
color:#333;
}


/* -----------------------
CONTAINER GENERALI
----------------------- */

main{
max-width:900px;
margin:40px auto;
padding:20px;
background:white;
border-radius:6px;
box-shadow:0 2px 6px rgba(0,0,0,0.05);
}


/* -----------------------
HEADER
----------------------- */

.site-header{
background:white;
border-bottom:1px solid #eee;
position:sticky;
top:0;
z-index:100;
}

.header-container{
max-width:1100px;
margin:auto;
display:flex;
align-items:center;
justify-content:space-between;
padding:15px;
}


/* LOGO */

.logo img{
	/*
height:42px;
*/
height:75px;
}


/* -----------------------
MENU DESKTOP
----------------------- */

.main-nav ul{
list-style:none;
display:flex;
gap:25px;
}

.main-nav a{
text-decoration:none;
color:#333;
font-weight:600;
font-size:15px;
transition:0.2s;
}

.main-nav a:hover{
color:#2a7cff;
}


/* -----------------------
HAMBURGER
----------------------- */

.hamburger{
display:none;
flex-direction:column;
gap:5px;
cursor:pointer;
}

.hamburger span{
width:25px;
height:3px;
background:#333;
display:block;
}


/* -----------------------
ARTICOLI
----------------------- */

.article-header h1{
font-size:32px;
margin-bottom:15px;
}


/* -----------------------
ARTICOLO COVER IMAGE
----------------------- */

.article-cover{
margin:20px 0;
}

.article-cover img{
width:100%;
height:auto;
border-radius:6px;
box-shadow:0 3px 10px rgba(0,0,0,0.08);
}

.article-meta{
font-size:14px;
color:#777;
margin-bottom:15px;
}

.article-tags{
margin-bottom:20px;
}

.tag{
background:#eef4ff;
color:#2a7cff;
padding:4px 10px;
border-radius:4px;
font-size:13px;
margin-right:6px;
}


/* -----------------------
CONTENUTO ARTICOLO
----------------------- */

.article-content p{
margin-bottom:16px;
font-size:17px;
}

.article-content h2{
margin-top:25px;
margin-bottom:10px;
font-size:22px;
}

.article-content ul{
margin-left:20px;
margin-bottom:20px;
}

.article-content table{
border-collapse:collapse;
width:100%;
margin-top:15px;
}

.article-content td{
border:1px solid #ddd;
padding:8px;
}


/* -----------------------
LINK
----------------------- */

a{
color:#2a7cff;
}

a:hover{
text-decoration:underline;
}


/* -----------------------
FOOTER
----------------------- */

.site-footer{
background:#222;
color:#ddd;
margin-top:50px;
padding:30px 20px;
text-align:center;
}

.footer-menu{
margin-bottom:15px;
}

.footer-menu a{
color:#ddd;
margin:0 10px;
text-decoration:none;
font-size:14px;
}

.footer-menu a:hover{
text-decoration:underline;
}

.copyright{
font-size:13px;
color:#999;
}


/* -----------------------
COOKIE BANNER
----------------------- */

.cookie-banner{
position:fixed;
bottom:0;
left:0;
right:0;
background:#111;
color:white;
padding:15px;
display:none;
text-align:center;
z-index:999;
}

.cookie-banner button{
background:#2a7cff;
border:none;
color:white;
padding:8px 16px;
margin-left:10px;
cursor:pointer;
border-radius:4px;
}


/* -----------------------
RESPONSIVE MOBILE
----------------------- */

@media (max-width:768px){

.main-nav{
position:absolute;
top:70px;
left:0;
right:0;
background:white;
display:none;
border-top:1px solid #eee;
}

.main-nav.open{
display:block;
}

.main-nav ul{
flex-direction:column;
padding:15px;
}

.main-nav li{
padding:10px 0;
border-bottom:1px solid #eee;
}

.hamburger{
display:flex;
}

}


/* hype style  */
.hype-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  width: 90%;
  max-width: 420px;
  padding: 16px;
  border-radius: 14px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: hypeFade 0.5s ease;
}

.hype-dark {
  background: #111;
  color: #fff;
}

.hype-content strong {
  display: block;
  font-size: 16px;
}

.hype-content p {
  font-size: 14px;
  margin: 6px 0 10px;
}

.hype-btn {
  display: inline-block;
  padding: 10px 16px;
  background: linear-gradient(45deg,#ff0057,#6a00ff);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.hype-close {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
}

@keyframes hypeFade {
  from {opacity:0; transform: translate(-50%,20px);}
  to {opacity:1; transform: translate(-50%,0);}
}

  /* hype upgrade */

.hype-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.hype-btn.main {
  background: linear-gradient(45deg,#ff0057,#6a00ff);
}

.hype-btn.secondary {
  background: #222;
  color: #fff;
  border: 1px solid #444;
}

.hype-countdown {
  font-size: 13px;
  margin-top: 8px;
  color: #00ffcc;
  font-weight: bold;
}


/* new classes countdown last time */
.hype-urgent {
  background: linear-gradient(45deg, #ff0000, #ff6600);
  color: #fff;
  animation: pulseUrgent 1s infinite;
}

@keyframes pulseUrgent {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.03); }
  100% { transform: translateX(-50%) scale(1); }
}


/**/
.hype-buttons {
  display: flex;
  align-items: center;       /* allineamento verticale */
  justify-content: space-between; /* distribuzione */
  gap: 10px;
  margin-top: 12px;
}

.hype-btn {
  flex: 1;                  /* 🔥 stessa larghezza */
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s ease;
}

/* bottone principale */
.hype-btn.main {
  background: linear-gradient(45deg,#ff0057,#6a00ff);
  color: #fff;
}

/* bottone secondario */
.hype-btn.secondary {
  background: #222;
  color: #fff;
  border: 1px solid #444;
}

/* hover */
.hype-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(45deg,#ff0057,#6a00ff);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.msg {
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.msg.success {
  background: #0f5132;
  color: #d1e7dd;
}

.msg.error {
  background: #842029;
  color: #f8d7da;
}


.offer-hero {
  margin: 20px 0;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.offer-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 10px;
  transition: 0.2s;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.offer-card.big {
  background: linear-gradient(45deg,#111,#333);
  color: #fff;
}

.btn-main {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: linear-gradient(45deg,#ff0057,#6a00ff);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}



.home {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.subtitle {
  color: #777;
  margin-bottom: 30px;
}

.section-title {
  margin-bottom: 20px;
}

/* GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* CARD */
.article-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: 0.3s;
  border: 1px solid #eee;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* LINK */
.card-link {
  text-decoration: none;
  color: inherit;
}

/* IMG */
.thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* CONTENT */
.card-content {
  padding: 15px;
}

.category {
  font-size: 12px;
  color: #0a7cff;
  font-weight: bold;
}

.card-content h3 {
  font-size: 18px;
  margin: 10px 0;
}

.desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* META */
.meta {
  font-size: 12px;
  color: #888;
  display: flex;
  justify-content: space-between;
}