/* ==========================================================================
   IL MIO IP - HostingVirtuale
   Clean, Lightweight & Modern Responsive Stylesheet
   ========================================================================== */

:root {
  --primary: #0088cc;
  --primary-hover: #006fa3;
  --primary-light: #eef7fc;
  --primary-border: #bce1f5;
  --secondary: #ff7b00;
  --secondary-hover: #e06d00;
  --text-main: #333333;
  --text-muted: #666666;
  --text-light: #888888;
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --bg-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
}

.header-logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.header-logo span {
  color: var(--secondary);
}

.header-badge {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--primary-border);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0a5c8a 0%, #0088cc 50%, #00a3f5 100%);
  color: #ffffff;
  padding: 48px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.hero-image-wrap {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 320px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
  animation: float 4s ease-in-out infinite;
}

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

.hero-card {
  background: var(--bg-white);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.hero-card h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 6px;
}

.hero-card h1 strong {
  color: var(--primary);
}

.hero-card .subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-card .description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.ip-display-box {
  background: var(--primary-light);
  border: 2px dashed var(--primary-border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.ip-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 4px;
}

.ip-value {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0b4f71;
  word-break: break-all;
  user-select: all;
  letter-spacing: 1px;
}

.copy-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 136, 204, 0.4);
}

.btn-copy:active {
  transform: translateY(0);
}

.btn-copy.copied {
  background: #10b981;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.msg-copy-toast {
  font-size: 0.85rem;
  font-weight: 600;
  color: #10b981;
  min-height: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.msg-copy-toast.show {
  opacity: 1;
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-header h2 strong {
  color: var(--primary);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Two Column Content
   ========================================================================== */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.content-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 8px;
}

.content-text h3:first-of-type {
  margin-top: 0;
}

.content-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.content-text p strong {
  color: var(--text-main);
}

.content-image-wrap {
  text-align: center;
  display: flex;
  justify-content: center;
}

.content-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 100%;
}

/* ==========================================================================
   Offer Box / Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.feature-box {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.feature-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.feature-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.feature-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cta-banner {
  text-align: center;
  margin-top: 20px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(255, 123, 0, 0.35);
  transition: all 0.2s ease;
}

.btn-cta:hover {
  background: var(--secondary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 123, 0, 0.45);
}

/* ==========================================================================
   OS & Devices Guide
   ========================================================================== */
.guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.guide-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.guide-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-card-icon svg {
  width: 20px;
  height: 20px;
}

.guide-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.guide-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 12px;
  margin-bottom: 6px;
}

.guide-card h4:first-of-type {
  margin-top: 0;
}

.guide-card ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.guide-card ol li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.45;
}

.guide-card ol li code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-hover);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #1a232f;
  color: #94a3b8;
  padding: 30px 0;
  font-size: 0.9rem;
  border-top: 1px solid #2d3748;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-copy p {
  margin: 0;
}

.footer-links a {
  color: #cbd5e1;
  margin-left: 16px;
}

.footer-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-image-wrap {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid-2 {
    grid-template-columns: 1fr;
  }

  .content-image-wrap {
    order: -1;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }

  .hero-section {
    padding: 30px 0 40px;
  }

  .hero-card {
    padding: 24px 18px;
  }

  .hero-card h1 {
    font-size: 1.5rem;
  }

  .ip-value {
    font-size: 1.6rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .btn-cta {
    width: 100%;
    font-size: 1rem;
    padding: 14px 20px;
    text-align: center;
    justify-content: center;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links a {
    margin: 0 8px;
  }
}
